We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfbbd6 commit 10c13ddCopy full SHA for 10c13dd
gemd/entity/base_entity.py
@@ -209,7 +209,9 @@ def __eq__(self, other):
209
from gemd.entity.link_by_uid import LinkByUID
210
from gemd.util import cached_isinstance
211
212
- if cached_isinstance(other, LinkByUID):
+ if id(self) == id(other):
213
+ return True
214
+ elif cached_isinstance(other, LinkByUID):
215
return self.uids.get(other.scope) == other.id
216
elif cached_isinstance(other, tuple):
217
return len(other) == 2 and other[0] in self.uids and self.uids[other[0]] == other[1]
0 commit comments