]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix function signature for newer SQLAlchemy
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 31 Mar 2025 07:42:29 +0000 (09:42 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 31 Mar 2025 07:42:29 +0000 (09:42 +0200)
src/nominatim_api/sql/sqlalchemy_types/geometry.py

index 90adcce850ec6c7d82c1b41c8a32065e7a3b49e7..583568c45f8743e79488004e7e85110f34ffa0cf 100644 (file)
@@ -173,7 +173,7 @@ class Geometry(types.UserDefinedType):  # type: ignore[type-arg]
     def __init__(self, subtype: str = 'Geometry'):
         self.subtype = subtype
 
-    def get_col_spec(self) -> str:
+    def get_col_spec(self, **_: Any) -> str:
         return f'GEOMETRY({self.subtype}, 4326)'
 
     def bind_processor(self, dialect: 'sa.Dialect') -> Callable[[Any], str]: