fix mypy issues

This commit is contained in:
walterroach
2020-12-12 15:45:55 -06:00
parent 0371b62acb
commit f608cd5aef
2 changed files with 6 additions and 2 deletions

View File

@@ -482,6 +482,8 @@ class ConflictTheater:
return point
point = geometry.Point(point.x, point.y)
nearest_points = []
if not self.landmap:
raise RuntimeError("Landmap not initialized")
for inclusion_zone in self.landmap[0]:
nearest_pair = ops.nearest_points(point, inclusion_zone)
nearest_points.append(nearest_pair[1])