Skip to content

Commit

Permalink
Merge 0021c7d into efa4692
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyle-Alloy committed Oct 8, 2023
2 parents efa4692 + 0021c7d commit 9769cf6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions shapely/geometry/multipolygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ def __new__(self, polygons=None):
return polygons

polygons = getattr(polygons, "geoms", polygons)
polygons = [
p
for p in polygons
if p and not (isinstance(p, polygon.Polygon) and p.is_empty)
]
polygons = [p for p in polygons if p]

L = len(polygons)

Expand Down

0 comments on commit 9769cf6

Please sign in to comment.