mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-15 07:24:09 +00:00
fix style issue found by flake8
This commit is contained in:
@@ -30,6 +30,7 @@ from ...data.place_name import PlaceName
|
||||
from .base import ProcessInfo
|
||||
from .config import SanitizerConfig
|
||||
|
||||
|
||||
class _HousenumberSanitizer:
|
||||
|
||||
def __init__(self, config: SanitizerConfig) -> None:
|
||||
@@ -38,7 +39,6 @@ class _HousenumberSanitizer:
|
||||
|
||||
self.filter_name = config.get_filter('convert-to-name', 'FAIL_ALL')
|
||||
|
||||
|
||||
def __call__(self, obj: ProcessInfo) -> None:
|
||||
if not obj.address:
|
||||
return
|
||||
@@ -57,7 +57,6 @@ class _HousenumberSanitizer:
|
||||
|
||||
obj.address = new_address
|
||||
|
||||
|
||||
def sanitize(self, value: str) -> Iterator[str]:
|
||||
""" Extract housenumbers in a regularized format from an OSM value.
|
||||
|
||||
@@ -68,7 +67,6 @@ class _HousenumberSanitizer:
|
||||
if hnr:
|
||||
yield from self._regularize(hnr)
|
||||
|
||||
|
||||
def _regularize(self, hnr: str) -> Iterator[str]:
|
||||
yield hnr
|
||||
|
||||
|
||||
Reference in New Issue
Block a user