Skip to content

Commit

Permalink
Add a docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
rayosborn committed Jun 27, 2022
1 parent 2262e14 commit c0a16fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nexusformat/nexus/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -5233,6 +5233,7 @@ def __setitem__(self, idx, value):
self.nxlink.__setitem__(idx, value)

def __eq__(self, other):
"""Return True if two linked objects share the same target."""
if isinstance(other, NXlink):
return ((self._target == other._target) and
(self._filename == other._filename))
Expand Down

0 comments on commit c0a16fd

Please sign in to comment.