]> git.openstreetmap.org Git - nominatim.git/commitdiff
work round typing bug in pyosmium 4.0
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Sep 2024 09:51:01 +0000 (11:51 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 24 Sep 2024 09:51:01 +0000 (11:51 +0200)
src/nominatim_db/tools/replication.py

index eb031f390221c4dcea846f9d12999995ddb38011..91171deb8cad626a4b64e1ba0bb5a9c95b5aa0ac 100644 (file)
@@ -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']))
     # 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()
 
                                   max_size=options['max_diff_size'] * 1024)
         outhandler.close()