From: Sarah Hoffmann Date: Fri, 27 Sep 2024 18:19:37 +0000 (+0200) Subject: Revert "work round typing bug in pyosmium 4.0" X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/b2dc01ad81e4b91c53e73a695edc5731a52b5aaa?ds=inline;hp=c2aa7a9b439740c2ac6b5f1d532c2375a113e921 Revert "work round typing bug in pyosmium 4.0" This reverts commit f960a9bf7fd1702b3d66995dd69307bd91d61a08. --- diff --git a/src/nominatim_db/tools/replication.py b/src/nominatim_db/tools/replication.py index 91171deb..eb031f39 100644 --- a/src/nominatim_db/tools/replication.py +++ b/src/nominatim_db/tools/replication.py @@ -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()