Files
typeshed/stdlib/2and3/opcode.pyi
Jelle Zijlstra cb7949b14e fixes to dis stubs (#1025)
- Add sys.version_info checks (mypy now supports them)
- Went over Python 3 docs and corrected a few things
- Reexport things that are imported from opcode
2017-03-18 14:50:31 -07:00

24 lines
639 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 = ... # 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]