Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Oct 28, 2023
1 parent 3561994 commit 4ba9aab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pygeoif/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,7 @@ def __init__(
>>> coords = ((0., 0.), (0., 1.), (1., 1.), (1., 0.), (0., 0.))
>>> polygon = Polygon(coords)
"""
interiors: Tuple[LinearRing, ...] = ()
if holes:
interiors = tuple(LinearRing(hole) for hole in holes)
interiors = tuple(LinearRing(hole) for hole in holes) if holes else ()
exterior = LinearRing(shell)
object.__setattr__(self, "_geoms", (exterior, interiors))

Expand Down

0 comments on commit 4ba9aab

Please sign in to comment.