From 2589d12ccd87e64b9b67e481b86c578a40c1c44a Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sat, 28 Oct 2023 14:53:38 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- pygeoif/geometry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pygeoif/geometry.py b/pygeoif/geometry.py index 60fda545..ee259e05 100644 --- a/pygeoif/geometry.py +++ b/pygeoif/geometry.py @@ -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))