Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Oct 28, 2023
1 parent 26769f5 commit 2589d12
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 2589d12

Please sign in to comment.