update typing for latest changes in SQLAlchemy

This commit is contained in:
Sarah Hoffmann
2023-12-29 20:55:33 +01:00
parent af85ad390f
commit 93afe5a7c3
3 changed files with 7 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ class IntersectsReverseDistance(sa.sql.functions.GenericFunction[Any]):
inherit_cache = True
def __init__(self, table: sa.Table, geom: SaColumn) -> None:
super().__init__(table.c.geometry, # type: ignore[no-untyped-call]
super().__init__(table.c.geometry,
table.c.rank_search, geom)
self.tablename = table.name
@@ -122,7 +122,7 @@ class IsAddressPoint(sa.sql.functions.GenericFunction[Any]):
inherit_cache = True
def __init__(self, table: sa.Table) -> None:
super().__init__(table.c.rank_address, # type: ignore[no-untyped-call]
super().__init__(table.c.rank_address,
table.c.housenumber, table.c.name)