X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c314a3092c5b51c7782015f6fa9ac093b46fa174..1f0796778754d8df0dfab9dd01302e26a397f064:/src/nominatim_db/tools/special_phrases/special_phrase.py diff --git a/src/nominatim_db/tools/special_phrases/special_phrase.py b/src/nominatim_db/tools/special_phrases/special_phrase.py index cf5c5048..bb16258f 100644 --- a/src/nominatim_db/tools/special_phrases/special_phrase.py +++ b/src/nominatim_db/tools/special_phrases/special_phrase.py @@ -12,6 +12,7 @@ """ from typing import Any + class SpecialPhrase: """ Model representing a special phrase. @@ -29,9 +30,9 @@ class SpecialPhrase: return False return self.p_label == other.p_label \ - and self.p_class == other.p_class \ - and self.p_type == other.p_type \ - and self.p_operator == other.p_operator + and self.p_class == other.p_class \ + and self.p_type == other.p_type \ + and self.p_operator == other.p_operator def __hash__(self) -> int: return hash((self.p_label, self.p_class, self.p_type, self.p_operator))