X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f535340d5af0b59c1bbdfde885b62dd483a9e38e..90e207a4974a8714e4bbc99131d18314cabcc9bd:/src/nominatim_db/tools/replication.py 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()