Skip to content

Commit

Permalink
Update src/bytecode/instr.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriele N. Tornetta <P403n1x87@users.noreply.github.com>
  • Loading branch information
MatthieuDartiailh and P403n1x87 authored Oct 17, 2024
1 parent 4fb730f commit 6d28441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bytecode/instr.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def _check_arg(self, name: str, opcode: int, arg: InstrArg) -> None:
and opcode in _opcode.haslocal
and isinstance(arg, (CellVar, FreeVar))
):
# Cell vars can be accessed using locals in Python 3.13+
# Cell and free vars can be accessed using locals in Python 3.13+
pass

elif not isinstance(arg, str):
Expand Down

0 comments on commit 6d28441

Please sign in to comment.