mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
dis: Update for Python 3.13 (#11985)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user