mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
opcode: update for py313 (#11944)
This commit is contained in:
@@ -20,6 +20,8 @@ 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[">="]]
|
||||
@@ -50,10 +52,12 @@ if sys.version_info >= (3, 12):
|
||||
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: Literal[90]
|
||||
EXTENDED_ARG: Literal[144]
|
||||
HAVE_ARGUMENT: int
|
||||
EXTENDED_ARG: int
|
||||
|
||||
def stack_effect(opcode: int, oparg: int | None = None, /, *, jump: bool | None = None) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user