]> git.openstreetmap.org Git - nominatim.git/commitdiff
adapt typing to newest version of SQLAlchemy
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 15 Nov 2023 18:59:26 +0000 (19:59 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 15 Nov 2023 18:59:26 +0000 (19:59 +0100)
nominatim/db/connection.py

index a64cbfaf99102ac0b24b56e609ad6462999b229e..fce897bc7250c814d6679188a5c6281a8ac3790c 100644 (file)
@@ -31,7 +31,7 @@ class Cursor(psycopg2.extras.DictCursor):
         """ Query execution that logs the SQL query when debugging is enabled.
         """
         if LOG.isEnabledFor(logging.DEBUG):
-            LOG.debug(self.mogrify(query, args).decode('utf-8')) # type: ignore[arg-type]
+            LOG.debug(self.mogrify(query, args).decode('utf-8'))
 
         super().execute(query, args)