mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
Revert "work round typing bug in pyosmium 4.0"
This reverts commit f960a9bf7f
.
This commit is contained in:
parent
c2aa7a9b43
commit
b2dc01ad81
@ -125,8 +125,7 @@ def update(dsn: str, options: MutableMapping[str, Any],
|
|||||||
# Read updates into file.
|
# Read updates into file.
|
||||||
with _make_replication_server(options['base_url'], socket_timeout) as repl:
|
with _make_replication_server(options['base_url'], socket_timeout) as repl:
|
||||||
outhandler = WriteHandler(str(options['import_file']))
|
outhandler = WriteHandler(str(options['import_file']))
|
||||||
# tyoing: work around typing bug in pyosmium 4.0
|
endseq = repl.apply_diffs(outhandler, startseq + 1,
|
||||||
endseq = repl.apply_diffs(outhandler, startseq + 1, # type: ignore[arg-type]
|
|
||||||
max_size=options['max_diff_size'] * 1024)
|
max_size=options['max_diff_size'] * 1024)
|
||||||
outhandler.close()
|
outhandler.close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user