From e115bd052addbaceb8479ceb3b27cc001b581e30 Mon Sep 17 00:00:00 2001 From: danceratopz Date: Tue, 26 Mar 2024 12:45:33 +0100 Subject: [PATCH] chore(fw): improve docstring --- src/ethereum_test_tools/vm/opcode.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ethereum_test_tools/vm/opcode.py b/src/ethereum_test_tools/vm/opcode.py index fea67d5156..e2bbb168ea 100644 --- a/src/ethereum_test_tools/vm/opcode.py +++ b/src/ethereum_test_tools/vm/opcode.py @@ -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_