X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a28e158bddaed6c690c13df01bfd18a6dd647485..HEAD:/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))