mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 13:54:07 +00:00
add type annotations for ICU tokenizer
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user