fix function signature for newer SQLAlchemy

This commit is contained in:
Sarah Hoffmann
2025-03-31 09:42:29 +02:00
parent 00b3ace3cf
commit d4994a152b

View 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]: