Skip to content

Commit 5e03941

Browse files
authored
Endpoint comparison: check only for Endpoint instances
1 parent 2ca15ff commit 5e03941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causallearn/graph/Endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ def __str__(self):
2020
return self.name
2121

2222
def __eq__(self, other):
23-
return self.value == other.value
23+
return isinstance(other, Endpoint) and self.value == other.value

0 commit comments

Comments
 (0)