adapt typing to newest version of SQLAlchemy

This commit is contained in:
Sarah Hoffmann
2023-11-15 19:59:26 +01:00
parent 383e3ccd25
commit 9a1b8a67d6

View File

@@ -31,7 +31,7 @@ class Cursor(psycopg2.extras.DictCursor):
""" Query execution that logs the SQL query when debugging is enabled. """ Query execution that logs the SQL query when debugging is enabled.
""" """
if LOG.isEnabledFor(logging.DEBUG): 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) super().execute(query, args)