This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit 5e6d607
committed
ABC: return same from OpcodeAPI's as_opcode() as from Opcode.
99.99% cargo-culting.
I don't understand the purpose of this structuring, but the function
signatures don't match, and this is the only permutation I could
find between OpcodeAPI, Opcode and FRONTIER_OPCODES that stops
producing an error when running `mypy`:
eth/vm/opcode.py:40: error: Return type "Opcode" of "as_opcode" incompatible with return type "Type[Opcode]" in supertype "OpcodeAPI"
This commit has been cherry-picked from previous PR:
07b43981 parent 823c145 commit 5e6d607
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | | - | |
| 891 | + | |
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
| |||
0 commit comments