mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Fixing flake8 E261 errors
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
import typing
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
|
||||
identifier = str
|
||||
|
||||
class AST:
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
_attributes = ... # type: typing.Tuple[str, ...]
|
||||
_fields = ... # type: typing.Tuple[str, ...]
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class mod(AST):
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
from typing import Any
|
||||
import io
|
||||
|
||||
BUFFER_SIZE = ... # type: Any
|
||||
BUFFER_SIZE = ... # type: Any
|
||||
|
||||
class BaseStream(io.BufferedIOBase): ...
|
||||
|
||||
|
||||
@@ -4,218 +4,218 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
ALL_MOUSE_EVENTS = ... # type: int
|
||||
A_ALTCHARSET = ... # type: int
|
||||
A_ATTRIBUTES = ... # type: int
|
||||
A_BLINK = ... # type: int
|
||||
A_BOLD = ... # type: int
|
||||
A_CHARTEXT = ... # type: int
|
||||
A_COLOR = ... # type: int
|
||||
A_DIM = ... # type: int
|
||||
A_HORIZONTAL = ... # type: int
|
||||
A_INVIS = ... # type: int
|
||||
A_LEFT = ... # type: int
|
||||
A_LOW = ... # type: int
|
||||
A_NORMAL = ... # type: int
|
||||
A_PROTECT = ... # type: int
|
||||
A_REVERSE = ... # type: int
|
||||
A_RIGHT = ... # type: int
|
||||
A_STANDOUT = ... # type: int
|
||||
A_TOP = ... # type: int
|
||||
A_UNDERLINE = ... # type: int
|
||||
A_VERTICAL = ... # type: int
|
||||
BUTTON1_CLICKED = ... # type: int
|
||||
BUTTON1_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON1_PRESSED = ... # type: int
|
||||
BUTTON1_RELEASED = ... # type: int
|
||||
BUTTON1_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON2_CLICKED = ... # type: int
|
||||
BUTTON2_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON2_PRESSED = ... # type: int
|
||||
BUTTON2_RELEASED = ... # type: int
|
||||
BUTTON2_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON3_CLICKED = ... # type: int
|
||||
BUTTON3_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON3_PRESSED = ... # type: int
|
||||
BUTTON3_RELEASED = ... # type: int
|
||||
BUTTON3_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON4_CLICKED = ... # type: int
|
||||
BUTTON4_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON4_PRESSED = ... # type: int
|
||||
BUTTON4_RELEASED = ... # type: int
|
||||
BUTTON4_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON_ALT = ... # type: int
|
||||
BUTTON_CTRL = ... # type: int
|
||||
BUTTON_SHIFT = ... # type: int
|
||||
COLOR_BLACK = ... # type: int
|
||||
COLOR_BLUE = ... # type: int
|
||||
COLOR_CYAN = ... # type: int
|
||||
COLOR_GREEN = ... # type: int
|
||||
COLOR_MAGENTA = ... # type: int
|
||||
COLOR_RED = ... # type: int
|
||||
COLOR_WHITE = ... # type: int
|
||||
COLOR_YELLOW = ... # type: int
|
||||
ERR = ... # type: int
|
||||
KEY_A1 = ... # type: int
|
||||
KEY_A3 = ... # type: int
|
||||
KEY_B2 = ... # type: int
|
||||
KEY_BACKSPACE = ... # type: int
|
||||
KEY_BEG = ... # type: int
|
||||
KEY_BREAK = ... # type: int
|
||||
KEY_BTAB = ... # type: int
|
||||
KEY_C1 = ... # type: int
|
||||
KEY_C3 = ... # type: int
|
||||
KEY_CANCEL = ... # type: int
|
||||
KEY_CATAB = ... # type: int
|
||||
KEY_CLEAR = ... # type: int
|
||||
KEY_CLOSE = ... # type: int
|
||||
KEY_COMMAND = ... # type: int
|
||||
KEY_COPY = ... # type: int
|
||||
KEY_CREATE = ... # type: int
|
||||
KEY_CTAB = ... # type: int
|
||||
KEY_DC = ... # type: int
|
||||
KEY_DL = ... # type: int
|
||||
KEY_DOWN = ... # type: int
|
||||
KEY_EIC = ... # type: int
|
||||
KEY_END = ... # type: int
|
||||
KEY_ENTER = ... # type: int
|
||||
KEY_EOL = ... # type: int
|
||||
KEY_EOS = ... # type: int
|
||||
KEY_EXIT = ... # type: int
|
||||
KEY_F0 = ... # type: int
|
||||
KEY_F1 = ... # type: int
|
||||
KEY_F10 = ... # type: int
|
||||
KEY_F11 = ... # type: int
|
||||
KEY_F12 = ... # type: int
|
||||
KEY_F13 = ... # type: int
|
||||
KEY_F14 = ... # type: int
|
||||
KEY_F15 = ... # type: int
|
||||
KEY_F16 = ... # type: int
|
||||
KEY_F17 = ... # type: int
|
||||
KEY_F18 = ... # type: int
|
||||
KEY_F19 = ... # type: int
|
||||
KEY_F2 = ... # type: int
|
||||
KEY_F20 = ... # type: int
|
||||
KEY_F21 = ... # type: int
|
||||
KEY_F22 = ... # type: int
|
||||
KEY_F23 = ... # type: int
|
||||
KEY_F24 = ... # type: int
|
||||
KEY_F25 = ... # type: int
|
||||
KEY_F26 = ... # type: int
|
||||
KEY_F27 = ... # type: int
|
||||
KEY_F28 = ... # type: int
|
||||
KEY_F29 = ... # type: int
|
||||
KEY_F3 = ... # type: int
|
||||
KEY_F30 = ... # type: int
|
||||
KEY_F31 = ... # type: int
|
||||
KEY_F32 = ... # type: int
|
||||
KEY_F33 = ... # type: int
|
||||
KEY_F34 = ... # type: int
|
||||
KEY_F35 = ... # type: int
|
||||
KEY_F36 = ... # type: int
|
||||
KEY_F37 = ... # type: int
|
||||
KEY_F38 = ... # type: int
|
||||
KEY_F39 = ... # type: int
|
||||
KEY_F4 = ... # type: int
|
||||
KEY_F40 = ... # type: int
|
||||
KEY_F41 = ... # type: int
|
||||
KEY_F42 = ... # type: int
|
||||
KEY_F43 = ... # type: int
|
||||
KEY_F44 = ... # type: int
|
||||
KEY_F45 = ... # type: int
|
||||
KEY_F46 = ... # type: int
|
||||
KEY_F47 = ... # type: int
|
||||
KEY_F48 = ... # type: int
|
||||
KEY_F49 = ... # type: int
|
||||
KEY_F5 = ... # type: int
|
||||
KEY_F50 = ... # type: int
|
||||
KEY_F51 = ... # type: int
|
||||
KEY_F52 = ... # type: int
|
||||
KEY_F53 = ... # type: int
|
||||
KEY_F54 = ... # type: int
|
||||
KEY_F55 = ... # type: int
|
||||
KEY_F56 = ... # type: int
|
||||
KEY_F57 = ... # type: int
|
||||
KEY_F58 = ... # type: int
|
||||
KEY_F59 = ... # type: int
|
||||
KEY_F6 = ... # type: int
|
||||
KEY_F60 = ... # type: int
|
||||
KEY_F61 = ... # type: int
|
||||
KEY_F62 = ... # type: int
|
||||
KEY_F63 = ... # type: int
|
||||
KEY_F7 = ... # type: int
|
||||
KEY_F8 = ... # type: int
|
||||
KEY_F9 = ... # type: int
|
||||
KEY_FIND = ... # type: int
|
||||
KEY_HELP = ... # type: int
|
||||
KEY_HOME = ... # type: int
|
||||
KEY_IC = ... # type: int
|
||||
KEY_IL = ... # type: int
|
||||
KEY_LEFT = ... # type: int
|
||||
KEY_LL = ... # type: int
|
||||
KEY_MARK = ... # type: int
|
||||
KEY_MAX = ... # type: int
|
||||
KEY_MESSAGE = ... # type: int
|
||||
KEY_MIN = ... # type: int
|
||||
KEY_MOUSE = ... # type: int
|
||||
KEY_MOVE = ... # type: int
|
||||
KEY_NEXT = ... # type: int
|
||||
KEY_NPAGE = ... # type: int
|
||||
KEY_OPEN = ... # type: int
|
||||
KEY_OPTIONS = ... # type: int
|
||||
KEY_PPAGE = ... # type: int
|
||||
KEY_PREVIOUS = ... # type: int
|
||||
KEY_PRINT = ... # type: int
|
||||
KEY_REDO = ... # type: int
|
||||
KEY_REFERENCE = ... # type: int
|
||||
KEY_REFRESH = ... # type: int
|
||||
KEY_REPLACE = ... # type: int
|
||||
KEY_RESET = ... # type: int
|
||||
KEY_RESIZE = ... # type: int
|
||||
KEY_RESTART = ... # type: int
|
||||
KEY_RESUME = ... # type: int
|
||||
KEY_RIGHT = ... # type: int
|
||||
KEY_SAVE = ... # type: int
|
||||
KEY_SBEG = ... # type: int
|
||||
KEY_SCANCEL = ... # type: int
|
||||
KEY_SCOMMAND = ... # type: int
|
||||
KEY_SCOPY = ... # type: int
|
||||
KEY_SCREATE = ... # type: int
|
||||
KEY_SDC = ... # type: int
|
||||
KEY_SDL = ... # type: int
|
||||
KEY_SELECT = ... # type: int
|
||||
KEY_SEND = ... # type: int
|
||||
KEY_SEOL = ... # type: int
|
||||
KEY_SEXIT = ... # type: int
|
||||
KEY_SF = ... # type: int
|
||||
KEY_SFIND = ... # type: int
|
||||
KEY_SHELP = ... # type: int
|
||||
KEY_SHOME = ... # type: int
|
||||
KEY_SIC = ... # type: int
|
||||
KEY_SLEFT = ... # type: int
|
||||
KEY_SMESSAGE = ... # type: int
|
||||
KEY_SMOVE = ... # type: int
|
||||
KEY_SNEXT = ... # type: int
|
||||
KEY_SOPTIONS = ... # type: int
|
||||
KEY_SPREVIOUS = ... # type: int
|
||||
KEY_SPRINT = ... # type: int
|
||||
KEY_SR = ... # type: int
|
||||
KEY_SREDO = ... # type: int
|
||||
KEY_SREPLACE = ... # type: int
|
||||
KEY_SRESET = ... # type: int
|
||||
KEY_SRIGHT = ... # type: int
|
||||
KEY_SRSUME = ... # type: int
|
||||
KEY_SSAVE = ... # type: int
|
||||
KEY_SSUSPEND = ... # type: int
|
||||
KEY_STAB = ... # type: int
|
||||
KEY_SUNDO = ... # type: int
|
||||
KEY_SUSPEND = ... # type: int
|
||||
KEY_UNDO = ... # type: int
|
||||
KEY_UP = ... # type: int
|
||||
OK = ... # type: int
|
||||
REPORT_MOUSE_POSITION = ... # type: int
|
||||
_C_API = ... # type: Any
|
||||
version = ... # type: bytes
|
||||
ALL_MOUSE_EVENTS = ... # type: int
|
||||
A_ALTCHARSET = ... # type: int
|
||||
A_ATTRIBUTES = ... # type: int
|
||||
A_BLINK = ... # type: int
|
||||
A_BOLD = ... # type: int
|
||||
A_CHARTEXT = ... # type: int
|
||||
A_COLOR = ... # type: int
|
||||
A_DIM = ... # type: int
|
||||
A_HORIZONTAL = ... # type: int
|
||||
A_INVIS = ... # type: int
|
||||
A_LEFT = ... # type: int
|
||||
A_LOW = ... # type: int
|
||||
A_NORMAL = ... # type: int
|
||||
A_PROTECT = ... # type: int
|
||||
A_REVERSE = ... # type: int
|
||||
A_RIGHT = ... # type: int
|
||||
A_STANDOUT = ... # type: int
|
||||
A_TOP = ... # type: int
|
||||
A_UNDERLINE = ... # type: int
|
||||
A_VERTICAL = ... # type: int
|
||||
BUTTON1_CLICKED = ... # type: int
|
||||
BUTTON1_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON1_PRESSED = ... # type: int
|
||||
BUTTON1_RELEASED = ... # type: int
|
||||
BUTTON1_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON2_CLICKED = ... # type: int
|
||||
BUTTON2_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON2_PRESSED = ... # type: int
|
||||
BUTTON2_RELEASED = ... # type: int
|
||||
BUTTON2_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON3_CLICKED = ... # type: int
|
||||
BUTTON3_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON3_PRESSED = ... # type: int
|
||||
BUTTON3_RELEASED = ... # type: int
|
||||
BUTTON3_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON4_CLICKED = ... # type: int
|
||||
BUTTON4_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON4_PRESSED = ... # type: int
|
||||
BUTTON4_RELEASED = ... # type: int
|
||||
BUTTON4_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON_ALT = ... # type: int
|
||||
BUTTON_CTRL = ... # type: int
|
||||
BUTTON_SHIFT = ... # type: int
|
||||
COLOR_BLACK = ... # type: int
|
||||
COLOR_BLUE = ... # type: int
|
||||
COLOR_CYAN = ... # type: int
|
||||
COLOR_GREEN = ... # type: int
|
||||
COLOR_MAGENTA = ... # type: int
|
||||
COLOR_RED = ... # type: int
|
||||
COLOR_WHITE = ... # type: int
|
||||
COLOR_YELLOW = ... # type: int
|
||||
ERR = ... # type: int
|
||||
KEY_A1 = ... # type: int
|
||||
KEY_A3 = ... # type: int
|
||||
KEY_B2 = ... # type: int
|
||||
KEY_BACKSPACE = ... # type: int
|
||||
KEY_BEG = ... # type: int
|
||||
KEY_BREAK = ... # type: int
|
||||
KEY_BTAB = ... # type: int
|
||||
KEY_C1 = ... # type: int
|
||||
KEY_C3 = ... # type: int
|
||||
KEY_CANCEL = ... # type: int
|
||||
KEY_CATAB = ... # type: int
|
||||
KEY_CLEAR = ... # type: int
|
||||
KEY_CLOSE = ... # type: int
|
||||
KEY_COMMAND = ... # type: int
|
||||
KEY_COPY = ... # type: int
|
||||
KEY_CREATE = ... # type: int
|
||||
KEY_CTAB = ... # type: int
|
||||
KEY_DC = ... # type: int
|
||||
KEY_DL = ... # type: int
|
||||
KEY_DOWN = ... # type: int
|
||||
KEY_EIC = ... # type: int
|
||||
KEY_END = ... # type: int
|
||||
KEY_ENTER = ... # type: int
|
||||
KEY_EOL = ... # type: int
|
||||
KEY_EOS = ... # type: int
|
||||
KEY_EXIT = ... # type: int
|
||||
KEY_F0 = ... # type: int
|
||||
KEY_F1 = ... # type: int
|
||||
KEY_F10 = ... # type: int
|
||||
KEY_F11 = ... # type: int
|
||||
KEY_F12 = ... # type: int
|
||||
KEY_F13 = ... # type: int
|
||||
KEY_F14 = ... # type: int
|
||||
KEY_F15 = ... # type: int
|
||||
KEY_F16 = ... # type: int
|
||||
KEY_F17 = ... # type: int
|
||||
KEY_F18 = ... # type: int
|
||||
KEY_F19 = ... # type: int
|
||||
KEY_F2 = ... # type: int
|
||||
KEY_F20 = ... # type: int
|
||||
KEY_F21 = ... # type: int
|
||||
KEY_F22 = ... # type: int
|
||||
KEY_F23 = ... # type: int
|
||||
KEY_F24 = ... # type: int
|
||||
KEY_F25 = ... # type: int
|
||||
KEY_F26 = ... # type: int
|
||||
KEY_F27 = ... # type: int
|
||||
KEY_F28 = ... # type: int
|
||||
KEY_F29 = ... # type: int
|
||||
KEY_F3 = ... # type: int
|
||||
KEY_F30 = ... # type: int
|
||||
KEY_F31 = ... # type: int
|
||||
KEY_F32 = ... # type: int
|
||||
KEY_F33 = ... # type: int
|
||||
KEY_F34 = ... # type: int
|
||||
KEY_F35 = ... # type: int
|
||||
KEY_F36 = ... # type: int
|
||||
KEY_F37 = ... # type: int
|
||||
KEY_F38 = ... # type: int
|
||||
KEY_F39 = ... # type: int
|
||||
KEY_F4 = ... # type: int
|
||||
KEY_F40 = ... # type: int
|
||||
KEY_F41 = ... # type: int
|
||||
KEY_F42 = ... # type: int
|
||||
KEY_F43 = ... # type: int
|
||||
KEY_F44 = ... # type: int
|
||||
KEY_F45 = ... # type: int
|
||||
KEY_F46 = ... # type: int
|
||||
KEY_F47 = ... # type: int
|
||||
KEY_F48 = ... # type: int
|
||||
KEY_F49 = ... # type: int
|
||||
KEY_F5 = ... # type: int
|
||||
KEY_F50 = ... # type: int
|
||||
KEY_F51 = ... # type: int
|
||||
KEY_F52 = ... # type: int
|
||||
KEY_F53 = ... # type: int
|
||||
KEY_F54 = ... # type: int
|
||||
KEY_F55 = ... # type: int
|
||||
KEY_F56 = ... # type: int
|
||||
KEY_F57 = ... # type: int
|
||||
KEY_F58 = ... # type: int
|
||||
KEY_F59 = ... # type: int
|
||||
KEY_F6 = ... # type: int
|
||||
KEY_F60 = ... # type: int
|
||||
KEY_F61 = ... # type: int
|
||||
KEY_F62 = ... # type: int
|
||||
KEY_F63 = ... # type: int
|
||||
KEY_F7 = ... # type: int
|
||||
KEY_F8 = ... # type: int
|
||||
KEY_F9 = ... # type: int
|
||||
KEY_FIND = ... # type: int
|
||||
KEY_HELP = ... # type: int
|
||||
KEY_HOME = ... # type: int
|
||||
KEY_IC = ... # type: int
|
||||
KEY_IL = ... # type: int
|
||||
KEY_LEFT = ... # type: int
|
||||
KEY_LL = ... # type: int
|
||||
KEY_MARK = ... # type: int
|
||||
KEY_MAX = ... # type: int
|
||||
KEY_MESSAGE = ... # type: int
|
||||
KEY_MIN = ... # type: int
|
||||
KEY_MOUSE = ... # type: int
|
||||
KEY_MOVE = ... # type: int
|
||||
KEY_NEXT = ... # type: int
|
||||
KEY_NPAGE = ... # type: int
|
||||
KEY_OPEN = ... # type: int
|
||||
KEY_OPTIONS = ... # type: int
|
||||
KEY_PPAGE = ... # type: int
|
||||
KEY_PREVIOUS = ... # type: int
|
||||
KEY_PRINT = ... # type: int
|
||||
KEY_REDO = ... # type: int
|
||||
KEY_REFERENCE = ... # type: int
|
||||
KEY_REFRESH = ... # type: int
|
||||
KEY_REPLACE = ... # type: int
|
||||
KEY_RESET = ... # type: int
|
||||
KEY_RESIZE = ... # type: int
|
||||
KEY_RESTART = ... # type: int
|
||||
KEY_RESUME = ... # type: int
|
||||
KEY_RIGHT = ... # type: int
|
||||
KEY_SAVE = ... # type: int
|
||||
KEY_SBEG = ... # type: int
|
||||
KEY_SCANCEL = ... # type: int
|
||||
KEY_SCOMMAND = ... # type: int
|
||||
KEY_SCOPY = ... # type: int
|
||||
KEY_SCREATE = ... # type: int
|
||||
KEY_SDC = ... # type: int
|
||||
KEY_SDL = ... # type: int
|
||||
KEY_SELECT = ... # type: int
|
||||
KEY_SEND = ... # type: int
|
||||
KEY_SEOL = ... # type: int
|
||||
KEY_SEXIT = ... # type: int
|
||||
KEY_SF = ... # type: int
|
||||
KEY_SFIND = ... # type: int
|
||||
KEY_SHELP = ... # type: int
|
||||
KEY_SHOME = ... # type: int
|
||||
KEY_SIC = ... # type: int
|
||||
KEY_SLEFT = ... # type: int
|
||||
KEY_SMESSAGE = ... # type: int
|
||||
KEY_SMOVE = ... # type: int
|
||||
KEY_SNEXT = ... # type: int
|
||||
KEY_SOPTIONS = ... # type: int
|
||||
KEY_SPREVIOUS = ... # type: int
|
||||
KEY_SPRINT = ... # type: int
|
||||
KEY_SR = ... # type: int
|
||||
KEY_SREDO = ... # type: int
|
||||
KEY_SREPLACE = ... # type: int
|
||||
KEY_SRESET = ... # type: int
|
||||
KEY_SRIGHT = ... # type: int
|
||||
KEY_SRSUME = ... # type: int
|
||||
KEY_SSAVE = ... # type: int
|
||||
KEY_SSUSPEND = ... # type: int
|
||||
KEY_STAB = ... # type: int
|
||||
KEY_SUNDO = ... # type: int
|
||||
KEY_SUSPEND = ... # type: int
|
||||
KEY_UNDO = ... # type: int
|
||||
KEY_UP = ... # type: int
|
||||
OK = ... # type: int
|
||||
REPORT_MOUSE_POSITION = ... # type: int
|
||||
_C_API = ... # type: Any
|
||||
version = ... # type: bytes
|
||||
|
||||
def baudrate(*args, **kwargs): ...
|
||||
def beep(*args, **kwargs): ...
|
||||
|
||||
@@ -14,22 +14,22 @@ if sys.version_info >= (3, 4):
|
||||
def __init__(self, name: str, loader: Optional['Loader'], *,
|
||||
origin: str = None, loader_state: Any = None,
|
||||
is_package: bool = None) -> None: ...
|
||||
name = ... # type: str
|
||||
loader = ... # type: Optional[Loader]
|
||||
origin = ... # type: Optional[str]
|
||||
submodule_search_locations = ... # type: Optional[List[str]]
|
||||
loader_state = ... # type: Any
|
||||
cached = ... # type: Optional[str]
|
||||
parent = ... # type: Optional[str]
|
||||
has_location = ... # type: bool
|
||||
name = ... # type: str
|
||||
loader = ... # type: Optional[Loader]
|
||||
origin = ... # type: Optional[str]
|
||||
submodule_search_locations = ... # type: Optional[List[str]]
|
||||
loader_state = ... # type: Any
|
||||
cached = ... # type: Optional[str]
|
||||
parent = ... # type: Optional[str]
|
||||
has_location = ... # type: bool
|
||||
|
||||
class ModuleType:
|
||||
__name__ = ... # type: str
|
||||
__name__ = ... # type: str
|
||||
__file__ = ... # type: str
|
||||
if sys.version_info >= (3, 4):
|
||||
__loader__ = ... # type: Optional[Loader]
|
||||
__package__ = ... # type: Optional[str]
|
||||
__spec__ = ... # type: Optional[ModuleSpec]
|
||||
__loader__ = ... # type: Optional[Loader]
|
||||
__package__ = ... # type: Optional[str]
|
||||
__spec__ = ... # type: Optional[ModuleSpec]
|
||||
def __init__(self, name: str, doc: str) -> None: ...
|
||||
|
||||
class Loader(metaclass=ABCMeta):
|
||||
|
||||
@@ -36,4 +36,4 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ...
|
||||
def literal_eval(node_or_string: Union[str, AST]) -> Any: ...
|
||||
def walk(node: AST) -> Iterator[AST]: ...
|
||||
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
|
||||
@@ -426,13 +426,13 @@ class bytearray(MutableSequence[int], ByteString):
|
||||
|
||||
|
||||
class memoryview(Sized, Container[bytes]):
|
||||
format = ... # type: str
|
||||
itemsize = ... # type: int
|
||||
shape = ... # type: Optional[Tuple[int, ...]]
|
||||
strides = ... # type: Optional[Tuple[int, ...]]
|
||||
suboffsets = ... # type: Optional[Tuple[int, ...]]
|
||||
readonly = ... # type: bool
|
||||
ndim = ... # type: int
|
||||
format = ... # type: str
|
||||
itemsize = ... # type: int
|
||||
shape = ... # type: Optional[Tuple[int, ...]]
|
||||
strides = ... # type: Optional[Tuple[int, ...]]
|
||||
suboffsets = ... # type: Optional[Tuple[int, ...]]
|
||||
readonly = ... # type: bool
|
||||
ndim = ... # type: int
|
||||
|
||||
def __init__(self, obj: Union[str, bytes, bytearray, memoryview]) -> None: ...
|
||||
|
||||
@@ -495,7 +495,7 @@ class function:
|
||||
__name__ = ... # type: str
|
||||
__qualname__ = ... # type: str
|
||||
__module__ = ... # type: str
|
||||
__code__ = ... # type: Any
|
||||
__code__ = ... # type: Any
|
||||
|
||||
class list(MutableSequence[_T], Generic[_T]):
|
||||
@overload
|
||||
@@ -786,7 +786,7 @@ def zip(iter1: Iterable[_T1], iter2: Iterable[_T2],
|
||||
@overload
|
||||
def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3],
|
||||
iter4: Iterable[_T4]) -> Iterator[Tuple[_T1, _T2,
|
||||
_T3, _T4]]: ... # TODO more than four iterables
|
||||
_T3, _T4]]: ... # TODO more than four iterables
|
||||
def __import__(name: str, globals: Dict[str, Any] = {}, locals: Dict[str, Any] = {},
|
||||
fromlist: List[str] = [], level: int = -1) -> Any: ...
|
||||
|
||||
@@ -801,9 +801,9 @@ Ellipsis = ... # type: ellipsis
|
||||
|
||||
class BaseException:
|
||||
args = ... # type: Tuple[Any, ...]
|
||||
__cause__ = ... # type: BaseException
|
||||
__context__ = ... # type: BaseException
|
||||
__traceback__ = ... # type: TracebackType
|
||||
__cause__ = ... # type: BaseException
|
||||
__context__ = ... # type: BaseException
|
||||
__traceback__ = ... # type: TracebackType
|
||||
def __init__(self, *args: Any) -> None: ...
|
||||
def with_traceback(self, tb: Any) -> BaseException: ...
|
||||
|
||||
@@ -872,19 +872,19 @@ class TypeError(Exception): ...
|
||||
class UnboundLocalError(NameError): ...
|
||||
class UnicodeError(ValueError): ...
|
||||
class UnicodeDecodeError(UnicodeError):
|
||||
encoding = ... # type: str
|
||||
object = ... # type: bytes
|
||||
start = ... # type: int
|
||||
end = ... # type: int
|
||||
reason = ... # type: str
|
||||
encoding = ... # type: str
|
||||
object = ... # type: bytes
|
||||
start = ... # type: int
|
||||
end = ... # type: int
|
||||
reason = ... # type: str
|
||||
def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int,
|
||||
__reason: str) -> None: ...
|
||||
class UnicodeEncodeError(UnicodeError):
|
||||
encoding = ... # type: str
|
||||
object = ... # type: str
|
||||
start = ... # type: int
|
||||
end = ... # type: int
|
||||
reason = ... # type: str
|
||||
encoding = ... # type: str
|
||||
object = ... # type: str
|
||||
start = ... # type: int
|
||||
end = ... # type: int
|
||||
reason = ... # type: str
|
||||
def __init__(self, __encoding: str, __object: str, __start: int, __end: int,
|
||||
__reason: str) -> None: ...
|
||||
class UnicodeTranslateError(UnicodeError): ...
|
||||
|
||||
@@ -24,12 +24,12 @@ _encoded = bytes
|
||||
|
||||
# TODO: It is not possible to specify these signatures correctly, because
|
||||
# they have an optional positional or keyword argument for errors=.
|
||||
_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode
|
||||
_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode
|
||||
_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__
|
||||
_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__
|
||||
_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__
|
||||
_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__
|
||||
_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode
|
||||
_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode
|
||||
_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__
|
||||
_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__
|
||||
_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__
|
||||
_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__
|
||||
|
||||
|
||||
def encode(obj: _decoded, encoding: str = ..., errors: str = ...) -> _encoded:
|
||||
|
||||
@@ -38,7 +38,7 @@ class MutableString(UserString, MutableSequence): ...
|
||||
# Technically, deque only derives from MutableSequence in 3.5.
|
||||
# But in practice it's not worth losing sleep over.
|
||||
class deque(MutableSequence[_T], Generic[_T]):
|
||||
maxlen = ... # type: Optional[int] # TODO readonly
|
||||
maxlen = ... # type: Optional[int] # TODO readonly
|
||||
def __init__(self, iterable: Iterable[_T] = ...,
|
||||
maxlen: int = ...) -> None: ...
|
||||
def append(self, x: _T) -> None: ...
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional, Set
|
||||
from collections import namedtuple
|
||||
|
||||
FIRST_COMPLETED = ... # type: Any
|
||||
FIRST_EXCEPTION = ... # type: Any
|
||||
ALL_COMPLETED = ... # type: Any
|
||||
PENDING = ... # type: Any
|
||||
RUNNING = ... # type: Any
|
||||
CANCELLED = ... # type: Any
|
||||
CANCELLED_AND_NOTIFIED = ... # type: Any
|
||||
FINISHED = ... # type: Any
|
||||
LOGGER = ... # type: Any
|
||||
FIRST_COMPLETED = ... # type: Any
|
||||
FIRST_EXCEPTION = ... # type: Any
|
||||
ALL_COMPLETED = ... # type: Any
|
||||
PENDING = ... # type: Any
|
||||
RUNNING = ... # type: Any
|
||||
CANCELLED = ... # type: Any
|
||||
CANCELLED_AND_NOTIFIED = ... # type: Any
|
||||
FINISHED = ... # type: Any
|
||||
LOGGER = ... # type: Any
|
||||
|
||||
class Error(Exception): ...
|
||||
class CancelledError(Error): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from typing import Any, Callable, TypeVar, Iterable, Optional
|
||||
from ._base import Future, Executor
|
||||
|
||||
EXTRA_QUEUED_CALLS = ... # type: Any
|
||||
EXTRA_QUEUED_CALLS = ... # type: Any
|
||||
|
||||
class BrokenProcessPool(RuntimeError): ...
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class date:
|
||||
def strftime(self, fmt: str) -> str: ...
|
||||
def __format__(self, fmt: str) -> str: ...
|
||||
def isoformat(self) -> str: ...
|
||||
def timetuple(self) -> tuple: ... # TODO return type
|
||||
def timetuple(self) -> tuple: ... # TODO return type
|
||||
def toordinal(self) -> int: ...
|
||||
def replace(self, year: int = ..., month: int = ..., day: int = ...) -> date: ...
|
||||
def __le__(self, other: date) -> bool: ...
|
||||
@@ -191,9 +191,9 @@ class datetime:
|
||||
def strftime(self, fmt: str) -> str: ...
|
||||
def __format__(self, fmt: str) -> str: ...
|
||||
def toordinal(self) -> int: ...
|
||||
def timetuple(self) -> TimeTuple: ... # TODO return type
|
||||
def timetuple(self) -> TimeTuple: ... # TODO return type
|
||||
def timestamp(self) -> float: ...
|
||||
def utctimetuple(self) -> TimeTuple: ... # TODO return type
|
||||
def utctimetuple(self) -> TimeTuple: ... # TODO return type
|
||||
def date(self) -> _date: ...
|
||||
def time(self) -> _time: ...
|
||||
def timetz(self) -> _time: ...
|
||||
|
||||
@@ -31,7 +31,7 @@ def setcontext(c: Context) -> None: ...
|
||||
|
||||
DecimalTuple = NamedTuple('DecimalTuple',
|
||||
[('sign', int),
|
||||
('digits', Sequence[int]), # TODO: Use Tuple[int, ...]
|
||||
('digits', Sequence[int]), # TODO: Use Tuple[int, ...]
|
||||
('exponent', int)])
|
||||
|
||||
class _ContextManager:
|
||||
|
||||
@@ -24,7 +24,7 @@ class CacheInfo(NamedTuple('CacheInfo', [
|
||||
pass
|
||||
|
||||
class _lru_cache_wrapper(Generic[_T]):
|
||||
__wrapped__ = ... # type: Callable[..., _T]
|
||||
__wrapped__ = ... # type: Callable[..., _T]
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
||||
def cache_info(self) -> CacheInfo: ...
|
||||
|
||||
@@ -34,8 +34,8 @@ class lru_cache():
|
||||
def __call__(self, f: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...
|
||||
|
||||
|
||||
WRAPPER_ASSIGNMENTS = ... # type: Sequence[str]
|
||||
WRAPPER_UPDATES = ... # type: Sequence[str]
|
||||
WRAPPER_ASSIGNMENTS = ... # type: Sequence[str]
|
||||
WRAPPER_UPDATES = ... # type: Sequence[str]
|
||||
|
||||
def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ...,
|
||||
updated: Sequence[str] = ...) -> None: ...
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
from typing import Any, List, Tuple
|
||||
|
||||
|
||||
DEBUG_COLLECTABLE = ... # type: int
|
||||
DEBUG_LEAK = ... # type: int
|
||||
DEBUG_SAVEALL = ... # type: int
|
||||
DEBUG_STATS = ... # type: int
|
||||
DEBUG_UNCOLLECTABLE = ... # type: int
|
||||
callbacks = ... # type: List[Any]
|
||||
garbage = ... # type: List[Any]
|
||||
DEBUG_COLLECTABLE = ... # type: int
|
||||
DEBUG_LEAK = ... # type: int
|
||||
DEBUG_SAVEALL = ... # type: int
|
||||
DEBUG_STATS = ... # type: int
|
||||
DEBUG_UNCOLLECTABLE = ... # type: int
|
||||
callbacks = ... # type: List[Any]
|
||||
garbage = ... # type: List[Any]
|
||||
|
||||
def collect(generations: int = ...) -> int: ...
|
||||
def disable() -> None: ...
|
||||
|
||||
@@ -8,7 +8,7 @@ import _compression
|
||||
def open(filename, mode='', compresslevel=9, encoding=None, errors=None, newline=None): ...
|
||||
|
||||
class _PaddedFile:
|
||||
file = ... # type: Any
|
||||
file = ... # type: Any
|
||||
def __init__(self, f, prepend=b''): ...
|
||||
def read(self, size): ...
|
||||
def prepend(self, prepend=b''): ...
|
||||
@@ -16,17 +16,17 @@ class _PaddedFile:
|
||||
def seekable(self): ...
|
||||
|
||||
class GzipFile(_compression.BaseStream):
|
||||
myfileobj = ... # type: Any
|
||||
mode = ... # type: Any
|
||||
name = ... # type: Any
|
||||
compress = ... # type: Any
|
||||
fileobj = ... # type: Any
|
||||
myfileobj = ... # type: Any
|
||||
mode = ... # type: Any
|
||||
name = ... # type: Any
|
||||
compress = ... # type: Any
|
||||
fileobj = ... # type: Any
|
||||
def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None): ...
|
||||
@property
|
||||
def filename(self): ...
|
||||
@property
|
||||
def mtime(self): ...
|
||||
crc = ... # type: Any
|
||||
crc = ... # type: Any
|
||||
def write(self, data): ...
|
||||
def read(self, size=-1): ...
|
||||
def read1(self, size=-1): ...
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
name2codepoint = ... # type: Any
|
||||
html5 = ... # type: Any
|
||||
codepoint2name = ... # type: Any
|
||||
entitydefs = ... # type: Any
|
||||
name2codepoint = ... # type: Any
|
||||
html5 = ... # type: Any
|
||||
codepoint2name = ... # type: Any
|
||||
entitydefs = ... # type: Any
|
||||
|
||||
@@ -7,4 +7,4 @@ from typing import TypeVar
|
||||
_T = TypeVar('_T')
|
||||
|
||||
def cache_from_source(path: str, debug_override: bool = ...) -> str: ...
|
||||
def reload(module: _T) -> _T: ... # TODO imprecise signature
|
||||
def reload(module: _T) -> _T: ... # TODO imprecise signature
|
||||
|
||||
@@ -78,8 +78,8 @@ if sys.version_info >= (3, 3):
|
||||
...
|
||||
|
||||
class FileLoader(ResourceLoader, ExecutionLoader):
|
||||
name = ... # type: str
|
||||
path = ... # type: _Path
|
||||
name = ... # type: str
|
||||
path = ... # type: _Path
|
||||
def __init__(self, fullname: str, path: _Path) -> None: ...
|
||||
def get_data(self, path: _Path) -> bytes: ...
|
||||
def get_filename(self, fullname: str) -> _Path: ...
|
||||
|
||||
@@ -148,16 +148,16 @@ else:
|
||||
class PathFinder: ...
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
SOURCE_SUFFIXES = ... # type: List[str]
|
||||
DEBUG_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
OPTIMIZED_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
EXTENSION_SUFFIXES = ... # type: List[str]
|
||||
SOURCE_SUFFIXES = ... # type: List[str]
|
||||
DEBUG_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
OPTIMIZED_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
EXTENSION_SUFFIXES = ... # type: List[str]
|
||||
|
||||
def all_suffixes() -> List[str]: ...
|
||||
|
||||
class FileFinder(importlib.abc.PathEntryFinder):
|
||||
path = ... # type: str
|
||||
path = ... # type: str
|
||||
def __init__(self, path: str,
|
||||
*loader_details: Tuple[importlib.abc.Loader, List[str]]
|
||||
) -> None: ...
|
||||
|
||||
@@ -15,7 +15,7 @@ if sys.version_info >= (3, 3):
|
||||
def resolve_name(name: str, package: str) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
MAGIC_NUMBER = ... # type: bytes
|
||||
MAGIC_NUMBER = ... # type: bytes
|
||||
|
||||
def cache_from_source(path: str, debug_override: bool = None, *,
|
||||
optimization: Any = None) -> str: ...
|
||||
|
||||
@@ -246,7 +246,7 @@ class TextIOWrapper(TextIO):
|
||||
class StringIO(TextIOWrapper):
|
||||
def __init__(self, initial_value: str = ...,
|
||||
newline: Optional[str] = ...) -> None: ...
|
||||
name = ... # type: str
|
||||
name = ... # type: str
|
||||
def getvalue(self) -> str: ...
|
||||
|
||||
class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ _T = TypeVar('_T')
|
||||
_S = TypeVar('_S')
|
||||
|
||||
def count(start: int = ...,
|
||||
step: int = ...) -> Iterator[int]: ... # more general types?
|
||||
step: int = ...) -> Iterator[int]: ... # more general types?
|
||||
def cycle(iterable: Iterable[_T]) -> Iterator[_T]: ...
|
||||
|
||||
@overload
|
||||
|
||||
@@ -32,7 +32,7 @@ def dump(obj: Any,
|
||||
**kwds: Any) -> None: ...
|
||||
|
||||
def loads(s: str,
|
||||
encoding: Any = ..., # ignored and deprecated
|
||||
encoding: Any = ..., # ignored and deprecated
|
||||
cls: Any = ...,
|
||||
object_hook: Optional[Callable[[Dict], Any]] = ...,
|
||||
parse_float: Optional[Callable[[str], Any]] = ...,
|
||||
|
||||
@@ -30,16 +30,16 @@ O_DSYNC = 0 # Unix only
|
||||
O_RSYNC = 0 # Unix only
|
||||
O_SYNC = 0 # Unix only
|
||||
O_NDELAY = 0 # Unix only
|
||||
O_NONBLOCK = 0 # Unix only
|
||||
O_NONBLOCK = 0 # Unix only
|
||||
O_NOCTTY = 0 # Unix only
|
||||
O_SHLOCK = 0 # Unix only
|
||||
O_EXLOCK = 0 # Unix only
|
||||
O_BINARY = 0 # Windows only
|
||||
O_NOINHERIT = 0 # Windows only
|
||||
O_SHORT_LIVED = 0# Windows only
|
||||
O_SHORT_LIVED = 0 # Windows only
|
||||
O_TEMPORARY = 0 # Windows only
|
||||
O_RANDOM = 0 # Windows only
|
||||
O_SEQUENTIAL = 0 # Windows only
|
||||
O_SEQUENTIAL = 0 # Windows only
|
||||
O_TEXT = 0 # Windows only
|
||||
O_ASYNC = 0 # Gnu extension if in C library
|
||||
O_DIRECT = 0 # Gnu extension if in C library
|
||||
@@ -56,7 +56,7 @@ pathsep = ... # type: str
|
||||
defpath = ... # type: str
|
||||
linesep = ... # type: str
|
||||
devnull = ... # type: str
|
||||
name = ... # type: str
|
||||
name = ... # type: str
|
||||
|
||||
F_OK = 0
|
||||
R_OK = 0
|
||||
@@ -70,7 +70,7 @@ environ = ... # type: _Environ[str]
|
||||
environb = ... # type: _Environ[bytes]
|
||||
|
||||
confstr_names = ... # type: Dict[str, int] # Unix only
|
||||
pathconf_names = ... # type: Dict[str, int] # Unix only
|
||||
pathconf_names = ... # type: Dict[str, int] # Unix only
|
||||
sysconf_names = ... # type: Dict[str, int] # Unix only
|
||||
|
||||
EX_OK = 0 # Unix only
|
||||
@@ -83,7 +83,7 @@ EX_UNAVAILABLE = 0 # Unix only
|
||||
EX_SOFTWARE = 0 # Unix only
|
||||
EX_OSERR = 0 # Unix only
|
||||
EX_OSFILE = 0 # Unix only
|
||||
EX_CANTCREAT = 0 # Unix only
|
||||
EX_CANTCREAT = 0 # Unix only
|
||||
EX_IOERR = 0 # Unix only
|
||||
EX_TEMPFAIL = 0 # Unix only
|
||||
EX_PROTOCOL = 0 # Unix only
|
||||
@@ -131,22 +131,22 @@ class stat_result:
|
||||
# st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, st_atime, st_mtime,
|
||||
# st_ctime. More items may be added at the end by some implementations.
|
||||
|
||||
st_mode = 0 # protection bits,
|
||||
st_ino = 0 # inode number,
|
||||
st_dev = 0 # device,
|
||||
st_nlink = 0 # number of hard links,
|
||||
st_uid = 0 # user id of owner,
|
||||
st_gid = 0 # group id of owner,
|
||||
st_size = 0 # size of file, in bytes,
|
||||
st_atime = 0.0 # time of most recent access,
|
||||
st_mtime = 0.0 # time of most recent content modification,
|
||||
st_ctime = 0.0 # platform dependent (time of most recent metadata change
|
||||
st_mode = 0 # protection bits,
|
||||
st_ino = 0 # inode number,
|
||||
st_dev = 0 # device,
|
||||
st_nlink = 0 # number of hard links,
|
||||
st_uid = 0 # user id of owner,
|
||||
st_gid = 0 # group id of owner,
|
||||
st_size = 0 # size of file, in bytes,
|
||||
st_atime = 0.0 # time of most recent access,
|
||||
st_mtime = 0.0 # time of most recent content modification,
|
||||
st_ctime = 0.0 # platform dependent (time of most recent metadata change
|
||||
# on Unix, or the time of creation on Windows)
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
st_atime_ns = 0 # time of most recent access, in nanoseconds
|
||||
st_mtime_ns = 0 # time of most recent content modification in nanoseconds
|
||||
st_ctime_ns = 0 # platform dependent (time of most recent metadata change
|
||||
st_atime_ns = 0 # time of most recent access, in nanoseconds
|
||||
st_mtime_ns = 0 # time of most recent content modification in nanoseconds
|
||||
st_ctime_ns = 0 # platform dependent (time of most recent metadata change
|
||||
# on Unix, or the time of creation on Windows) in nanoseconds
|
||||
|
||||
# not documented
|
||||
@@ -154,15 +154,15 @@ class stat_result:
|
||||
|
||||
# On some Unix systems (such as Linux), the following attributes may also
|
||||
# be available:
|
||||
st_blocks = 0 # number of blocks allocated for file
|
||||
st_blksize = 0 # filesystem blocksize
|
||||
st_rdev = 0 # type of device if an inode device
|
||||
st_flags = 0 # user defined flags for file
|
||||
st_blocks = 0 # number of blocks allocated for file
|
||||
st_blksize = 0 # filesystem blocksize
|
||||
st_rdev = 0 # type of device if an inode device
|
||||
st_flags = 0 # user defined flags for file
|
||||
|
||||
# On other Unix systems (such as FreeBSD), the following attributes may be
|
||||
# available (but may be only filled out if root tries to use them):
|
||||
st_gen = 0 # file generation number
|
||||
st_birthtime = 0 # time of file creation
|
||||
st_gen = 0 # file generation number
|
||||
st_birthtime = 0 # time of file creation
|
||||
|
||||
# On Mac OS systems, the following attributes may also be available:
|
||||
st_rsize = 0
|
||||
@@ -291,7 +291,7 @@ if sys.version_info >= (3, 5):
|
||||
def scandir(path: bytes) -> Iterator[DirEntry]: ...
|
||||
def stat(path: AnyStr) -> stat_result: ...
|
||||
def stat_float_times(newvalue: Union[bool, None] = ...) -> bool: ...
|
||||
def statvfs(path: str) -> statvfs_result: ... # Unix only
|
||||
def statvfs(path: str) -> statvfs_result: ... # Unix only
|
||||
def symlink(source: AnyStr, link_name: AnyStr,
|
||||
target_is_directory: bool = ...) -> None:
|
||||
... # final argument in Windows only
|
||||
@@ -306,10 +306,10 @@ def walk(top: AnyStr, topdown: bool = ..., onerror: Any = ...,
|
||||
def abort() -> 'None': ...
|
||||
def execl(path: AnyStr, arg0: AnyStr, *args: AnyStr) -> None: ...
|
||||
def execle(path: AnyStr, arg0: AnyStr,
|
||||
*args: Any) -> None: ... # Imprecise signature
|
||||
*args: Any) -> None: ... # Imprecise signature
|
||||
def execlp(path: AnyStr, arg0: AnyStr, *args: AnyStr) -> None: ...
|
||||
def execlpe(path: AnyStr, arg0: AnyStr,
|
||||
*args: Any) -> None: ... # Imprecise signature
|
||||
*args: Any) -> None: ... # Imprecise signature
|
||||
def execv(path: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]]) -> None: ...
|
||||
def execve(path: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]], env: Mapping[AnyStr, AnyStr]) -> None: ...
|
||||
def execvp(file: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]]) -> None: ...
|
||||
@@ -328,15 +328,15 @@ class popen(_TextIOWrapper):
|
||||
# TODO 'b' modes or bytes command not accepted?
|
||||
def __init__(self, command: str, mode: str = ...,
|
||||
bufsize: int = ...) -> None: ...
|
||||
def close(self) -> Any: ... # may return int
|
||||
def close(self) -> Any: ... # may return int
|
||||
|
||||
def spawnl(mode: int, path: AnyStr, arg0: AnyStr, *args: AnyStr) -> int: ...
|
||||
def spawnle(mode: int, path: AnyStr, arg0: AnyStr,
|
||||
*args: Any) -> int: ... # Imprecise sig
|
||||
*args: Any) -> int: ... # Imprecise sig
|
||||
def spawnlp(mode: int, file: AnyStr, arg0: AnyStr,
|
||||
*args: AnyStr) -> int: ... # Unix only TODO
|
||||
def spawnlpe(mode: int, file: AnyStr, arg0: AnyStr, *args: Any) -> int:
|
||||
... # Imprecise signature; Unix only TODO
|
||||
... # Imprecise signature; Unix only TODO
|
||||
def spawnv(mode: int, path: AnyStr, args: List[AnyStr]) -> int: ...
|
||||
def spawnve(mode: int, path: AnyStr, args: List[AnyStr],
|
||||
env: Mapping[str, str]) -> int: ...
|
||||
|
||||
@@ -18,11 +18,11 @@ def lexists(path: str) -> bool: ...
|
||||
def expanduser(path: str) -> str: ...
|
||||
def expandvars(path: str) -> str: ...
|
||||
def getatime(path: str) -> int:
|
||||
... # return float if os.stat_float_times() returns True
|
||||
... # return float if os.stat_float_times() returns True
|
||||
def getmtime(path: str) -> int:
|
||||
... # return float if os.stat_float_times() returns True
|
||||
... # return float if os.stat_float_times() returns True
|
||||
def getctime(path: str) -> int:
|
||||
... # return float if os.stat_float_times() returns True
|
||||
... # return float if os.stat_float_times() returns True
|
||||
def getsize(path: str) -> int: ...
|
||||
def isabs(path: str) -> bool: ...
|
||||
def isfile(path: str) -> bool: ...
|
||||
|
||||
@@ -4,26 +4,26 @@
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
RLIMIT_AS = ... # type: int
|
||||
RLIMIT_CORE = ... # type: int
|
||||
RLIMIT_CPU = ... # type: int
|
||||
RLIMIT_DATA = ... # type: int
|
||||
RLIMIT_FSIZE = ... # type: int
|
||||
RLIMIT_MEMLOCK = ... # type: int
|
||||
RLIMIT_MSGQUEUE = ... # type: int
|
||||
RLIMIT_NICE = ... # type: int
|
||||
RLIMIT_NOFILE = ... # type: int
|
||||
RLIMIT_NPROC = ... # type: int
|
||||
RLIMIT_OFILE = ... # type: int
|
||||
RLIMIT_RSS = ... # type: int
|
||||
RLIMIT_RTPRIO = ... # type: int
|
||||
RLIMIT_RTTIME = ... # type: int
|
||||
RLIMIT_SIGPENDING = ... # type: int
|
||||
RLIMIT_STACK = ... # type: int
|
||||
RLIM_INFINITY = ... # type: int
|
||||
RUSAGE_CHILDREN = ... # type: int
|
||||
RUSAGE_SELF = ... # type: int
|
||||
RUSAGE_THREAD = ... # type: int
|
||||
RLIMIT_AS = ... # type: int
|
||||
RLIMIT_CORE = ... # type: int
|
||||
RLIMIT_CPU = ... # type: int
|
||||
RLIMIT_DATA = ... # type: int
|
||||
RLIMIT_FSIZE = ... # type: int
|
||||
RLIMIT_MEMLOCK = ... # type: int
|
||||
RLIMIT_MSGQUEUE = ... # type: int
|
||||
RLIMIT_NICE = ... # type: int
|
||||
RLIMIT_NOFILE = ... # type: int
|
||||
RLIMIT_NPROC = ... # type: int
|
||||
RLIMIT_OFILE = ... # type: int
|
||||
RLIMIT_RSS = ... # type: int
|
||||
RLIMIT_RTPRIO = ... # type: int
|
||||
RLIMIT_RTTIME = ... # type: int
|
||||
RLIMIT_SIGPENDING = ... # type: int
|
||||
RLIMIT_STACK = ... # type: int
|
||||
RLIM_INFINITY = ... # type: int
|
||||
RUSAGE_CHILDREN = ... # type: int
|
||||
RUSAGE_SELF = ... # type: int
|
||||
RUSAGE_THREAD = ... # type: int
|
||||
|
||||
def getrlimit(resource: int) -> Tuple[int, int]: ...
|
||||
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
from typing import Any
|
||||
|
||||
class _TempModule:
|
||||
mod_name = ... # type: Any
|
||||
module = ... # type: Any
|
||||
mod_name = ... # type: Any
|
||||
module = ... # type: Any
|
||||
def __init__(self, mod_name): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
|
||||
class _ModifiedArgv0:
|
||||
value = ... # type: Any
|
||||
value = ... # type: Any
|
||||
def __init__(self, value): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
|
||||
@@ -118,8 +118,8 @@ SIGWINCH = ... # type: _SIG
|
||||
SIGXCPU = ... # type: _SIG
|
||||
SIGXFSZ = ... # type: _SIG
|
||||
|
||||
CTRL_C_EVENT = 0 # Windows
|
||||
CTRL_BREAK_EVENT = 0 # Windows
|
||||
CTRL_C_EVENT = 0 # Windows
|
||||
CTRL_BREAK_EVENT = 0 # Windows
|
||||
|
||||
class struct_siginfo(Tuple[int, int, int, int, int, int, int]):
|
||||
def __init__(self, sequence: Iterable[int]) -> None: ...
|
||||
|
||||
@@ -8,21 +8,21 @@ class SMTPException(OSError): ...
|
||||
class SMTPServerDisconnected(SMTPException): ...
|
||||
|
||||
class SMTPResponseException(SMTPException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
args = ... # type: Any
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg) -> None: ...
|
||||
|
||||
class SMTPSenderRefused(SMTPResponseException):
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
sender = ... # type: Any
|
||||
args = ... # type: Any
|
||||
smtp_code = ... # type: Any
|
||||
smtp_error = ... # type: Any
|
||||
sender = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, code, msg, sender) -> None: ...
|
||||
|
||||
class SMTPRecipientsRefused(SMTPException):
|
||||
recipients = ... # type: Any
|
||||
args = ... # type: Any
|
||||
recipients = ... # type: Any
|
||||
args = ... # type: Any
|
||||
def __init__(self, recipients) -> None: ...
|
||||
|
||||
class SMTPDataError(SMTPResponseException): ...
|
||||
@@ -34,23 +34,23 @@ def quoteaddr(addrstring): ...
|
||||
def quotedata(data): ...
|
||||
|
||||
class SMTP:
|
||||
debuglevel = ... # type: Any
|
||||
file = ... # type: Any
|
||||
helo_resp = ... # type: Any
|
||||
ehlo_msg = ... # type: Any
|
||||
ehlo_resp = ... # type: Any
|
||||
does_esmtp = ... # type: Any
|
||||
default_port = ... # type: Any
|
||||
timeout = ... # type: Any
|
||||
esmtp_features = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
local_hostname = ... # type: Any
|
||||
debuglevel = ... # type: Any
|
||||
file = ... # type: Any
|
||||
helo_resp = ... # type: Any
|
||||
ehlo_msg = ... # type: Any
|
||||
ehlo_resp = ... # type: Any
|
||||
does_esmtp = ... # type: Any
|
||||
default_port = ... # type: Any
|
||||
timeout = ... # type: Any
|
||||
esmtp_features = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
local_hostname = ... # type: Any
|
||||
def __init__(self, host=..., port=..., local_hostname=..., timeout=...,
|
||||
source_address=...): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, *args): ...
|
||||
def set_debuglevel(self, debuglevel): ...
|
||||
sock = ... # type: Any
|
||||
sock = ... # type: Any
|
||||
def connect(self, host=..., port=..., source_address=...): ...
|
||||
def send(self, s): ...
|
||||
def putcmd(self, cmd, args=...): ...
|
||||
@@ -66,7 +66,7 @@ class SMTP:
|
||||
def rcpt(self, recip, options=...): ...
|
||||
def data(self, msg): ...
|
||||
def verify(self, address): ...
|
||||
vrfy = ... # type: Any
|
||||
vrfy = ... # type: Any
|
||||
def expn(self, address): ...
|
||||
def ehlo_or_helo_if_needed(self): ...
|
||||
def login(self, user, password): ...
|
||||
@@ -79,16 +79,16 @@ class SMTP:
|
||||
def quit(self): ...
|
||||
|
||||
class SMTP_SSL(SMTP):
|
||||
default_port = ... # type: Any
|
||||
keyfile = ... # type: Any
|
||||
certfile = ... # type: Any
|
||||
context = ... # type: Any
|
||||
default_port = ... # type: Any
|
||||
keyfile = ... # type: Any
|
||||
certfile = ... # type: Any
|
||||
context = ... # type: Any
|
||||
def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=...,
|
||||
timeout=..., source_address=..., context=...): ...
|
||||
|
||||
class LMTP(SMTP):
|
||||
ehlo_msg = ... # type: Any
|
||||
ehlo_msg = ... # type: Any
|
||||
def __init__(self, host=..., port=..., local_hostname=..., source_address=...) -> None: ...
|
||||
sock = ... # type: Any
|
||||
file = ... # type: Any
|
||||
sock = ... # type: Any
|
||||
file = ... # type: Any
|
||||
def connect(self, host=..., port=..., source_address=...): ...
|
||||
|
||||
@@ -317,7 +317,7 @@ class socket:
|
||||
flags: int = ...) -> Any: ...
|
||||
def send(self, data: bytes, flags: int = ...) -> int: ...
|
||||
def sendall(self, data: bytes, flags: int =...) -> None:
|
||||
... # return type: None on success
|
||||
... # return type: None on success
|
||||
def sendto(self, data: bytes, address: Union[tuple, str], flags: int = ...) -> int: ...
|
||||
def setblocking(self, flag: bool) -> None: ...
|
||||
def settimeout(self, value: Union[float, None]) -> None: ...
|
||||
|
||||
@@ -6,62 +6,62 @@ from numbers import Integral
|
||||
from datetime import time, datetime
|
||||
from collections import Iterable
|
||||
|
||||
paramstyle = ... # type: str
|
||||
threadsafety = ... # type: int
|
||||
apilevel = ... # type: str
|
||||
Date = ... # type: datetime
|
||||
Time = ... # type: time
|
||||
Timestamp = ... # type: datetime
|
||||
paramstyle = ... # type: str
|
||||
threadsafety = ... # type: int
|
||||
apilevel = ... # type: str
|
||||
Date = ... # type: datetime
|
||||
Time = ... # type: time
|
||||
Timestamp = ... # type: datetime
|
||||
|
||||
def DateFromTicks(ticks): ...
|
||||
def TimeFromTicks(ticks): ...
|
||||
def TimestampFromTicks(ticks): ...
|
||||
|
||||
version_info = ... # type: Any
|
||||
sqlite_version_info = ... # type: Any
|
||||
Binary = ... # type: Any
|
||||
version_info = ... # type: Any
|
||||
sqlite_version_info = ... # type: Any
|
||||
Binary = ... # type: Any
|
||||
|
||||
def register_adapters_and_converters(): ...
|
||||
|
||||
# The remaining definitions are imported from _sqlite3.
|
||||
|
||||
PARSE_COLNAMES = ... # type: int
|
||||
PARSE_DECLTYPES = ... # type: int
|
||||
SQLITE_ALTER_TABLE = ... # type: int
|
||||
SQLITE_ANALYZE = ... # type: int
|
||||
SQLITE_ATTACH = ... # type: int
|
||||
SQLITE_CREATE_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_TEMP_VIEW = ... # type: int
|
||||
SQLITE_CREATE_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_VIEW = ... # type: int
|
||||
SQLITE_DELETE = ... # type: int
|
||||
SQLITE_DENY = ... # type: int
|
||||
SQLITE_DETACH = ... # type: int
|
||||
SQLITE_DROP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TEMP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_TEMP_VIEW = ... # type: int
|
||||
SQLITE_DROP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_VIEW = ... # type: int
|
||||
SQLITE_IGNORE = ... # type: int
|
||||
SQLITE_INSERT = ... # type: int
|
||||
SQLITE_OK = ... # type: int
|
||||
SQLITE_PRAGMA = ... # type: int
|
||||
SQLITE_READ = ... # type: int
|
||||
SQLITE_REINDEX = ... # type: int
|
||||
SQLITE_SELECT = ... # type: int
|
||||
SQLITE_TRANSACTION = ... # type: int
|
||||
SQLITE_UPDATE = ... # type: int
|
||||
adapters = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
sqlite_version = ... # type: str
|
||||
version = ... # type: str
|
||||
PARSE_COLNAMES = ... # type: int
|
||||
PARSE_DECLTYPES = ... # type: int
|
||||
SQLITE_ALTER_TABLE = ... # type: int
|
||||
SQLITE_ANALYZE = ... # type: int
|
||||
SQLITE_ATTACH = ... # type: int
|
||||
SQLITE_CREATE_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_TEMP_VIEW = ... # type: int
|
||||
SQLITE_CREATE_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_VIEW = ... # type: int
|
||||
SQLITE_DELETE = ... # type: int
|
||||
SQLITE_DENY = ... # type: int
|
||||
SQLITE_DETACH = ... # type: int
|
||||
SQLITE_DROP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TEMP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_TEMP_VIEW = ... # type: int
|
||||
SQLITE_DROP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_VIEW = ... # type: int
|
||||
SQLITE_IGNORE = ... # type: int
|
||||
SQLITE_INSERT = ... # type: int
|
||||
SQLITE_OK = ... # type: int
|
||||
SQLITE_PRAGMA = ... # type: int
|
||||
SQLITE_READ = ... # type: int
|
||||
SQLITE_REINDEX = ... # type: int
|
||||
SQLITE_SELECT = ... # type: int
|
||||
SQLITE_TRANSACTION = ... # type: int
|
||||
SQLITE_UPDATE = ... # type: int
|
||||
adapters = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
sqlite_version = ... # type: str
|
||||
version = ... # type: str
|
||||
|
||||
# TODO: adapt needs to get probed
|
||||
def adapt(obj, protocol, alternate): ...
|
||||
@@ -85,21 +85,21 @@ class Cache:
|
||||
def get(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class Connection:
|
||||
DataError = ... # type: Any
|
||||
DatabaseError = ... # type: Any
|
||||
Error = ... # type: Any
|
||||
IntegrityError = ... # type: Any
|
||||
InterfaceError = ... # type: Any
|
||||
InternalError = ... # type: Any
|
||||
NotSupportedError = ... # type: Any
|
||||
OperationalError = ... # type: Any
|
||||
ProgrammingError = ... # type: Any
|
||||
Warning = ... # type: Any
|
||||
in_transaction = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
text_factory = ... # type: Any
|
||||
total_changes = ... # type: Any
|
||||
DataError = ... # type: Any
|
||||
DatabaseError = ... # type: Any
|
||||
Error = ... # type: Any
|
||||
IntegrityError = ... # type: Any
|
||||
InterfaceError = ... # type: Any
|
||||
InternalError = ... # type: Any
|
||||
NotSupportedError = ... # type: Any
|
||||
OperationalError = ... # type: Any
|
||||
ProgrammingError = ... # type: Any
|
||||
Warning = ... # type: Any
|
||||
in_transaction = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
text_factory = ... # type: Any
|
||||
total_changes = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def close(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
@@ -126,12 +126,12 @@ class Connection:
|
||||
def __exit__(self, *args, **kwargs): ...
|
||||
|
||||
class Cursor(Iterator[Any]):
|
||||
arraysize = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
description = ... # type: Any
|
||||
lastrowid = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
rowcount = ... # type: Any
|
||||
arraysize = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
description = ... # type: Any
|
||||
lastrowid = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
rowcount = ... # type: Any
|
||||
# TODO: Cursor class accepts exactly 1 argument
|
||||
# required type is sqlite3.Connection (which is imported as _Connection)
|
||||
# however, the name of the __init__ variable is unknown
|
||||
@@ -166,7 +166,7 @@ class NotSupportedError(DatabaseError): ...
|
||||
class OperationalError(DatabaseError): ...
|
||||
|
||||
class OptimizedUnicode:
|
||||
maketrans = ... # type: Any
|
||||
maketrans = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def capitalize(self, *args, **kwargs): ...
|
||||
def casefold(self, *args, **kwargs): ...
|
||||
|
||||
@@ -56,7 +56,7 @@ if sys.version_info >= (3, 4, 3):
|
||||
cafile: Optional[str] = ...,
|
||||
capath: Optional[str] = ...,
|
||||
cadata: Optional[str] = ...) -> 'SSLContext': ...
|
||||
_create_default_https_context = ... # type: Callable[..., 'SSLContext']
|
||||
_create_default_https_context = ... # type: Callable[..., 'SSLContext']
|
||||
|
||||
def RAND_bytes(num: int) -> bytes: ...
|
||||
def RAND_pseudo_bytes(num: int) -> Tuple[bytes, bool]: ...
|
||||
@@ -85,52 +85,52 @@ if sys.version_info >= (3, 4) and sys.platform == 'win32':
|
||||
def enum_crls(store_name: str) -> _EnumRetType: ...
|
||||
|
||||
|
||||
CERT_NONE = ... # type: int
|
||||
CERT_OPTIONAL = ... # type: int
|
||||
CERT_REQUIRED = ... # type: int
|
||||
CERT_NONE = ... # type: int
|
||||
CERT_OPTIONAL = ... # type: int
|
||||
CERT_REQUIRED = ... # type: int
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
VERIFY_DEFAULT = ... # type: int
|
||||
VERIFY_CRL_CHECK_LEAF = ... # type: int
|
||||
VERIFY_CRL_CHECK_CHAIN = ... # type: int
|
||||
VERIFY_X509_STRICT = ... # type: int
|
||||
VERIFY_DEFAULT = ... # type: int
|
||||
VERIFY_CRL_CHECK_LEAF = ... # type: int
|
||||
VERIFY_CRL_CHECK_CHAIN = ... # type: int
|
||||
VERIFY_X509_STRICT = ... # type: int
|
||||
if sys.version_info >= (3, 4, 4):
|
||||
VERIFY_X509_TRUSTED_FIRST = ... # type: int
|
||||
VERIFY_X509_TRUSTED_FIRST = ... # type: int
|
||||
|
||||
PROTOCOL_SSLv23 = ... # type: int
|
||||
PROTOCOL_SSLv2 = ... # type: int
|
||||
PROTOCOL_SSLv3 = ... # type: int
|
||||
PROTOCOL_TLSv1 = ... # type: int
|
||||
PROTOCOL_SSLv23 = ... # type: int
|
||||
PROTOCOL_SSLv2 = ... # type: int
|
||||
PROTOCOL_SSLv3 = ... # type: int
|
||||
PROTOCOL_TLSv1 = ... # type: int
|
||||
if sys.version_info >= (3, 4):
|
||||
PROTOCOL_TLSv1_1 = ... # type: int
|
||||
PROTOCOL_TLSv1_2 = ... # type: int
|
||||
PROTOCOL_TLSv1_1 = ... # type: int
|
||||
PROTOCOL_TLSv1_2 = ... # type: int
|
||||
|
||||
OP_ALL = ... # type: int
|
||||
OP_NO_SSLv2 = ... # type: int
|
||||
OP_NO_SSLv3 = ... # type: int
|
||||
OP_NO_TLSv1 = ... # type: int
|
||||
OP_ALL = ... # type: int
|
||||
OP_NO_SSLv2 = ... # type: int
|
||||
OP_NO_SSLv3 = ... # type: int
|
||||
OP_NO_TLSv1 = ... # type: int
|
||||
if sys.version_info >= (3, 4):
|
||||
OP_NO_TLSv1_1 = ... # type: int
|
||||
OP_NO_TLSv1_2 = ... # type: int
|
||||
OP_CIPHER_SERVER_PREFERENCE = ... # type: int
|
||||
OP_SINGLE_DH_USE = ... # type: int
|
||||
OP_SINGLE_ECDH_USE = ... # type: int
|
||||
OP_NO_COMPRESSION = ... # type: int
|
||||
OP_NO_TLSv1_1 = ... # type: int
|
||||
OP_NO_TLSv1_2 = ... # type: int
|
||||
OP_CIPHER_SERVER_PREFERENCE = ... # type: int
|
||||
OP_SINGLE_DH_USE = ... # type: int
|
||||
OP_SINGLE_ECDH_USE = ... # type: int
|
||||
OP_NO_COMPRESSION = ... # type: int
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
HAS_ALPN = ... # type: int
|
||||
HAS_ECDH = ... # type: bool
|
||||
HAS_SNI = ... # type: bool
|
||||
HAS_NPN = ... # type: bool
|
||||
CHANNEL_BINDING_TYPES = ... # type: List[str]
|
||||
HAS_ECDH = ... # type: bool
|
||||
HAS_SNI = ... # type: bool
|
||||
HAS_NPN = ... # type: bool
|
||||
CHANNEL_BINDING_TYPES = ... # type: List[str]
|
||||
|
||||
OPENSSL_VERSION = ... # type: str
|
||||
OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int]
|
||||
OPENSSL_VERSION_NUMBER = ... # type: int
|
||||
OPENSSL_VERSION = ... # type: str
|
||||
OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int]
|
||||
OPENSSL_VERSION_NUMBER = ... # type: int
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int
|
||||
ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int
|
||||
ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int
|
||||
ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int
|
||||
ALERT_DESCRIPTION_ACCESS_DENIED = ... # type: int
|
||||
ALERT_DESCRIPTION_BAD_CERTIFICATE = ... # type: int
|
||||
ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE = ... # type: int
|
||||
@@ -162,14 +162,14 @@ if sys.version_info >= (3, 4):
|
||||
[('nid', int), ('shortname', str),
|
||||
('longname', str), ('oid', str)])
|
||||
class Purpose:
|
||||
SERVER_AUTH = ... # type: _PurposeType
|
||||
CLIENT_AUTH = ... # type: _PurposeType
|
||||
SERVER_AUTH = ... # type: _PurposeType
|
||||
CLIENT_AUTH = ... # type: _PurposeType
|
||||
|
||||
|
||||
class SSLSocket(socket.socket):
|
||||
context = ... # type: SSLContext
|
||||
server_side = ... # type: bool
|
||||
server_hostname = ... # type: Optional[str]
|
||||
context = ... # type: SSLContext
|
||||
server_side = ... # type: bool
|
||||
server_hostname = ... # type: Optional[str]
|
||||
def read(self, len: int = ...,
|
||||
buffer: Optional[bytearray] = ...) -> bytes: ...
|
||||
def write(self, buf: bytes) -> int: ...
|
||||
@@ -191,13 +191,13 @@ class SSLSocket(socket.socket):
|
||||
|
||||
class SSLContext:
|
||||
if sys.version_info >= (3, 4):
|
||||
check_hostname = ... # type: bool
|
||||
options = ... # type: int
|
||||
check_hostname = ... # type: bool
|
||||
options = ... # type: int
|
||||
@property
|
||||
def protocol(self) -> int: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
verify_flags = ... # type: int
|
||||
verify_mode = ... # type: int
|
||||
verify_flags = ... # type: int
|
||||
verify_mode = ... # type: int
|
||||
def __init__(self, protocol: int) -> None: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
def cert_store_stats(self) -> Dict[str, int]: ...
|
||||
@@ -239,9 +239,9 @@ class SSLContext:
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
class SSLObject:
|
||||
context = ... # type: SSLContext
|
||||
server_side = ... # type: bool
|
||||
server_hostname = ... # type: Optional[str]
|
||||
context = ... # type: SSLContext
|
||||
server_side = ... # type: bool
|
||||
server_hostname = ... # type: Optional[str]
|
||||
def read(self, len: int = ...,
|
||||
buffer: Optional[bytearray] = ...) -> bytes: ...
|
||||
def write(self, buf: bytes) -> int: ...
|
||||
|
||||
@@ -64,7 +64,7 @@ UF_APPEND = 0
|
||||
UF_OPAQUE = 0
|
||||
UF_NOUNLINK = 0
|
||||
if sys.platform == 'darwin':
|
||||
UF_COMPRESSED = 0 # OS X 10.6+ only
|
||||
UF_COMPRESSED = 0 # OS X 10.6+ only
|
||||
UF_HIDDEN = 0 # OX X 10.5+ only
|
||||
SF_ARCHIVED = 0
|
||||
SF_IMMUTABLE = 0
|
||||
|
||||
@@ -180,8 +180,8 @@ else:
|
||||
|
||||
|
||||
# TODO types
|
||||
PIPE = ... # type: Any
|
||||
STDOUT = ... # type: Any
|
||||
PIPE = ... # type: Any
|
||||
STDOUT = ... # type: Any
|
||||
if sys.version_info >= (3, 3):
|
||||
DEVNULL = ... # type: Any
|
||||
class SubprocessError(Exception): ...
|
||||
@@ -191,7 +191,7 @@ if sys.version_info >= (3, 3):
|
||||
class CalledProcessError(Exception):
|
||||
returncode = 0
|
||||
cmd = ... # type: str
|
||||
output = b'' # May be None
|
||||
output = b'' # May be None
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
stdout = b''
|
||||
@@ -201,9 +201,9 @@ class CalledProcessError(Exception):
|
||||
stderr: Optional[str] = ...) -> None: ...
|
||||
|
||||
class Popen:
|
||||
stdin = ... # type: IO[Any]
|
||||
stdout = ... # type: IO[Any]
|
||||
stderr = ... # type: IO[Any]
|
||||
stdin = ... # type: IO[Any]
|
||||
stdout = ... # type: IO[Any]
|
||||
stderr = ... # type: IO[Any]
|
||||
pid = 0
|
||||
returncode = 0
|
||||
|
||||
|
||||
@@ -13,50 +13,50 @@ _T = TypeVar('_T')
|
||||
|
||||
# ----- sys variables -----
|
||||
abiflags = ... # type: str
|
||||
argv = ... # type: List[str]
|
||||
argv = ... # type: List[str]
|
||||
byteorder = ... # type: str
|
||||
builtin_module_names = ... # type: Sequence[str] # actually a tuple of strings
|
||||
builtin_module_names = ... # type: Sequence[str] # actually a tuple of strings
|
||||
copyright = ... # type: str
|
||||
#dllhandle = 0 # Windows only
|
||||
dont_write_bytecode = False
|
||||
__displayhook__ = ... # type: Any # contains the original value of displayhook
|
||||
__excepthook__ = ... # type: Any # contains the original value of excepthook
|
||||
__displayhook__ = ... # type: Any # contains the original value of displayhook
|
||||
__excepthook__ = ... # type: Any # contains the original value of excepthook
|
||||
exec_prefix = ... # type: str
|
||||
executable = ... # type: str
|
||||
float_repr_style = ... # type: str
|
||||
hexversion = 0 # this is a 32-bit int
|
||||
last_type = ... # type: Any
|
||||
last_value = ... # type: Any
|
||||
last_traceback = ... # type: Any
|
||||
last_type = ... # type: Any
|
||||
last_value = ... # type: Any
|
||||
last_traceback = ... # type: Any
|
||||
maxsize = 0
|
||||
maxunicode = 0
|
||||
meta_path = ... # type: List[Any]
|
||||
modules = ... # type: Dict[str, Any]
|
||||
path = ... # type: List[str]
|
||||
path_hooks = ... # type: List[Any] # TODO precise type; function, path to finder
|
||||
path_importer_cache = ... # type: Dict[str, Any] # TODO precise type
|
||||
meta_path = ... # type: List[Any]
|
||||
modules = ... # type: Dict[str, Any]
|
||||
path = ... # type: List[str]
|
||||
path_hooks = ... # type: List[Any] # TODO precise type; function, path to finder
|
||||
path_importer_cache = ... # type: Dict[str, Any] # TODO precise type
|
||||
platform = ... # type: str
|
||||
prefix = ... # type: str
|
||||
ps1 = ... # type: str
|
||||
ps2 = ... # type: str
|
||||
stdin = ... # type: TextIO
|
||||
stdout = ... # type: TextIO
|
||||
stderr = ... # type: TextIO
|
||||
__stdin__ = ... # type: TextIO
|
||||
__stdout__ = ... # type: TextIO
|
||||
__stderr__ = ... # type: TextIO
|
||||
stdin = ... # type: TextIO
|
||||
stdout = ... # type: TextIO
|
||||
stderr = ... # type: TextIO
|
||||
__stdin__ = ... # type: TextIO
|
||||
__stdout__ = ... # type: TextIO
|
||||
__stderr__ = ... # type: TextIO
|
||||
# deprecated and removed in Python 3.3:
|
||||
subversion = ... # type: Tuple[str, str, str]
|
||||
subversion = ... # type: Tuple[str, str, str]
|
||||
tracebacklimit = 0
|
||||
version = ... # type: str
|
||||
api_version = 0
|
||||
warnoptions = ... # type: Any
|
||||
warnoptions = ... # type: Any
|
||||
# Each entry is a tuple of the form (action, message, category, module,
|
||||
# lineno)
|
||||
#winver = '' # Windows only
|
||||
_xoptions = ... # type: Dict[Any, Any]
|
||||
_xoptions = ... # type: Dict[Any, Any]
|
||||
|
||||
flags = ... # type: _flags
|
||||
flags = ... # type: _flags
|
||||
class _flags:
|
||||
debug = 0
|
||||
division_warning = 0
|
||||
@@ -72,7 +72,7 @@ class _flags:
|
||||
quiet = 0
|
||||
hash_randomization = 0
|
||||
|
||||
float_info = ... # type: _float_info
|
||||
float_info = ... # type: _float_info
|
||||
class _float_info:
|
||||
epsilon = 0.0 # DBL_EPSILON
|
||||
dig = 0 # DBL_DIG
|
||||
@@ -86,7 +86,7 @@ class _float_info:
|
||||
radix = 0 # FLT_RADIX
|
||||
rounds = 0 # FLT_ROUNDS
|
||||
|
||||
hash_info = ... # type: _hash_info
|
||||
hash_info = ... # type: _hash_info
|
||||
class _hash_info:
|
||||
width = 0 # width in bits used for hash values
|
||||
modulus = 0 # prime modulus P used for numeric hash scheme
|
||||
@@ -94,7 +94,7 @@ class _hash_info:
|
||||
nan = 0 # hash value returned for a nan
|
||||
imag = 0 # multiplier used for the imaginary part of a complex number
|
||||
|
||||
int_info = ... # type: _int_info
|
||||
int_info = ... # type: _int_info
|
||||
class _int_info:
|
||||
bits_per_digit = 0 # number of bits held in each digit. Python integers
|
||||
# are stored internally in
|
||||
@@ -107,7 +107,7 @@ class _version_info(Tuple[int, int, int, str, int]):
|
||||
micro = 0
|
||||
releaselevel = ... # type: str
|
||||
serial = 0
|
||||
version_info = ... # type: _version_info
|
||||
version_info = ... # type: _version_info
|
||||
|
||||
|
||||
# ----- sys function stubs -----
|
||||
@@ -143,20 +143,20 @@ def _getframe() -> Any: ...
|
||||
@overload
|
||||
def _getframe(depth: int) -> Any: ...
|
||||
|
||||
def getprofile() -> Any: ... # TODO return type
|
||||
def gettrace() -> Any: ... # TODO return
|
||||
def getprofile() -> Any: ... # TODO return type
|
||||
def gettrace() -> Any: ... # TODO return
|
||||
def getwindowsversion() -> Any: ... # Windows only, TODO return type
|
||||
def intern(string: str) -> str: ...
|
||||
def setcheckinterval(interval: int) -> None: ... # deprecated
|
||||
def setdlopenflags(n: int) -> None: ... # Linux only
|
||||
def setprofile(profilefunc: Any) -> None: ... # TODO type
|
||||
def setprofile(profilefunc: Any) -> None: ... # TODO type
|
||||
def setrecursionlimit(limit: int) -> None: ...
|
||||
def setswitchinterval(interval: float) -> None: ...
|
||||
def settrace(tracefunc: Any) -> None: ... # TODO type
|
||||
def settrace(tracefunc: Any) -> None: ... # TODO type
|
||||
# Trace functions should have three arguments: frame, event, and arg. frame
|
||||
# is the current stack frame. event is a string: 'call', 'line', 'return',
|
||||
# 'exception', 'c_call', 'c_return', or 'c_exception'. arg depends on the
|
||||
# event type.
|
||||
def settscdump(on_flag: bool) -> None: ...
|
||||
|
||||
def gettotalrefcount() -> int: ... # Debug builds only
|
||||
def gettotalrefcount() -> int: ... # Debug builds only
|
||||
|
||||
@@ -15,7 +15,7 @@ accept2dyear = False
|
||||
altzone = 0
|
||||
daylight = 0
|
||||
timezone = 0
|
||||
tzname = ... # type: Tuple[str, str]
|
||||
tzname = ... # type: Tuple[str, str]
|
||||
|
||||
if sys.version_info >= (3, 3) and sys.platform != 'win32':
|
||||
CLOCK_HIGHRES = 0 # Solaris only
|
||||
|
||||
@@ -6,10 +6,10 @@ from typing import Any
|
||||
|
||||
NO = ... # type: Any
|
||||
YES = ... # type: Any
|
||||
TRUE = ... # type: Any
|
||||
FALSE = ... # type: Any
|
||||
ON = ... # type: Any
|
||||
OFF = ... # type: Any
|
||||
TRUE = ... # type: Any
|
||||
FALSE = ... # type: Any
|
||||
ON = ... # type: Any
|
||||
OFF = ... # type: Any
|
||||
N = ... # type: Any
|
||||
S = ... # type: Any
|
||||
W = ... # type: Any
|
||||
|
||||
@@ -56,7 +56,7 @@ OP = 0
|
||||
ERRORTOKEN = 0
|
||||
N_TOKENS = 0
|
||||
NT_OFFSET = 0
|
||||
tok_name = ... # type: Dict[int, str]
|
||||
tok_name = ... # type: Dict[int, str]
|
||||
|
||||
def ISTERMINAL(x: int) -> bool: pass
|
||||
def ISNONTERMINAL(x: int) -> bool: pass
|
||||
|
||||
@@ -6,9 +6,9 @@ from typing import Any, Union, TextIO
|
||||
from builtins import open as _builtin_open
|
||||
from token import *
|
||||
|
||||
COMMENT = ... # type: Any
|
||||
NL = ... # type: Any
|
||||
ENCODING = ... # type: Any
|
||||
COMMENT = ... # type: Any
|
||||
NL = ... # type: Any
|
||||
ENCODING = ... # type: Any
|
||||
|
||||
class TokenInfo:
|
||||
@property
|
||||
@@ -18,10 +18,10 @@ class TokenError(Exception): ...
|
||||
class StopTokenizing(Exception): ...
|
||||
|
||||
class Untokenizer:
|
||||
tokens = ... # type: Any
|
||||
prev_row = ... # type: Any
|
||||
prev_col = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
tokens = ... # type: Any
|
||||
prev_row = ... # type: Any
|
||||
prev_col = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def add_whitespace(self, start): ...
|
||||
def untokenize(self, iterable): ...
|
||||
|
||||
@@ -29,21 +29,21 @@ LambdaType = FunctionType
|
||||
|
||||
class CodeType:
|
||||
"""Create a code object. Not for the faint of heart."""
|
||||
co_argcount = ... # type: int
|
||||
co_kwonlyargcount = ... # type: int
|
||||
co_nlocals = ... # type: int
|
||||
co_stacksize = ... # type: int
|
||||
co_flags = ... # type: int
|
||||
co_code = ... # type: bytes
|
||||
co_consts = ... # type: Tuple[Any, ...]
|
||||
co_names = ... # type: Tuple[str, ...]
|
||||
co_varnames = ... # type: Tuple[str, ...]
|
||||
co_filename = ... # type: Optional[str]
|
||||
co_name = ... # type: str
|
||||
co_firstlineno = ... # type: int
|
||||
co_lnotab = ... # type: bytes
|
||||
co_freevars = ... # type: Tuple[str, ...]
|
||||
co_cellvars = ... # type: Tuple[str, ...]
|
||||
co_argcount = ... # type: int
|
||||
co_kwonlyargcount = ... # type: int
|
||||
co_nlocals = ... # type: int
|
||||
co_stacksize = ... # type: int
|
||||
co_flags = ... # type: int
|
||||
co_code = ... # type: bytes
|
||||
co_consts = ... # type: Tuple[Any, ...]
|
||||
co_names = ... # type: Tuple[str, ...]
|
||||
co_varnames = ... # type: Tuple[str, ...]
|
||||
co_filename = ... # type: Optional[str]
|
||||
co_name = ... # type: str
|
||||
co_firstlineno = ... # type: int
|
||||
co_lnotab = ... # type: bytes
|
||||
co_freevars = ... # type: Tuple[str, ...]
|
||||
co_cellvars = ... # type: Tuple[str, ...]
|
||||
def __init__(self,
|
||||
argcount: int,
|
||||
kwonlyargcount: int,
|
||||
@@ -111,20 +111,20 @@ BuiltinMethodType = BuiltinFunctionType
|
||||
from _importlib_modulespec import ModuleType as ModuleType # Exported
|
||||
|
||||
class TracebackType:
|
||||
tb_frame = ... # type: FrameType
|
||||
tb_lasti = ... # type: int
|
||||
tb_lineno = ... # type: int
|
||||
tb_next = ... # type: TracebackType
|
||||
tb_frame = ... # type: FrameType
|
||||
tb_lasti = ... # type: int
|
||||
tb_lineno = ... # type: int
|
||||
tb_next = ... # type: TracebackType
|
||||
|
||||
class FrameType:
|
||||
f_back = ... # type: FrameType
|
||||
f_builtins = ... # type: Dict[str, Any]
|
||||
f_code = ... # type: CodeType
|
||||
f_globals = ... # type: Dict[str, Any]
|
||||
f_lasti = ... # type: int
|
||||
f_lineno = ... # type: int
|
||||
f_locals = ... # type: Dict[str, Any]
|
||||
f_trace = ... # type: Callable[[], None]
|
||||
f_back = ... # type: FrameType
|
||||
f_builtins = ... # type: Dict[str, Any]
|
||||
f_code = ... # type: CodeType
|
||||
f_globals = ... # type: Dict[str, Any]
|
||||
f_lasti = ... # type: int
|
||||
f_lineno = ... # type: int
|
||||
f_locals = ... # type: Dict[str, Any]
|
||||
f_trace = ... # type: Callable[[], None]
|
||||
|
||||
def clear(self) -> None: pass
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
|
||||
# the first overload, but by using overloading rather than a Union,
|
||||
# mypy will commit to using the first overload when the argument is
|
||||
# known to be a Mapping with unknown type parameters, which is closer
|
||||
# to the behavior we want. See mypy issue #1430.
|
||||
# to the behavior we want. See mypy issue #1430.
|
||||
@overload
|
||||
def update(self, m: Mapping[_KT, _VT]) -> None: ...
|
||||
@overload
|
||||
@@ -365,7 +365,7 @@ class TextIO(IO[str]):
|
||||
@property
|
||||
def line_buffering(self) -> int: ... # int on PyPy, bool on CPython
|
||||
@property
|
||||
def newlines(self) -> Any: ... # None, str or tuple
|
||||
def newlines(self) -> Any: ... # None, str or tuple
|
||||
@abstractmethod
|
||||
def __enter__(self) -> TextIO: ...
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
ucd_3_2_0 = ... # type: Any
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
unidata_version = ... # type: str
|
||||
ucd_3_2_0 = ... # type: Any
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
unidata_version = ... # type: str
|
||||
|
||||
def bidirectional(unichr): ...
|
||||
def category(unichr): ...
|
||||
@@ -22,7 +22,7 @@ def normalize(form, unistr): ...
|
||||
def numeric(chr, default=...): ...
|
||||
|
||||
class UCD:
|
||||
unidata_version = ... # type: Any
|
||||
unidata_version = ... # type: Any
|
||||
def bidirectional(self, unichr): ...
|
||||
def category(self, unichr): ...
|
||||
def combining(self, unichr): ...
|
||||
|
||||
@@ -188,13 +188,13 @@ class FunctionTestCase(TestCase):
|
||||
description: Optional[str] = ...) -> None: ...
|
||||
|
||||
class _AssertRaisesContext:
|
||||
exception = ... # type: Exception
|
||||
exception = ... # type: Exception
|
||||
def __enter__(self) -> _AssertRaisesContext: ...
|
||||
def __exit__(self, exc_type: Optional[type], exc_val: Optional[Exception],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
|
||||
class _AssertWarnsContext:
|
||||
warning = ... # type: Warning
|
||||
warning = ... # type: Warning
|
||||
filename = ... # type: str
|
||||
lineno = ... # type: int
|
||||
def __enter__(self) -> _AssertWarnsContext: ...
|
||||
@@ -249,11 +249,11 @@ _SysExcInfoType = Tuple[Optional[Type[BaseException]],
|
||||
Optional[TracebackType]]
|
||||
|
||||
class TestResult:
|
||||
errors = ... # type: List[Tuple[TestCase, str]]
|
||||
failures = ... # type: List[Tuple[TestCase, str]]
|
||||
skipped = ... # type: List[Tuple[TestCase, str]]
|
||||
expectedFailures = ... # type: List[Tuple[TestCase, str]]
|
||||
unexpectedSuccesses = ... # type: List[TestCase]
|
||||
errors = ... # type: List[Tuple[TestCase, str]]
|
||||
failures = ... # type: List[Tuple[TestCase, str]]
|
||||
skipped = ... # type: List[Tuple[TestCase, str]]
|
||||
expectedFailures = ... # type: List[Tuple[TestCase, str]]
|
||||
unexpectedSuccesses = ... # type: List[TestCase]
|
||||
shouldStop = ... # type: bool
|
||||
testsRun = ... # type: int
|
||||
buffer = ... # type: bool
|
||||
|
||||
@@ -40,10 +40,10 @@ class _ResultMixinBytes(_ResultMixinBase[str]):
|
||||
|
||||
|
||||
class _NetlocResultMixinBase(Generic[AnyStr]):
|
||||
username = ... # type: AnyStr
|
||||
password = ... # type: AnyStr
|
||||
hostname = ... # type: AnyStr
|
||||
port = ... # type: int
|
||||
username = ... # type: AnyStr
|
||||
password = ... # type: AnyStr
|
||||
hostname = ... # type: AnyStr
|
||||
port = ... # type: int
|
||||
|
||||
class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
|
||||
|
||||
@@ -51,23 +51,23 @@ class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
|
||||
class _NetlocResultMixinBytes(_NetlocResultMixinBase[str], _ResultMixinBytes): ...
|
||||
|
||||
class _DefragResultBase(tuple, Generic[AnyStr]):
|
||||
url = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
url = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
|
||||
class _SplitResultBase(tuple, Generic[AnyStr]):
|
||||
scheme = ... # type: AnyStr
|
||||
netloc = ... # type: AnyStr
|
||||
path = ... # type: AnyStr
|
||||
query = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
scheme = ... # type: AnyStr
|
||||
netloc = ... # type: AnyStr
|
||||
path = ... # type: AnyStr
|
||||
query = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
|
||||
class _ParseResultBase(tuple, Generic[AnyStr]):
|
||||
scheme = ... # type: AnyStr
|
||||
netloc = ... # type: AnyStr
|
||||
path = ... # type: AnyStr
|
||||
params = ... # type: AnyStr
|
||||
query = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
scheme = ... # type: AnyStr
|
||||
netloc = ... # type: AnyStr
|
||||
path = ... # type: AnyStr
|
||||
params = ... # type: AnyStr
|
||||
query = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
|
||||
# Structured result objects for string data
|
||||
class DefragResult(_DefragResultBase[str], _ResultMixinStr): ...
|
||||
|
||||
@@ -63,11 +63,11 @@ def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
def uuid4() -> UUID: ...
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
NAMESPACE_DNS = ... # type: UUID
|
||||
NAMESPACE_URL = ... # type: UUID
|
||||
NAMESPACE_OID = ... # type: UUID
|
||||
NAMESPACE_X500 = ... # type: UUID
|
||||
RESERVED_NCS = ... # type: str
|
||||
RFC_4122 = ... # type: str
|
||||
RESERVED_MICROSOFT = ... # type: str
|
||||
RESERVED_FUTURE = ... # type: str
|
||||
NAMESPACE_DNS = ... # type: UUID
|
||||
NAMESPACE_URL = ... # type: UUID
|
||||
NAMESPACE_OID = ... # type: UUID
|
||||
NAMESPACE_X500 = ... # type: UUID
|
||||
RESERVED_NCS = ... # type: str
|
||||
RFC_4122 = ... # type: str
|
||||
RESERVED_MICROSOFT = ... # type: str
|
||||
RESERVED_FUTURE = ... # type: str
|
||||
|
||||
@@ -9,7 +9,7 @@ class WSGIWarning(Warning): ...
|
||||
def validator(application): ...
|
||||
|
||||
class InputWrapper:
|
||||
input = ... # type: Any
|
||||
input = ... # type: Any
|
||||
def __init__(self, wsgi_input): ...
|
||||
def read(self, *args): ...
|
||||
def readline(self, *args): ...
|
||||
@@ -18,7 +18,7 @@ class InputWrapper:
|
||||
def close(self): ...
|
||||
|
||||
class ErrorWrapper:
|
||||
errors = ... # type: Any
|
||||
errors = ... # type: Any
|
||||
def __init__(self, wsgi_errors): ...
|
||||
def write(self, s): ...
|
||||
def flush(self): ...
|
||||
@@ -26,20 +26,20 @@ class ErrorWrapper:
|
||||
def close(self): ...
|
||||
|
||||
class WriteWrapper:
|
||||
writer = ... # type: Any
|
||||
writer = ... # type: Any
|
||||
def __init__(self, wsgi_writer): ...
|
||||
def __call__(self, s): ...
|
||||
|
||||
class PartialIteratorWrapper:
|
||||
iterator = ... # type: Any
|
||||
iterator = ... # type: Any
|
||||
def __init__(self, wsgi_iterator): ...
|
||||
def __iter__(self): ...
|
||||
|
||||
class IteratorWrapper:
|
||||
original_iterator = ... # type: Any
|
||||
iterator = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
check_start_response = ... # type: Any
|
||||
original_iterator = ... # type: Any
|
||||
iterator = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
check_start_response = ... # type: Any
|
||||
def __init__(self, wsgi_iterator, check_start_response): ...
|
||||
def __iter__(self): ...
|
||||
def __next__(self): ...
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
from typing import Union, Optional, Callable
|
||||
from .ElementTree import _ElementInterface
|
||||
|
||||
XINCLUDE = ... # type: str
|
||||
XINCLUDE_INCLUDE = ... # type: str
|
||||
XINCLUDE_FALLBACK = ... # type: str
|
||||
XINCLUDE = ... # type: str
|
||||
XINCLUDE_INCLUDE = ... # type: str
|
||||
XINCLUDE_FALLBACK = ... # type: str
|
||||
|
||||
class FatalIncludeError(SyntaxError): ...
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
from typing import Tuple, List, Union, TypeVar, Callable, Optional
|
||||
from .ElementTree import _ElementInterface
|
||||
|
||||
xpath_tokenizer_re = ... # type: Callable[..., List[Tuple[str, str]]]
|
||||
xpath_tokenizer_re = ... # type: Callable[..., List[Tuple[str, str]]]
|
||||
|
||||
|
||||
class xpath_descendant_or_self: ...
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator
|
||||
import io
|
||||
|
||||
VERSION = ... # type: str
|
||||
VERSION = ... # type: str
|
||||
|
||||
_Ss = TypeVar('_Ss', str, bytes)
|
||||
_T = TypeVar('_T')
|
||||
_str_or_bytes = Union[str, bytes]
|
||||
|
||||
class _ElementInterface(Sequence['_ElementInterface']):
|
||||
tag = ... # type: _str_or_bytes
|
||||
attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes]
|
||||
text = ... # type: Optional[_str_or_bytes]
|
||||
tail = ... # type: Optional[_str_or_bytes]
|
||||
tag = ... # type: _str_or_bytes
|
||||
attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes]
|
||||
text = ... # type: Optional[_str_or_bytes]
|
||||
tail = ... # type: Optional[_str_or_bytes]
|
||||
def __init__(self, tag: Union[AnyStr, Callable[..., '_ElementInterface']], attrib: Dict[AnyStr, AnyStr]) -> None: ...
|
||||
def makeelement(self, tag: _Ss, attrib: Dict[_Ss, _Ss]) -> '_ElementInterface': ...
|
||||
def __len__(self) -> int: ...
|
||||
@@ -44,10 +44,10 @@ def SubElement(parent: _ElementInterface, tag: AnyStr, attrib: Dict[AnyStr, AnyS
|
||||
def Comment(text: _str_or_bytes=...) -> _ElementInterface: ...
|
||||
def ProcessingInstruction(target: str, text: str=...) -> _ElementInterface: ...
|
||||
|
||||
PI = ... # type: Callable[..., _ElementInterface]
|
||||
PI = ... # type: Callable[..., _ElementInterface]
|
||||
|
||||
class QName:
|
||||
text = ... # type: str
|
||||
text = ... # type: str
|
||||
def __init__(self, text_or_uri: str, tag: str=...) -> None: ...
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ def XML(text: AnyStr) -> _ElementInterface: ...
|
||||
def XMLID(text: AnyStr) -> Tuple[_ElementInterface, Dict[str, _ElementInterface]]: ...
|
||||
|
||||
# TODO-improve this type
|
||||
fromstring = ... # type: Callable[..., _ElementInterface]
|
||||
fromstring = ... # type: Callable[..., _ElementInterface]
|
||||
|
||||
def tostring(element: _ElementInterface, encoding: str=...) -> AnyStr: ...
|
||||
|
||||
@@ -91,7 +91,7 @@ class TreeBuilder:
|
||||
|
||||
class XMLTreeBuilder:
|
||||
# TODO-what is entity used for???
|
||||
entity = ... # type: Any
|
||||
entity = ... # type: Any
|
||||
def __init__(self, html: int=..., target: TreeBuilder=...) -> None: ...
|
||||
def doctype(self, name: str, pubid: str, system: str) -> None: ...
|
||||
def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
# Stubs for zlib
|
||||
|
||||
DEFLATED = ... # type: int
|
||||
DEF_BUF_SIZE = ... # type: int
|
||||
DEF_MEM_LEVEL = ... # type: int
|
||||
MAX_WBITS = ... # type: int
|
||||
ZLIB_RUNTIME_VERSION = ... # type: str
|
||||
ZLIB_VERSION = ... # type: str
|
||||
Z_BEST_COMPRESSION = ... # type: int
|
||||
Z_BEST_SPEED = ... # type: int
|
||||
Z_DEFAULT_COMPRESSION = ... # type: int
|
||||
Z_DEFAULT_STRATEGY = ... # type: int
|
||||
Z_FILTERED = ... # type: int
|
||||
Z_FINISH = ... # type: int
|
||||
Z_FULL_FLUSH = ... # type: int
|
||||
Z_HUFFMAN_ONLY = ... # type: int
|
||||
Z_NO_FLUSH = ... # type: int
|
||||
Z_SYNC_FLUSH = ... # type: int
|
||||
DEFLATED = ... # type: int
|
||||
DEF_BUF_SIZE = ... # type: int
|
||||
DEF_MEM_LEVEL = ... # type: int
|
||||
MAX_WBITS = ... # type: int
|
||||
ZLIB_RUNTIME_VERSION = ... # type: str
|
||||
ZLIB_VERSION = ... # type: str
|
||||
Z_BEST_COMPRESSION = ... # type: int
|
||||
Z_BEST_SPEED = ... # type: int
|
||||
Z_DEFAULT_COMPRESSION = ... # type: int
|
||||
Z_DEFAULT_STRATEGY = ... # type: int
|
||||
Z_FILTERED = ... # type: int
|
||||
Z_FINISH = ... # type: int
|
||||
Z_FULL_FLUSH = ... # type: int
|
||||
Z_HUFFMAN_ONLY = ... # type: int
|
||||
Z_NO_FLUSH = ... # type: int
|
||||
Z_SYNC_FLUSH = ... # type: int
|
||||
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
Reference in New Issue
Block a user