Skip to content

Commit ab8a99b

Browse files
committed
Add __eq__ and __ne__ to _TupleProxy
1 parent 6be3a22 commit ab8a99b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/attr/_make.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ def __len__(self):
124124
def __getitem__(self, item):
125125
return self._tup[item]
126126

127+
def __eq__(self, other):
128+
return self._tup == other
129+
130+
def __ne__(self, other):
131+
return self._tup != other
132+
127133

128134
def attrib(
129135
default=NOTHING,

0 commit comments

Comments
 (0)