mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add stubs for dis and opcode (#331)
This commit is contained in:
18
stdlib/3/opcode.pyi
Normal file
18
stdlib/3/opcode.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import List, Dict, Sequence
|
||||
|
||||
cmp_op = ... # type: Sequence[str]
|
||||
hasconst = ... # type: List[int]
|
||||
hasname = ... # type: List[int]
|
||||
hasjrel = ... # type: List[int]
|
||||
hasjabs = ... # type: List[int]
|
||||
haslocal = ... # type: List[int]
|
||||
hascompare = ... # type: List[int]
|
||||
hasfree = ... # type: List[int]
|
||||
opname = ... # type: List[str]
|
||||
|
||||
opmap = ... # Dict[str, int]
|
||||
HAVE_ARGUMENT = ... # type: int
|
||||
EXTENDED_ARG = ... # type: int
|
||||
hasnargs = ... # type: List[int]
|
||||
|
||||
def stack_effect(opcode: int, oparg: int = ...) -> int: ...
|
||||
Reference in New Issue
Block a user