Skip to content

Commit d41ca05

Browse files
fix(types): implement __eq__ for Removable (#1290)
Co-authored-by: danceratopz <[email protected]>
1 parent 9528ea1 commit d41ca05

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ethereum_test_types/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ class Removable:
7575
(`None` normally means "do not modify").
7676
"""
7777

78-
pass
78+
def __eq__(self, other: Any) -> bool:
79+
"""Return True for all Removable."""
80+
if not isinstance(other, Removable):
81+
return NotImplemented
82+
return True
7983

8084

8185
class EOA(Address):

0 commit comments

Comments
 (0)