mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
adapt typing for newer version of mypy
This commit is contained in:
@@ -37,7 +37,7 @@ def zoom_to_rank(zoom: int) -> int:
|
|||||||
return REVERSE_MAX_RANKS[max(0, min(18, zoom))]
|
return REVERSE_MAX_RANKS[max(0, min(18, zoom))]
|
||||||
|
|
||||||
|
|
||||||
FEATURE_TYPE_TO_RANK: Dict[Optional[str], Any] = {
|
FEATURE_TYPE_TO_RANK: Dict[Optional[str], Tuple[int, int]] = {
|
||||||
'country': (4, 4),
|
'country': (4, 4),
|
||||||
'state': (8, 8),
|
'state': (8, 8),
|
||||||
'city': (14, 16),
|
'city': (14, 16),
|
||||||
|
|||||||
Reference in New Issue
Block a user