"""
from typing import Optional, List, Mapping, Callable
-from nominatim_core.typing import Protocol, Final
+from ...typing import Protocol, Final
from ...data.place_info import PlaceInfo
from ...data.place_name import PlaceName
from .config import SanitizerConfig
self.names = self._convert_name_dict(place.name)
self.address = self._convert_name_dict(place.address)
-
@staticmethod
def _convert_name_dict(names: Optional[Mapping[str, str]]) -> List[PlaceName]:
""" Convert a dictionary of names into a list of PlaceNames.