summaryrefslogtreecommitdiff
path: root/redis/commands/graph/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/commands/graph/path.py')
-rw-r--r--redis/commands/graph/path.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/redis/commands/graph/path.py b/redis/commands/graph/path.py
index 6f2214a..ee22dc8 100644
--- a/redis/commands/graph/path.py
+++ b/redis/commands/graph/path.py
@@ -54,6 +54,10 @@ class Path:
return self
def __eq__(self, other):
+ # Type checking
+ if not isinstance(other, Path):
+ return False
+
return self.nodes() == other.nodes() and self.edges() == other.edges()
def __str__(self):