Type hints

This commit is contained in:
Edward Betts 2023-05-14 21:05:07 +00:00
parent b49ac353f5
commit 3bc6863b49

View file

@ -666,7 +666,7 @@ def get_address_nodes_within_building(osm_id, bbox_list):
return [node.tags for node in q] return [node.tags for node in q]
def osm_display_name(tags: dict[str, str]) -> str | None: def osm_display_name(tags: TagsType) -> str | None:
"""Get name to display from OSM tags.""" """Get name to display from OSM tags."""
keys = ( keys = (
"bridge:name", "bridge:name",