X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6e89310a9285f1ad15d8002bf68f578eada367a0..e1dc4379e0cd100200ac53752442143ca4846fc5:/src/nominatim_db/tokenizer/token_analysis/housenumbers.py diff --git a/src/nominatim_db/tokenizer/token_analysis/housenumbers.py b/src/nominatim_db/tokenizer/token_analysis/housenumbers.py index 5b1236f7..f676fba7 100644 --- a/src/nominatim_db/tokenizer/token_analysis/housenumbers.py +++ b/src/nominatim_db/tokenizer/token_analysis/housenumbers.py @@ -19,16 +19,18 @@ RE_DIGIT_ALPHA = re.compile(r'(\d)\s*([^\d\s␣])') RE_ALPHA_DIGIT = re.compile(r'([^\s\d␣])\s*(\d)') RE_NAMED_PART = re.compile(r'[a-z]{4}') -### Configuration section +# Configuration section + def configure(*_: Any) -> None: """ All behaviour is currently hard-coded. """ return None -### Analysis section +# Analysis section + -def create(normalizer: Any, transliterator: Any, config: None) -> 'HousenumberTokenAnalysis': # pylint: disable=W0613 +def create(normalizer: Any, transliterator: Any, config: None) -> 'HousenumberTokenAnalysis': """ Create a new token analysis instance for this module. """ return HousenumberTokenAnalysis(normalizer, transliterator)