Fix exception wrt typing

This commit is contained in:
Raffson 2023-05-16 20:40:47 +02:00
parent 34645560bf
commit 1b1090d78f
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -36,7 +36,7 @@ class AircraftEngagementZones:
self.threat_zones = self._make_combined_zone()
def _make_combined_zone(self) -> ThreatPoly:
return unary_union(self.individual_zones.values())
return unary_union(list(self.individual_zones.values()))
def covers(self, position: Point) -> bool:
return self.threat_zones.intersects(dcs_to_shapely_point(position))