add typing information for place_info and country_info

This commit is contained in:
Sarah Hoffmann
2022-07-07 17:31:20 +02:00
parent 282a61ce51
commit d0c44431d0
3 changed files with 29 additions and 23 deletions

View File

@@ -28,7 +28,7 @@ class AbstractAnalyzer(ABC):
return self
def __exit__(self, exc_type, exc_value, traceback) -> None:
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
self.close()
@@ -95,7 +95,7 @@ class AbstractAnalyzer(ABC):
@abstractmethod
def add_country_names(self, country_code: str, names: Dict[str, str]):
def add_country_names(self, country_code: str, names: Dict[str, str]) -> None:
""" Add the given names to the tokenizer's list of country tokens.
Arguments: