mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
25
stdlib/opcode.pyi
Normal file
25
stdlib/opcode.pyi
Normal file
@@ -0,0 +1,25 @@
|
||||
import sys
|
||||
from typing import Dict, List, Optional, Sequence
|
||||
|
||||
cmp_op: Sequence[str]
|
||||
hasconst: List[int]
|
||||
hasname: List[int]
|
||||
hasjrel: List[int]
|
||||
hasjabs: List[int]
|
||||
haslocal: List[int]
|
||||
hascompare: List[int]
|
||||
hasfree: List[int]
|
||||
opname: List[str]
|
||||
|
||||
opmap: Dict[str, int]
|
||||
HAVE_ARGUMENT: int
|
||||
EXTENDED_ARG: int
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def stack_effect(__opcode: int, __oparg: Optional[int] = ..., *, jump: Optional[bool] = ...) -> int: ...
|
||||
|
||||
elif sys.version_info >= (3, 4):
|
||||
def stack_effect(__opcode: int, __oparg: Optional[int] = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
hasnargs: List[int]
|
||||
Reference in New Issue
Block a user