fix: formatting (black)
Some checks failed
Backend CI / lint-and-test (push) Failing after 1m54s

This commit is contained in:
2025-10-11 21:58:32 +02:00
parent f9086d2d04
commit c35049cd54
7 changed files with 69 additions and 50 deletions

View File

@@ -148,7 +148,11 @@ def get_network_snapshot(session: Session) -> dict[str, list[dict[str, object]]]
if geometry is not None and LineString is not None
else None
)
if LineString is not None and shape is not None and isinstance(shape, LineString):
if (
LineString is not None
and shape is not None
and isinstance(shape, LineString)
):
coords_list: list[tuple[float, float]] = []
for coord in shape.coords:
lon = float(coord[0])