add type annotations for ICU tokenizer

This commit is contained in:
Sarah Hoffmann
2022-07-16 17:33:19 +02:00
parent 18b16e06ca
commit 6c6bbe5747
2 changed files with 118 additions and 83 deletions

View File

@@ -36,7 +36,7 @@ class ICUTokenAnalysis:
for name, arules in analysis_rules.items()}
def get_analyzer(self, name: str) -> Analyser:
def get_analyzer(self, name: Optional[str]) -> Analyser:
""" Return the given named analyzer. If no analyzer with that
name exists, return the default analyzer.
"""