mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Move opcode to 2and3 (#938)
* Move opcode to 2and3 * Fix python3 versions * Fix tests * Bring Dict back
This commit is contained in:
committed by
Łukasz Langa
parent
1260d41cd1
commit
e3fb935ca4
23
stdlib/2and3/opcode.pyi
Normal file
23
stdlib/2and3/opcode.pyi
Normal file
@@ -0,0 +1,23 @@
|
||||
from typing import List, Dict, 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: int = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
hasnargs = ... # type: List[int]
|
||||
Reference in New Issue
Block a user