dis: Update for Python 3.13 (#11985)

This commit is contained in:
Jelle Zijlstra
2024-05-20 07:02:52 -04:00
committed by GitHub
parent b8d144d491
commit 3cb7451c99

View File

@@ -47,7 +47,22 @@ if sys.version_info >= (3, 11):
col_offset: int | None = None
end_col_offset: int | None = None
if sys.version_info >= (3, 11):
if sys.version_info >= (3, 13):
class _Instruction(NamedTuple):
opname: str
opcode: int
arg: int | None
argval: Any
argrepr: str
offset: int
start_offset: int
starts_line: bool
line_number: int | None
label: int | None = None
positions: Positions | None = None
cache_info: list[tuple[str, int, Any]] | None = None
elif sys.version_info >= (3, 11):
class _Instruction(NamedTuple):
opname: str
opcode: int