Skip to content

Commit

Permalink
adapt typing to newest version of SQLAlchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Nov 17, 2023
1 parent 07120f9 commit d545554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nominatim/db/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def execute(self, query: Query, args: Any = None) -> None:
""" 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)

Expand Down
2 changes: 1 addition & 1 deletion nominatim/db/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ def copy_out(self, cur: Cursor, table: str, columns: Optional[Iterable[str]] = N
"""
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)

0 comments on commit d545554

Please sign in to comment.