From 4ba9aab34a172e740fcfebfe27ef4a3db9616677 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Sat, 28 Oct 2023 16:21:11 +0100 Subject: [PATCH] small refactor --- 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))