]> git.openstreetmap.org Git - nominatim.git/commitdiff
adapt typing for latest SQLAlchemy version
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 13 Mar 2025 09:49:08 +0000 (10:49 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 13 Mar 2025 09:49:08 +0000 (10:49 +0100)
src/nominatim_api/sql/sqlalchemy_types/json.py

index 1c8f9f7b7ec812f449036cf6a71624247f314a79..f3ea9c6e08d87e5d72df9467fca32664032076b9 100644 (file)
@@ -2,7 +2,7 @@
 #
 # This file is part of Nominatim. (https://nominatim.org)
 #
 #
 # This file is part of Nominatim. (https://nominatim.org)
 #
-# Copyright (C) 2024 by the Nominatim developer community.
+# Copyright (C) 2025 by the Nominatim developer community.
 # For a full list of authors see the git log.
 """
 Common json type for different dialects.
 # For a full list of authors see the git log.
 """
 Common json type for different dialects.
@@ -24,6 +24,6 @@ class Json(sa.types.TypeDecorator[Any]):
 
     def load_dialect_impl(self, dialect: SaDialect) -> sa.types.TypeEngine[Any]:
         if dialect.name == 'postgresql':
 
     def load_dialect_impl(self, dialect: SaDialect) -> sa.types.TypeEngine[Any]:
         if dialect.name == 'postgresql':
-            return JSONB(none_as_null=True)  # type: ignore[no-untyped-call]
+            return JSONB(none_as_null=True)
 
         return sqlite_json(none_as_null=True)
 
         return sqlite_json(none_as_null=True)