]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/icu_token_analysis.py
add type annotations for ICU tokenizer
[nominatim.git] / nominatim / tokenizer / icu_token_analysis.py
index ed7aea23be4b745926688c517aaad6b77a7c3a9e..62e6a80a28d9df2b0c21c6074a92902263017239 100644 (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.
         """