Skip to content

Commit

Permalink
chore(fw): improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Mar 26, 2024
1 parent a464a85 commit e115bd0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ethereum_test_tools/vm/opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ def __str__(self) -> str:

def __eq__(self, other):
"""
Required to differentiate between SELFDESTRUCT and SENDALL type of cases
And to compare with the Macro opcodes
Allows comparison between OpcodeMacroBase instances and bytes objects.
Raises:
- NotImplementedError: if the comparison is not between an OpcodeMacroBase
or a bytes object.
"""
if isinstance(other, OpcodeMacroBase):
return self._name_ == other._name_
Expand Down

0 comments on commit e115bd0

Please sign in to comment.