From 3a4d44ac6a49700a57f5a30e6baacff7cea6b21f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 16:42:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pygeoif/factories.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygeoif/factories.py b/pygeoif/factories.py index c139434..f20203a 100644 --- a/pygeoif/factories.py +++ b/pygeoif/factories.py @@ -53,7 +53,7 @@ "GEOMETRYCOLLECTION)" r"[ACEGIMLONPSRUTYZ\d,\.\-\(\) ]+)$" ), - flags=re.I, + flags=re.IGNORECASE, ) gcre: Pattern[str] = re.compile( r"POINT|LINESTRING|LINEARRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON", @@ -92,7 +92,7 @@ def box( """Return a rectangular polygon with configurable normal vector.""" coords = [(maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny)] if not ccw: - coords = coords[::-1] + coords.reverse() return Polygon(coords) @@ -188,7 +188,7 @@ def _line_from_wkt_coordinates(coordinates: str) -> LineString: coords = coordinates.split(",") return LineString( cast( - LineType, # + LineType, [tuple(num(c) for c in coord.split()) for coord in coords], ), )