1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
import sys
from typing import Literal
__all__ = [
"cmp_op",
"hasconst",
"hasname",
"hasjrel",
"hasjabs",
"haslocal",
"hascompare",
"hasfree",
"opname",
"opmap",
"HAVE_ARGUMENT",
"EXTENDED_ARG",
"stack_effect",
]
if sys.version_info >= (3, 12):
__all__ += ["hasarg", "hasexc"]
else:
__all__ += ["hasnargs"]
if sys.version_info >= (3, 13):
__all__ += ["hasjump"]
if sys.version_info >= (3, 9):
cmp_op: tuple[Literal["<"], Literal["<="], Literal["=="], Literal["!="], Literal[">"], Literal[">="]]
else:
cmp_op: tuple[
Literal["<"],
Literal["<="],
Literal["=="],
Literal["!="],
Literal[">"],
Literal[">="],
Literal["in"],
Literal["not in"],
Literal["is"],
Literal["is not"],
Literal["exception match"],
Literal["BAD"],
]
hasconst: list[int]
hasname: list[int]
hasjrel: list[int]
hasjabs: list[int]
haslocal: list[int]
hascompare: list[int]
hasfree: list[int]
if sys.version_info >= (3, 12):
hasarg: list[int]
hasexc: list[int]
else:
hasnargs: list[int]
if sys.version_info >= (3, 13):
hasjump: list[int]
opname: list[str]
opmap: dict[str, int]
HAVE_ARGUMENT: int
EXTENDED_ARG: int
def stack_effect(opcode: int, oparg: int | None = None, /, *, jump: bool | None = None) -> int: ...
|