adapt typing to newest version of SQLAlchemy

This commit is contained in:
Sarah Hoffmann 2023-11-17 10:08:54 +01:00
parent 07120f9af5
commit d545554615
2 changed files with 2 additions and 2 deletions

View 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)

View 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)