]> git.openstreetmap.org Git - nominatim.git/commitdiff
adapt typing to newest version of SQLAlchemy
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 17 Nov 2023 09:08:54 +0000 (10:08 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 17 Nov 2023 09:08:54 +0000 (10:08 +0100)
nominatim/db/connection.py
nominatim/db/utils.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)
 
index d9154ed90160b5b0a4c01e72fc6df5de4a9002cf..e3f0712a11b6f53551bc90e4734798e441f33142 100644 (file)
@@ -118,4 +118,4 @@ class CopyBuffer:
         """
         if self.buffer.tell() > 0:
             self.buffer.seek(0)
-            cur.copy_from(self.buffer, table, columns=columns) # type: ignore[arg-type]
+            cur.copy_from(self.buffer, table, columns=columns)