diff options
Diffstat (limited to 'redis/commands/graph/edge.py')
-rw-r--r-- | redis/commands/graph/edge.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/commands/graph/edge.py b/redis/commands/graph/edge.py index b0141d9..6ee195f 100644 --- a/redis/commands/graph/edge.py +++ b/redis/commands/graph/edge.py @@ -61,6 +61,10 @@ class Edge: return res def __eq__(self, rhs): + # Type checking + if not isinstance(rhs, Edge): + 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 True |