From 9ba5d8441d91ee1f129eda71ea1ced85b981cf31 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:20:34 +0000 Subject: [PATCH] style: format code with Black and isort This commit fixes the style issues introduced in 1fbadeb according to the output from Black and isort. Details: https://github.com/cleder/pygeoif/pull/264 --- pygeoif/factories.py | 1 + pygeoif/geometry.py | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pygeoif/factories.py b/pygeoif/factories.py index 61452dc..96d5ac7 100644 --- a/pygeoif/factories.py +++ b/pygeoif/factories.py @@ -95,6 +95,7 @@ def box( if not ccw: coords.reverse() + def shape( context: Union[ GeoType, diff --git a/pygeoif/geometry.py b/pygeoif/geometry.py index 3c48d7d..1edf0ef 100644 --- a/pygeoif/geometry.py +++ b/pygeoif/geometry.py @@ -598,8 +598,7 @@ def has_z(self) -> Optional[bool]: def _wkt_coords(self) -> str: ec = self.exterior._wkt_coords # noqa: SLF001 ic = "".join( - f",({interior._wkt_coords})" # noqa: SLF001 - for interior in self.interiors + f",({interior._wkt_coords})" for interior in self.interiors # noqa: SLF001 ) return f"({ec}){ic}" @@ -751,8 +750,7 @@ def geoms(self) -> Iterator[Point]: @property def _wkt_coords(self) -> str: return ", ".join( - f"({point._wkt_coords})" # noqa: SLF001 - for point in self.geoms + f"({point._wkt_coords})" for point in self.geoms # noqa: SLF001 ) @property @@ -832,8 +830,7 @@ def geoms(self) -> Iterator[LineString]: @property def _wkt_coords(self) -> str: return ",".join( - f"({linestring._wkt_coords})" # noqa: SLF001 - for linestring in self.geoms + f"({linestring._wkt_coords})" for linestring in self.geoms # noqa: SLF001 ) @property