]> git.openstreetmap.org Git - nominatim.git/commitdiff
try future annotations to resolve Generics compatibility
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 12 Oct 2023 14:19:12 +0000 (16:19 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 23 Oct 2023 15:19:12 +0000 (17:19 +0200)
nominatim/db/sqlalchemy_functions.py
nominatim/db/sqlalchemy_types.py

index f88c801e35d5a777abc075768658d7736d145a0f..6eed880367dfd9947b9e87ef17c646ab869f6955 100644 (file)
@@ -7,6 +7,7 @@
 """
 Custom functions and expressions for SQLAlchemy.
 """
+from __future__ import annotations
 from typing import Any
 
 import sqlalchemy as sa
index 8e8cc9c8aa47c90d2fc6c4e6291c62c083df21ec..4171d70b0d19ce20d764cea22a3ec55a7e87d5c9 100644 (file)
@@ -7,6 +7,7 @@
 """
 Custom types for SQLAlchemy.
 """
+from __future__ import annotations
 from typing import Callable, Any, cast
 import sys