mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
- 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
24 lines
639 B
Python
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]
|