Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and sdp5 committed Apr 20, 2024
1 parent 2d81faa commit f903e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ class GeomTypeTable(base):
metadata.drop_all(bind=conn, checkfirst=True)
metadata.create_all(bind=conn)

if dialect_name == 'postgresql' and 'MULTIPOINT' in geom_type:
if dialect_name == "postgresql" and "MULTIPOINT" in geom_type:
# formats wkt to wrap tuple elements in brackets,
# for example '(1 2, 3 4)' to '((1 2), (3 4))'.
wkt = "({})".format(
", ".join(map(lambda x: '({})'.format(x.strip()), wkt[1:-1].split(',')))
", ".join(map(lambda x: "({})".format(x.strip()), wkt[1:-1].split(",")))
)

inserted_wkt = f"{geom_type}{wkt}"
Expand Down

0 comments on commit f903e71

Please sign in to comment.