From: Sarah Hoffmann Date: Thu, 12 Oct 2023 14:19:12 +0000 (+0200) Subject: try future annotations to resolve Generics compatibility X-Git-Tag: v4.4.0~87^2~9 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/37488ee82b0fc99ab7d86d0d8eafc4257a63c8ff try future annotations to resolve Generics compatibility --- diff --git a/nominatim/db/sqlalchemy_functions.py b/nominatim/db/sqlalchemy_functions.py index f88c801e..6eed8803 100644 --- a/nominatim/db/sqlalchemy_functions.py +++ b/nominatim/db/sqlalchemy_functions.py @@ -7,6 +7,7 @@ """ Custom functions and expressions for SQLAlchemy. """ +from __future__ import annotations from typing import Any import sqlalchemy as sa diff --git a/nominatim/db/sqlalchemy_types.py b/nominatim/db/sqlalchemy_types.py index 8e8cc9c8..4171d70b 100644 --- a/nominatim/db/sqlalchemy_types.py +++ b/nominatim/db/sqlalchemy_types.py @@ -7,6 +7,7 @@ """ Custom types for SQLAlchemy. """ +from __future__ import annotations from typing import Callable, Any, cast import sys