From: Sarah Hoffmann Date: Mon, 31 Mar 2025 07:42:29 +0000 (+0200) Subject: fix function signature for newer SQLAlchemy X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d4994a152bc68aeb9be46eb30add3a6d89ee06b6 fix function signature for newer SQLAlchemy --- diff --git a/src/nominatim_api/sql/sqlalchemy_types/geometry.py b/src/nominatim_api/sql/sqlalchemy_types/geometry.py index 90adcce8..583568c4 100644 --- a/src/nominatim_api/sql/sqlalchemy_types/geometry.py +++ b/src/nominatim_api/sql/sqlalchemy_types/geometry.py @@ -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]: