Attempt to fix annotation bugs

This commit is contained in:
rocky
2024-02-11 19:14:50 -05:00
parent a4971ee27d
commit f9f5a64c87
6 changed files with 67 additions and 63 deletions

View File

@@ -318,12 +318,6 @@ class Scanner37Base(Scanner):
argval = inst.argval
op = inst.opcode
if inst.opname == "EXTENDED_ARG":
# FIXME: The EXTENDED_ARG is used to signal annotation
# parameters
if i + 1 < n and self.insts[i + 1].opcode != self.opc.MAKE_FUNCTION:
continue
if inst.offset in jump_targets:
jump_idx = 0
# We want to process COME_FROMs to the same offset to be in *descending*