From: Sarah Hoffmann Date: Tue, 24 Sep 2024 09:51:01 +0000 (+0200) Subject: work round typing bug in pyosmium 4.0 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f960a9bf7fd1702b3d66995dd69307bd91d61a08 work round typing bug in pyosmium 4.0 --- diff --git a/src/nominatim_db/tools/replication.py b/src/nominatim_db/tools/replication.py index eb031f39..91171deb 100644 --- a/src/nominatim_db/tools/replication.py +++ b/src/nominatim_db/tools/replication.py @@ -125,7 +125,8 @@ 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'])) - endseq = repl.apply_diffs(outhandler, startseq + 1, + # tyoing: work around typing bug in pyosmium 4.0 + endseq = repl.apply_diffs(outhandler, startseq + 1, # type: ignore[arg-type] max_size=options['max_diff_size'] * 1024) outhandler.close()