Files
typeshed/stdlib/2and3/opcode.pyi
2017-04-05 17:06:09 -07:00

24 lines
645 B
Python

from typing import List, Dict, Optional, Sequence
import sys
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 = ... # type: Dict[str, int]
HAVE_ARGUMENT = ... # type: int
EXTENDED_ARG = ... # type: int
if sys.version_info >= (3, 4):
def stack_effect(opcode: int, oparg: Optional[int] = ...) -> int: ...
if sys.version_info >= (3, 6):
hasnargs = ... # type: List[int]