diff --git a/jsondiff/symbols.py b/jsondiff/symbols.py index 48396b5..c5402ea 100644 --- a/jsondiff/symbols.py +++ b/jsondiff/symbols.py @@ -36,8 +36,10 @@ def __str__(self): return "$" + self.label def __eq__(self, other): + if not isinstance(other, Symbol): + return False return self.label == other.label - + def __hash__(self) -> int: return hash(self.label)