diff options
Diffstat (limited to 'redis/commands/graph/node.py')
-rw-r--r-- | redis/commands/graph/node.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/commands/graph/node.py b/redis/commands/graph/node.py index 0ebe510..4546a39 100644 --- a/redis/commands/graph/node.py +++ b/redis/commands/graph/node.py @@ -65,6 +65,10 @@ class Node: return res def __eq__(self, rhs): + # Type checking + if not isinstance(rhs, Node): + return False + # Quick positive check, if both IDs are set. if self.id is not None and rhs.id is not None and self.id != rhs.id: return False |