Skip to content

Commit

Permalink
Revert "work round typing bug in pyosmium 4.0"
Browse files Browse the repository at this point in the history
This reverts commit f960a9b.
  • Loading branch information
lonvia committed Sep 27, 2024
1 parent c2aa7a9 commit b2dc01a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nominatim_db/tools/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def update(dsn: str, options: MutableMapping[str, Any],
# Read updates into file.
with _make_replication_server(options['base_url'], socket_timeout) as repl:
outhandler = WriteHandler(str(options['import_file']))
# tyoing: work around typing bug in pyosmium 4.0
endseq = repl.apply_diffs(outhandler, startseq + 1, # type: ignore[arg-type]
endseq = repl.apply_diffs(outhandler, startseq + 1,
max_size=options['max_diff_size'] * 1024)
outhandler.close()

Expand Down

0 comments on commit b2dc01a

Please sign in to comment.