]> git.openstreetmap.org Git - nominatim.git/commitdiff
Revert "work round typing bug in pyosmium 4.0"
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 27 Sep 2024 18:19:37 +0000 (20:19 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 27 Sep 2024 18:19:49 +0000 (20:19 +0200)
This reverts commit f960a9bf7fd1702b3d66995dd69307bd91d61a08.

src/nominatim_db/tools/replication.py

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