X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8c14df55a61d71f2476c8a17287e1bd162a5c6a6..1f0796778754d8df0dfab9dd01302e26a397f064:/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)