- def __init__(self, p_label, p_class, p_type, p_operator):
+ def __init__(self, p_label: str, p_class: str, p_type: str, p_operator: str) -> None:
self.p_type = p_type.strip()
# Needed if some operator in the wiki are not written in english
p_operator = p_operator.strip().lower()
self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator
self.p_type = p_type.strip()
# Needed if some operator in the wiki are not written in english
p_operator = p_operator.strip().lower()
self.p_operator = '-' if p_operator not in ('near', 'in') else p_operator
return hash((self.p_label, self.p_class, self.p_type, self.p_operator))
return hash((self.p_label, self.p_class, self.p_type, self.p_operator))