mypy: fix new warnings due to external type updates

This commit is contained in:
Sarah Hoffmann
2022-09-05 17:38:48 +02:00
parent ae5687539a
commit 185c3cf7a8
3 changed files with 4 additions and 3 deletions

View File

@@ -94,7 +94,8 @@ class DBConnection:
# Use a dict to hand in the parameters because async is a reserved
# word in Python3.
self.conn = psycopg2.connect(**{'dsn': self.dsn, 'async': True})
self.conn = psycopg2.connect(**{'dsn': self.dsn, 'async': True}) # type: ignore
assert self.conn
self.wait()
if cursor_factory is not None: