Skip to content

Commit d6d9312

Browse files
authored
Merge pull request #154 from MarkDana/patch-for-endpoint-comparison
Endpoint comparison: check only for Endpoint instances
2 parents 2ca15ff + 5e03941 commit d6d9312

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)