Skip to content

Commit

Permalink
style: format code with Black and isort
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 1fbadeb according to the output
from Black and isort.

Details: #264
  • Loading branch information
deepsource-autofix[bot] authored Dec 5, 2024
1 parent 1fbadeb commit 9ba5d84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions pygeoif/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def box(
if not ccw:
coords.reverse()


def shape(
context: Union[
GeoType,
Expand Down
9 changes: 3 additions & 6 deletions pygeoif/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ba5d84

Please sign in to comment.