diff --git a/geo_extensions/transformations.py b/geo_extensions/transformations.py index 1b0c9a2..0e1a993 100644 --- a/geo_extensions/transformations.py +++ b/geo_extensions/transformations.py @@ -65,7 +65,13 @@ def simplify(polygon: Polygon) -> TransformationResult: """Perform a shapely simplify operation on the polygon.""" # NOTE(reweeden): I have been unable to produce a situation where a # polygon is simplified to a geometry other than Polygon. - yield cast(Polygon, polygon.simplify(tolerance, preserve_topology)) + yield cast( + Polygon, + polygon.simplify( + tolerance, + preserve_topology=preserve_topology, + ), + ) return simplify