Use variable annotations everywhere (#2909)

This commit is contained in:
Michael Lee
2019-04-13 01:40:52 -07:00
committed by Sebastian Rittau
parent b3c76aab49
commit efb67946f8
458 changed files with 9135 additions and 9135 deletions

View File

@@ -5,28 +5,28 @@ import SocketServer
import mimetools
class HTTPServer(SocketServer.TCPServer):
server_name = ... # type: str
server_port = ... # type: int
server_name: str
server_port: int
def __init__(self, server_address: Tuple[str, int],
RequestHandlerClass: type) -> None: ...
class BaseHTTPRequestHandler:
client_address = ... # type: Tuple[str, int]
server = ... # type: SocketServer.BaseServer
close_connection = ... # type: bool
command = ... # type: str
path = ... # type: str
request_version = ... # type: str
headers = ... # type: mimetools.Message
rfile = ... # type: BinaryIO
wfile = ... # type: BinaryIO
server_version = ... # type: str
sys_version = ... # type: str
error_message_format = ... # type: str
error_content_type = ... # type: str
protocol_version = ... # type: str
MessageClass = ... # type: type
responses = ... # type: Mapping[int, Tuple[str, str]]
client_address: Tuple[str, int]
server: SocketServer.BaseServer
close_connection: bool
command: str
path: str
request_version: str
headers: mimetools.Message
rfile: BinaryIO
wfile: BinaryIO
server_version: str
sys_version: str
error_message_format: str
error_content_type: str
protocol_version: str
MessageClass: type
responses: Mapping[int, Tuple[str, str]]
def __init__(self, request: bytes, client_address: Tuple[str, int],
server: SocketServer.BaseServer) -> None: ...
def handle(self) -> None: ...

View File

@@ -1,10 +1,10 @@
from typing import Any, IO, Sequence, Tuple, Union, List, Dict, Protocol, Optional
DEFAULTSECT = ... # type: str
MAX_INTERPOLATION_DEPTH = ... # type: int
DEFAULTSECT: str
MAX_INTERPOLATION_DEPTH: int
class Error(Exception):
message = ... # type: Any
message: Any
def __init__(self, msg: str = ...) -> None: ...
def _get_message(self) -> None: ...
def _set_message(self, value: str) -> None: ...
@@ -12,26 +12,26 @@ class Error(Exception):
def __str__(self) -> str: ...
class NoSectionError(Error):
section = ... # type: str
section: str
def __init__(self, section: str) -> None: ...
class DuplicateSectionError(Error):
section = ... # type: str
section: str
def __init__(self, section: str) -> None: ...
class NoOptionError(Error):
section = ... # type: str
option = ... # type: str
section: str
option: str
def __init__(self, option: str, section: str) -> None: ...
class InterpolationError(Error):
section = ... # type: str
option = ... # type: str
msg = ... # type: str
section: str
option: str
msg: str
def __init__(self, option: str, section: str, msg: str) -> None: ...
class InterpolationMissingOptionError(InterpolationError):
reference = ... # type: str
reference: str
def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ...
class InterpolationSyntaxError(InterpolationError): ...
@@ -40,27 +40,27 @@ class InterpolationDepthError(InterpolationError):
def __init__(self, option: str, section: str, rawval: str) -> None: ...
class ParsingError(Error):
filename = ... # type: str
errors = ... # type: List[Tuple[Any, Any]]
filename: str
errors: List[Tuple[Any, Any]]
def __init__(self, filename: str) -> None: ...
def append(self, lineno: Any, line: Any) -> None: ...
class MissingSectionHeaderError(ParsingError):
lineno = ... # type: Any
line = ... # type: Any
lineno: Any
line: Any
def __init__(self, filename: str, lineno: Any, line: Any) -> None: ...
class _Readable(Protocol):
def readline(self) -> str: ...
class RawConfigParser:
_dict = ... # type: Any
_sections = ... # type: dict
_defaults = ... # type: dict
_optcre = ... # type: Any
SECTCRE = ... # type: Any
OPTCRE = ... # type: Any
OPTCRE_NV = ... # type: Any
_dict: Any
_sections: dict
_defaults: dict
_optcre: Any
SECTCRE: Any
OPTCRE: Any
OPTCRE_NV: Any
def __init__(self, defaults: Dict[Any, Any] = ..., dict_type: Any = ..., allow_no_value: bool = ...) -> None: ...
def defaults(self) -> Dict[Any, Any]: ...
def sections(self) -> List[str]: ...
@@ -74,7 +74,7 @@ class RawConfigParser:
def _get(self, section: str, conv: type, option: str) -> Any: ...
def getint(self, section: str, option: str) -> int: ...
def getfloat(self, section: str, option: str) -> float: ...
_boolean_states = ... # type: Dict[str, bool]
_boolean_states: Dict[str, bool]
def getboolean(self, section: str, option: str) -> bool: ...
def optionxform(self, optionstr: str) -> str: ...
def has_option(self, section: str, option: str) -> bool: ...
@@ -85,13 +85,13 @@ class RawConfigParser:
def _read(self, fp: IO[str], fpname: str) -> None: ...
class ConfigParser(RawConfigParser):
_KEYCRE = ... # type: Any
_KEYCRE: Any
def get(self, section: str, option: str, raw: bool = ..., vars: Optional[dict] = ...) -> Any: ...
def items(self, section: str, raw: bool = ..., vars: Optional[dict] = ...) -> List[Tuple[str, Any]]: ...
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
def _interpolation_replace(self, match: Any) -> str: ...
class SafeConfigParser(ConfigParser):
_interpvar_re = ... # type: Any
_interpvar_re: Any
def _interpolate(self, section: str, option: str, rawval: Any, vars: Any) -> str: ...
def _interpolate_some(self, option: str, accum: list, rest: str, section: str, map: dict, depth: int) -> None: ...

View File

@@ -3,12 +3,12 @@ from typing import Any, Optional
class CookieError(Exception): ...
class Morsel(dict):
key = ... # type: Any
key: Any
def __init__(self): ...
def __setitem__(self, K, V): ...
def isReservedKey(self, K): ...
value = ... # type: Any
coded_value = ... # type: Any
value: Any
coded_value: Any
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
def output(self, attrs: Optional[Any] = ..., header=...): ...
def js_output(self, attrs: Optional[Any] = ...): ...
@@ -37,4 +37,4 @@ class SmartCookie(BaseCookie):
def value_decode(self, val): ...
def value_encode(self, val): ...
Cookie = ... # type: Any
Cookie: Any

View File

@@ -26,6 +26,6 @@ class HTMLParser(ParserBase):
def unescape(self, s: AnyStr) -> AnyStr: ...
class HTMLParseError(Exception):
msg = ... # type: str
lineno = ... # type: int
offset = ... # type: int
msg: str
lineno: int
offset: int

View File

@@ -5,7 +5,7 @@ import BaseHTTPServer
from StringIO import StringIO
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
server_version = ... # type: str
server_version: str
def do_GET(self) -> None: ...
def do_HEAD(self) -> None: ...
def send_head(self) -> Optional[IO[str]]: ...
@@ -13,4 +13,4 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def translate_path(self, path: AnyStr) -> AnyStr: ...
def copyfile(self, source: IO[AnyStr], outputfile: IO[AnyStr]): ...
def guess_type(self, path: Union[str, unicode]) -> str: ...
extensions_map = ... # type: Mapping[str, str]
extensions_map: Mapping[str, str]

View File

@@ -7,14 +7,14 @@ import sys
import types
class BaseServer:
address_family = ... # type: int
RequestHandlerClass = ... # type: type
server_address = ... # type: Tuple[str, int]
socket = ... # type: SocketType
allow_reuse_address = ... # type: bool
request_queue_size = ... # type: int
socket_type = ... # type: int
timeout = ... # type: Optional[float]
address_family: int
RequestHandlerClass: type
server_address: Tuple[str, int]
socket: SocketType
allow_reuse_address: bool
request_queue_size: int
socket_type: int
timeout: Optional[float]
def __init__(self, server_address: Tuple[str, int],
RequestHandlerClass: type) -> None: ...
def fileno(self) -> int: ...
@@ -82,18 +82,18 @@ class BaseRequestHandler:
# But there are some concerns that having unions here would cause
# too much inconvenience to people using it (see
# https://github.com/python/typeshed/pull/384#issuecomment-234649696)
request = ... # type: Any
client_address = ... # type: Any
request: Any
client_address: Any
server = ... # type: BaseServer
server: BaseServer
def setup(self) -> None: ...
def handle(self) -> None: ...
def finish(self) -> None: ...
class StreamRequestHandler(BaseRequestHandler):
rfile = ... # type: BinaryIO
wfile = ... # type: BinaryIO
rfile: BinaryIO
wfile: BinaryIO
class DatagramRequestHandler(BaseRequestHandler):
rfile = ... # type: BinaryIO
wfile = ... # type: BinaryIO
rfile: BinaryIO
wfile: BinaryIO

View File

@@ -3,10 +3,10 @@
from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List, Optional
class StringIO(IO[AnyStr], Generic[AnyStr]):
closed = ... # type: bool
softspace = ... # type: int
len = ... # type: int
name = ... # type: str
closed: bool
softspace: int
len: int
name: str
def __init__(self, buf: AnyStr = ...) -> None: ...
def __iter__(self) -> Iterator[AnyStr]: ...
def next(self) -> AnyStr: ...

View File

@@ -6,7 +6,7 @@ _VT = TypeVar('_VT')
_T = TypeVar('_T')
class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]):
data = ... # type: Mapping[_KT, _VT]
data: Mapping[_KT, _VT]
def __init__(self, initialdata: Mapping[_KT, _VT] = ...) -> None: ...

View File

@@ -1,126 +1,126 @@
import typing
from typing import Optional
__version__ = ... # type: str
__version__: str
PyCF_ONLY_AST = ... # type: int
PyCF_ONLY_AST: int
_identifier = str
class AST:
_attributes = ... # type: typing.Tuple[str, ...]
_fields = ... # type: typing.Tuple[str, ...]
_attributes: typing.Tuple[str, ...]
_fields: typing.Tuple[str, ...]
def __init__(self, *args, **kwargs) -> None: ...
class mod(AST):
...
class Module(mod):
body = ... # type: typing.List[stmt]
body: typing.List[stmt]
class Interactive(mod):
body = ... # type: typing.List[stmt]
body: typing.List[stmt]
class Expression(mod):
body = ... # type: expr
body: expr
class Suite(mod):
body = ... # type: typing.List[stmt]
body: typing.List[stmt]
class stmt(AST):
lineno = ... # type: int
col_offset = ... # type: int
lineno: int
col_offset: int
class FunctionDef(stmt):
name = ... # type: _identifier
args = ... # type: arguments
body = ... # type: typing.List[stmt]
decorator_list = ... # type: typing.List[expr]
name: _identifier
args: arguments
body: typing.List[stmt]
decorator_list: typing.List[expr]
class ClassDef(stmt):
name = ... # type: _identifier
bases = ... # type: typing.List[expr]
body = ... # type: typing.List[stmt]
decorator_list = ... # type: typing.List[expr]
name: _identifier
bases: typing.List[expr]
body: typing.List[stmt]
decorator_list: typing.List[expr]
class Return(stmt):
value = ... # type: Optional[expr]
value: Optional[expr]
class Delete(stmt):
targets = ... # type: typing.List[expr]
targets: typing.List[expr]
class Assign(stmt):
targets = ... # type: typing.List[expr]
value = ... # type: expr
targets: typing.List[expr]
value: expr
class AugAssign(stmt):
target = ... # type: expr
op = ... # type: operator
value = ... # type: expr
target: expr
op: operator
value: expr
class Print(stmt):
dest = ... # type: Optional[expr]
values = ... # type: typing.List[expr]
nl = ... # type: bool
dest: Optional[expr]
values: typing.List[expr]
nl: bool
class For(stmt):
target = ... # type: expr
iter = ... # type: expr
body = ... # type: typing.List[stmt]
orelse = ... # type: typing.List[stmt]
target: expr
iter: expr
body: typing.List[stmt]
orelse: typing.List[stmt]
class While(stmt):
test = ... # type: expr
body = ... # type: typing.List[stmt]
orelse = ... # type: typing.List[stmt]
test: expr
body: typing.List[stmt]
orelse: typing.List[stmt]
class If(stmt):
test = ... # type: expr
body = ... # type: typing.List[stmt]
orelse = ... # type: typing.List[stmt]
test: expr
body: typing.List[stmt]
orelse: typing.List[stmt]
class With(stmt):
context_expr = ... # type: expr
optional_vars = ... # type: Optional[expr]
body = ... # type: typing.List[stmt]
context_expr: expr
optional_vars: Optional[expr]
body: typing.List[stmt]
class Raise(stmt):
type = ... # type: Optional[expr]
inst = ... # type: Optional[expr]
tback = ... # type: Optional[expr]
type: Optional[expr]
inst: Optional[expr]
tback: Optional[expr]
class TryExcept(stmt):
body = ... # type: typing.List[stmt]
handlers = ... # type: typing.List[ExceptHandler]
orelse = ... # type: typing.List[stmt]
body: typing.List[stmt]
handlers: typing.List[ExceptHandler]
orelse: typing.List[stmt]
class TryFinally(stmt):
body = ... # type: typing.List[stmt]
finalbody = ... # type: typing.List[stmt]
body: typing.List[stmt]
finalbody: typing.List[stmt]
class Assert(stmt):
test = ... # type: expr
msg = ... # type: Optional[expr]
test: expr
msg: Optional[expr]
class Import(stmt):
names = ... # type: typing.List[alias]
names: typing.List[alias]
class ImportFrom(stmt):
module = ... # type: Optional[_identifier]
names = ... # type: typing.List[alias]
level = ... # type: Optional[int]
module: Optional[_identifier]
names: typing.List[alias]
level: Optional[int]
class Exec(stmt):
body = ... # type: expr
globals = ... # type: Optional[expr]
locals = ... # type: Optional[expr]
body: expr
globals: Optional[expr]
locals: Optional[expr]
class Global(stmt):
names = ... # type: typing.List[_identifier]
names: typing.List[_identifier]
class Expr(stmt):
value = ... # type: expr
value: expr
class Pass(stmt): ...
class Break(stmt): ...
@@ -133,114 +133,114 @@ class slice(AST):
_slice = slice # this lets us type the variable named 'slice' below
class Slice(slice):
lower = ... # type: Optional[expr]
upper = ... # type: Optional[expr]
step = ... # type: Optional[expr]
lower: Optional[expr]
upper: Optional[expr]
step: Optional[expr]
class ExtSlice(slice):
dims = ... # type: typing.List[slice]
dims: typing.List[slice]
class Index(slice):
value = ... # type: expr
value: expr
class Ellipsis(slice): ...
class expr(AST):
lineno = ... # type: int
col_offset = ... # type: int
lineno: int
col_offset: int
class BoolOp(expr):
op = ... # type: boolop
values = ... # type: typing.List[expr]
op: boolop
values: typing.List[expr]
class BinOp(expr):
left = ... # type: expr
op = ... # type: operator
right = ... # type: expr
left: expr
op: operator
right: expr
class UnaryOp(expr):
op = ... # type: unaryop
operand = ... # type: expr
op: unaryop
operand: expr
class Lambda(expr):
args = ... # type: arguments
body = ... # type: expr
args: arguments
body: expr
class IfExp(expr):
test = ... # type: expr
body = ... # type: expr
orelse = ... # type: expr
test: expr
body: expr
orelse: expr
class Dict(expr):
keys = ... # type: typing.List[expr]
values = ... # type: typing.List[expr]
keys: typing.List[expr]
values: typing.List[expr]
class Set(expr):
elts = ... # type: typing.List[expr]
elts: typing.List[expr]
class ListComp(expr):
elt = ... # type: expr
generators = ... # type: typing.List[comprehension]
elt: expr
generators: typing.List[comprehension]
class SetComp(expr):
elt = ... # type: expr
generators = ... # type: typing.List[comprehension]
elt: expr
generators: typing.List[comprehension]
class DictComp(expr):
key = ... # type: expr
value = ... # type: expr
generators = ... # type: typing.List[comprehension]
key: expr
value: expr
generators: typing.List[comprehension]
class GeneratorExp(expr):
elt = ... # type: expr
generators = ... # type: typing.List[comprehension]
elt: expr
generators: typing.List[comprehension]
class Yield(expr):
value = ... # type: Optional[expr]
value: Optional[expr]
class Compare(expr):
left = ... # type: expr
ops = ... # type: typing.List[cmpop]
comparators = ... # type: typing.List[expr]
left: expr
ops: typing.List[cmpop]
comparators: typing.List[expr]
class Call(expr):
func = ... # type: expr
args = ... # type: typing.List[expr]
keywords = ... # type: typing.List[keyword]
starargs = ... # type: Optional[expr]
kwargs = ... # type: Optional[expr]
func: expr
args: typing.List[expr]
keywords: typing.List[keyword]
starargs: Optional[expr]
kwargs: Optional[expr]
class Repr(expr):
value = ... # type: expr
value: expr
class Num(expr):
n = ... # type: float
n: float
class Str(expr):
s = ... # type: str
s: str
class Attribute(expr):
value = ... # type: expr
attr = ... # type: _identifier
ctx = ... # type: expr_context
value: expr
attr: _identifier
ctx: expr_context
class Subscript(expr):
value = ... # type: expr
slice = ... # type: _slice
ctx = ... # type: expr_context
value: expr
slice: _slice
ctx: expr_context
class Name(expr):
id = ... # type: _identifier
ctx = ... # type: expr_context
id: _identifier
ctx: expr_context
class List(expr):
elts = ... # type: typing.List[expr]
ctx = ... # type: expr_context
elts: typing.List[expr]
ctx: expr_context
class Tuple(expr):
elts = ... # type: typing.List[expr]
ctx = ... # type: expr_context
elts: typing.List[expr]
ctx: expr_context
class expr_context(AST):
@@ -300,9 +300,9 @@ class NotIn(cmpop): ...
class comprehension(AST):
target = ... # type: expr
iter = ... # type: expr
ifs = ... # type: typing.List[expr]
target: expr
iter: expr
ifs: typing.List[expr]
class excepthandler(AST):
@@ -310,23 +310,23 @@ class excepthandler(AST):
class ExceptHandler(excepthandler):
type = ... # type: Optional[expr]
name = ... # type: Optional[expr]
body = ... # type: typing.List[stmt]
lineno = ... # type: int
col_offset = ... # type: int
type: Optional[expr]
name: Optional[expr]
body: typing.List[stmt]
lineno: int
col_offset: int
class arguments(AST):
args = ... # type: typing.List[expr]
vararg = ... # type: Optional[_identifier]
kwarg = ... # type: Optional[_identifier]
defaults = ... # type: typing.List[expr]
args: typing.List[expr]
vararg: Optional[_identifier]
kwarg: Optional[_identifier]
defaults: typing.List[expr]
class keyword(AST):
arg = ... # type: _identifier
value = ... # type: expr
arg: _identifier
value: expr
class alias(AST):
name = ... # type: _identifier
asname = ... # type: Optional[_identifier]
name: _identifier
asname: Optional[_identifier]

View File

@@ -3,7 +3,7 @@
from typing import Any, Generic, Iterator, TypeVar, Optional, Union
class defaultdict(dict):
default_factory = ... # type: None
default_factory: None
def __init__(self, default: Any = ..., init: Any = ...) -> None: ...
def __missing__(self, key) -> Any:
raise KeyError()
@@ -14,7 +14,7 @@ _T = TypeVar('_T')
_T2 = TypeVar('_T2')
class deque(Generic[_T]):
maxlen = ... # type: Optional[int]
maxlen: Optional[int]
def __init__(self, iterable: Iterator[_T] = ..., maxlen: int = ...) -> None: ...
def append(self, x: _T) -> None: ...
def appendleft(self, x: _T) -> None: ...

View File

@@ -13,8 +13,8 @@ def reduce(function: Callable[[_T, _S], _T],
sequence: Iterable[_S], initial: _T) -> _T: ...
class partial(object):
func = ... # type: Callable[..., Any]
args = ... # type: Tuple[Any, ...]
keywords = ... # type: Dict[str, Any]
func: Callable[..., Any]
args: Tuple[Any, ...]
keywords: Dict[str, Any]
def __init__(self, func: Callable[..., Any], *args: Any, **kwargs: Any) -> None: ...
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...

View File

@@ -4,10 +4,10 @@ from types import TracebackType
_bytearray_like = Union[bytearray, mmap]
DEFAULT_BUFFER_SIZE = ... # type: int
DEFAULT_BUFFER_SIZE: int
class BlockingIOError(IOError):
characters_written = ... # type: int
characters_written: int
class UnsupportedOperation(ValueError, IOError): ...
@@ -59,25 +59,25 @@ class BufferedRWPair(_BufferedIOBase):
def __enter__(self) -> BufferedRWPair: ...
class BufferedRandom(_BufferedIOBase):
mode = ... # type: str
name = ... # type: str
raw = ... # type: _IOBase
mode: str
name: str
raw: _IOBase
def __init__(self, raw: _IOBase,
buffer_size: int = ...,
max_buffer_size: int = ...) -> None: ...
def peek(self, n: int = ...) -> bytes: ...
class BufferedReader(_BufferedIOBase):
mode = ... # type: str
name = ... # type: str
raw = ... # type: _IOBase
mode: str
name: str
raw: _IOBase
def __init__(self, raw: _IOBase, buffer_size: int = ...) -> None: ...
def peek(self, n: int = ...) -> bytes: ...
class BufferedWriter(_BufferedIOBase):
name = ... # type: str
raw = ... # type: _IOBase
mode = ... # type: str
name: str
raw: _IOBase
mode: str
def __init__(self, raw: _IOBase,
buffer_size: int = ...,
max_buffer_size: int = ...) -> None: ...
@@ -101,14 +101,14 @@ class _RawIOBase(_IOBase):
def read(self, n: int = ...) -> str: ...
class FileIO(_RawIOBase, BytesIO):
mode = ... # type: str
closefd = ... # type: bool
mode: str
closefd: bool
def __init__(self, file: Union[str, int], mode: str = ..., closefd: bool = ...) -> None: ...
def readinto(self, buffer: _bytearray_like) -> int: ...
def write(self, pbuf: str) -> int: ...
class IncrementalNewlineDecoder(object):
newlines = ... # type: Union[str, unicode]
newlines: Union[str, unicode]
def __init__(self, decoder, translate, z=...) -> None: ...
def decode(self, input, final) -> Any: ...
def getstate(self) -> Tuple[Any, int]: ...
@@ -118,10 +118,10 @@ class IncrementalNewlineDecoder(object):
# Note: In the actual _io.py, _TextIOBase inherits from _IOBase.
class _TextIOBase(TextIO):
errors = ... # type: Optional[str]
errors: Optional[str]
# TODO: On _TextIOBase, this is always None. But it's unicode/bytes in subclasses.
newlines = ... # type: Union[None, unicode, bytes]
encoding = ... # type: str
newlines: Union[None, unicode, bytes]
encoding: str
@property
def closed(self) -> bool: ...
def _checkClosed(self) -> None: ...
@@ -150,7 +150,7 @@ class _TextIOBase(TextIO):
def __iter__(self: _T) -> _T: ...
class StringIO(_TextIOBase):
line_buffering = ... # type: bool
line_buffering: bool
def __init__(self,
initial_value: Optional[unicode] = ...,
newline: Optional[unicode] = ...) -> None: ...
@@ -163,10 +163,10 @@ class StringIO(_TextIOBase):
def getvalue(self) -> unicode: ...
class TextIOWrapper(_TextIOBase):
name = ... # type: str
line_buffering = ... # type: bool
buffer = ... # type: BinaryIO
_CHUNK_SIZE = ... # type: int
name: str
line_buffering: bool
buffer: BinaryIO
_CHUNK_SIZE: int
def __init__(self, buffer: IO,
encoding: Optional[Text] = ...,
errors: Optional[Text] = ...,

View File

@@ -1,10 +1,10 @@
blocksize = ... # type: int
digest_size = ... # type: int
blocksize: int
digest_size: int
class MD5Type(object):
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
name: str
block_size: int
digest_size: int
def copy(self) -> MD5Type: ...
def digest(self) -> str: ...
def hexdigest(self) -> str: ...

View File

@@ -1,12 +1,12 @@
blocksize = ... # type: int
block_size = ... # type: int
digest_size = ... # type: int
blocksize: int
block_size: int
digest_size: int
class sha(object): # not actually exposed
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
digestsize = ... # type: int
name: str
block_size: int
digest_size: int
digestsize: int
def copy(self) -> sha: ...
def digest(self) -> str: ...
def hexdigest(self) -> str: ...

View File

@@ -1,10 +1,10 @@
from typing import Optional
class sha224(object):
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
digestsize = ... # type: int
name: str
block_size: int
digest_size: int
digestsize: int
def __init__(self, init: Optional[str]) -> None: ...
def copy(self) -> sha224: ...
def digest(self) -> str: ...
@@ -12,10 +12,10 @@ class sha224(object):
def update(self, arg: str) -> None: ...
class sha256(object):
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
digestsize = ... # type: int
name: str
block_size: int
digest_size: int
digestsize: int
def __init__(self, init: Optional[str]) -> None: ...
def copy(self) -> sha256: ...
def digest(self) -> str: ...

View File

@@ -1,10 +1,10 @@
from typing import Optional
class sha384(object):
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
digestsize = ... # type: int
name: str
block_size: int
digest_size: int
digestsize: int
def __init__(self, init: Optional[str]) -> None: ...
def copy(self) -> sha384: ...
def digest(self) -> str: ...
@@ -12,10 +12,10 @@ class sha384(object):
def update(self, arg: str) -> None: ...
class sha512(object):
name = ... # type: str
block_size = ... # type: int
digest_size = ... # type: int
digestsize = ... # type: int
name: str
block_size: int
digest_size: int
digestsize: int
def __init__(self, init: Optional[str]) -> None: ...
def copy(self) -> sha512: ...
def digest(self) -> str: ...

View File

@@ -1,256 +1,256 @@
from typing import Tuple, Union, IO, Any, Optional, overload
AF_APPLETALK = ... # type: int
AF_ASH = ... # type: int
AF_ATMPVC = ... # type: int
AF_ATMSVC = ... # type: int
AF_AX25 = ... # type: int
AF_BLUETOOTH = ... # type: int
AF_BRIDGE = ... # type: int
AF_DECnet = ... # type: int
AF_ECONET = ... # type: int
AF_INET = ... # type: int
AF_INET6 = ... # type: int
AF_IPX = ... # type: int
AF_IRDA = ... # type: int
AF_KEY = ... # type: int
AF_LLC = ... # type: int
AF_NETBEUI = ... # type: int
AF_NETLINK = ... # type: int
AF_NETROM = ... # type: int
AF_PACKET = ... # type: int
AF_PPPOX = ... # type: int
AF_ROSE = ... # type: int
AF_ROUTE = ... # type: int
AF_SECURITY = ... # type: int
AF_SNA = ... # type: int
AF_TIPC = ... # type: int
AF_UNIX = ... # type: int
AF_UNSPEC = ... # type: int
AF_WANPIPE = ... # type: int
AF_X25 = ... # type: int
AI_ADDRCONFIG = ... # type: int
AI_ALL = ... # type: int
AI_CANONNAME = ... # type: int
AI_NUMERICHOST = ... # type: int
AI_NUMERICSERV = ... # type: int
AI_PASSIVE = ... # type: int
AI_V4MAPPED = ... # type: int
BDADDR_ANY = ... # type: str
BDADDR_LOCAL = ... # type: str
BTPROTO_HCI = ... # type: int
BTPROTO_L2CAP = ... # type: int
BTPROTO_RFCOMM = ... # type: int
BTPROTO_SCO = ... # type: int
EAI_ADDRFAMILY = ... # type: int
EAI_AGAIN = ... # type: int
EAI_BADFLAGS = ... # type: int
EAI_FAIL = ... # type: int
EAI_FAMILY = ... # type: int
EAI_MEMORY = ... # type: int
EAI_NODATA = ... # type: int
EAI_NONAME = ... # type: int
EAI_OVERFLOW = ... # type: int
EAI_SERVICE = ... # type: int
EAI_SOCKTYPE = ... # type: int
EAI_SYSTEM = ... # type: int
EBADF = ... # type: int
EINTR = ... # type: int
HCI_DATA_DIR = ... # type: int
HCI_FILTER = ... # type: int
HCI_TIME_STAMP = ... # type: int
INADDR_ALLHOSTS_GROUP = ... # type: int
INADDR_ANY = ... # type: int
INADDR_BROADCAST = ... # type: int
INADDR_LOOPBACK = ... # type: int
INADDR_MAX_LOCAL_GROUP = ... # type: int
INADDR_NONE = ... # type: int
INADDR_UNSPEC_GROUP = ... # type: int
IPPORT_RESERVED = ... # type: int
IPPORT_USERRESERVED = ... # type: int
IPPROTO_AH = ... # type: int
IPPROTO_DSTOPTS = ... # type: int
IPPROTO_EGP = ... # type: int
IPPROTO_ESP = ... # type: int
IPPROTO_FRAGMENT = ... # type: int
IPPROTO_GRE = ... # type: int
IPPROTO_HOPOPTS = ... # type: int
IPPROTO_ICMP = ... # type: int
IPPROTO_ICMPV6 = ... # type: int
IPPROTO_IDP = ... # type: int
IPPROTO_IGMP = ... # type: int
IPPROTO_IP = ... # type: int
IPPROTO_IPIP = ... # type: int
IPPROTO_IPV6 = ... # type: int
IPPROTO_NONE = ... # type: int
IPPROTO_PIM = ... # type: int
IPPROTO_PUP = ... # type: int
IPPROTO_RAW = ... # type: int
IPPROTO_ROUTING = ... # type: int
IPPROTO_RSVP = ... # type: int
IPPROTO_TCP = ... # type: int
IPPROTO_TP = ... # type: int
IPPROTO_UDP = ... # type: int
IPV6_CHECKSUM = ... # type: int
IPV6_DSTOPTS = ... # type: int
IPV6_HOPLIMIT = ... # type: int
IPV6_HOPOPTS = ... # type: int
IPV6_JOIN_GROUP = ... # type: int
IPV6_LEAVE_GROUP = ... # type: int
IPV6_MULTICAST_HOPS = ... # type: int
IPV6_MULTICAST_IF = ... # type: int
IPV6_MULTICAST_LOOP = ... # type: int
IPV6_NEXTHOP = ... # type: int
IPV6_PKTINFO = ... # type: int
IPV6_RECVDSTOPTS = ... # type: int
IPV6_RECVHOPLIMIT = ... # type: int
IPV6_RECVHOPOPTS = ... # type: int
IPV6_RECVPKTINFO = ... # type: int
IPV6_RECVRTHDR = ... # type: int
IPV6_RECVTCLASS = ... # type: int
IPV6_RTHDR = ... # type: int
IPV6_RTHDRDSTOPTS = ... # type: int
IPV6_RTHDR_TYPE_0 = ... # type: int
IPV6_TCLASS = ... # type: int
IPV6_UNICAST_HOPS = ... # type: int
IPV6_V6ONLY = ... # type: int
IP_ADD_MEMBERSHIP = ... # type: int
IP_DEFAULT_MULTICAST_LOOP = ... # type: int
IP_DEFAULT_MULTICAST_TTL = ... # type: int
IP_DROP_MEMBERSHIP = ... # type: int
IP_HDRINCL = ... # type: int
IP_MAX_MEMBERSHIPS = ... # type: int
IP_MULTICAST_IF = ... # type: int
IP_MULTICAST_LOOP = ... # type: int
IP_MULTICAST_TTL = ... # type: int
IP_OPTIONS = ... # type: int
IP_RECVOPTS = ... # type: int
IP_RECVRETOPTS = ... # type: int
IP_RETOPTS = ... # type: int
IP_TOS = ... # type: int
IP_TTL = ... # type: int
MSG_CTRUNC = ... # type: int
MSG_DONTROUTE = ... # type: int
MSG_DONTWAIT = ... # type: int
MSG_EOR = ... # type: int
MSG_OOB = ... # type: int
MSG_PEEK = ... # type: int
MSG_TRUNC = ... # type: int
MSG_WAITALL = ... # type: int
MethodType = ... # type: type
NETLINK_DNRTMSG = ... # type: int
NETLINK_FIREWALL = ... # type: int
NETLINK_IP6_FW = ... # type: int
NETLINK_NFLOG = ... # type: int
NETLINK_ROUTE = ... # type: int
NETLINK_USERSOCK = ... # type: int
NETLINK_XFRM = ... # type: int
NI_DGRAM = ... # type: int
NI_MAXHOST = ... # type: int
NI_MAXSERV = ... # type: int
NI_NAMEREQD = ... # type: int
NI_NOFQDN = ... # type: int
NI_NUMERICHOST = ... # type: int
NI_NUMERICSERV = ... # type: int
PACKET_BROADCAST = ... # type: int
PACKET_FASTROUTE = ... # type: int
PACKET_HOST = ... # type: int
PACKET_LOOPBACK = ... # type: int
PACKET_MULTICAST = ... # type: int
PACKET_OTHERHOST = ... # type: int
PACKET_OUTGOING = ... # type: int
PF_PACKET = ... # type: int
SHUT_RD = ... # type: int
SHUT_RDWR = ... # type: int
SHUT_WR = ... # type: int
SOCK_DGRAM = ... # type: int
SOCK_RAW = ... # type: int
SOCK_RDM = ... # type: int
SOCK_SEQPACKET = ... # type: int
SOCK_STREAM = ... # type: int
SOL_HCI = ... # type: int
SOL_IP = ... # type: int
SOL_SOCKET = ... # type: int
SOL_TCP = ... # type: int
SOL_TIPC = ... # type: int
SOL_UDP = ... # type: int
SOMAXCONN = ... # type: int
SO_ACCEPTCONN = ... # type: int
SO_BROADCAST = ... # type: int
SO_DEBUG = ... # type: int
SO_DONTROUTE = ... # type: int
SO_ERROR = ... # type: int
SO_KEEPALIVE = ... # type: int
SO_LINGER = ... # type: int
SO_OOBINLINE = ... # type: int
SO_RCVBUF = ... # type: int
SO_RCVLOWAT = ... # type: int
SO_RCVTIMEO = ... # type: int
SO_REUSEADDR = ... # type: int
SO_REUSEPORT = ... # type: int
SO_SNDBUF = ... # type: int
SO_SNDLOWAT = ... # type: int
SO_SNDTIMEO = ... # type: int
SO_TYPE = ... # type: int
SSL_ERROR_EOF = ... # type: int
SSL_ERROR_INVALID_ERROR_CODE = ... # type: int
SSL_ERROR_SSL = ... # type: int
SSL_ERROR_SYSCALL = ... # type: int
SSL_ERROR_WANT_CONNECT = ... # type: int
SSL_ERROR_WANT_READ = ... # type: int
SSL_ERROR_WANT_WRITE = ... # type: int
SSL_ERROR_WANT_X509_LOOKUP = ... # type: int
SSL_ERROR_ZERO_RETURN = ... # type: int
TCP_CORK = ... # type: int
TCP_DEFER_ACCEPT = ... # type: int
TCP_INFO = ... # type: int
TCP_KEEPCNT = ... # type: int
TCP_KEEPIDLE = ... # type: int
TCP_KEEPINTVL = ... # type: int
TCP_LINGER2 = ... # type: int
TCP_MAXSEG = ... # type: int
TCP_NODELAY = ... # type: int
TCP_QUICKACK = ... # type: int
TCP_SYNCNT = ... # type: int
TCP_WINDOW_CLAMP = ... # type: int
TIPC_ADDR_ID = ... # type: int
TIPC_ADDR_NAME = ... # type: int
TIPC_ADDR_NAMESEQ = ... # type: int
TIPC_CFG_SRV = ... # type: int
TIPC_CLUSTER_SCOPE = ... # type: int
TIPC_CONN_TIMEOUT = ... # type: int
TIPC_CRITICAL_IMPORTANCE = ... # type: int
TIPC_DEST_DROPPABLE = ... # type: int
TIPC_HIGH_IMPORTANCE = ... # type: int
TIPC_IMPORTANCE = ... # type: int
TIPC_LOW_IMPORTANCE = ... # type: int
TIPC_MEDIUM_IMPORTANCE = ... # type: int
TIPC_NODE_SCOPE = ... # type: int
TIPC_PUBLISHED = ... # type: int
TIPC_SRC_DROPPABLE = ... # type: int
TIPC_SUBSCR_TIMEOUT = ... # type: int
TIPC_SUB_CANCEL = ... # type: int
TIPC_SUB_PORTS = ... # type: int
TIPC_SUB_SERVICE = ... # type: int
TIPC_TOP_SRV = ... # type: int
TIPC_WAIT_FOREVER = ... # type: int
TIPC_WITHDRAWN = ... # type: int
TIPC_ZONE_SCOPE = ... # type: int
AF_APPLETALK: int
AF_ASH: int
AF_ATMPVC: int
AF_ATMSVC: int
AF_AX25: int
AF_BLUETOOTH: int
AF_BRIDGE: int
AF_DECnet: int
AF_ECONET: int
AF_INET: int
AF_INET6: int
AF_IPX: int
AF_IRDA: int
AF_KEY: int
AF_LLC: int
AF_NETBEUI: int
AF_NETLINK: int
AF_NETROM: int
AF_PACKET: int
AF_PPPOX: int
AF_ROSE: int
AF_ROUTE: int
AF_SECURITY: int
AF_SNA: int
AF_TIPC: int
AF_UNIX: int
AF_UNSPEC: int
AF_WANPIPE: int
AF_X25: int
AI_ADDRCONFIG: int
AI_ALL: int
AI_CANONNAME: int
AI_NUMERICHOST: int
AI_NUMERICSERV: int
AI_PASSIVE: int
AI_V4MAPPED: int
BDADDR_ANY: str
BDADDR_LOCAL: str
BTPROTO_HCI: int
BTPROTO_L2CAP: int
BTPROTO_RFCOMM: int
BTPROTO_SCO: int
EAI_ADDRFAMILY: int
EAI_AGAIN: int
EAI_BADFLAGS: int
EAI_FAIL: int
EAI_FAMILY: int
EAI_MEMORY: int
EAI_NODATA: int
EAI_NONAME: int
EAI_OVERFLOW: int
EAI_SERVICE: int
EAI_SOCKTYPE: int
EAI_SYSTEM: int
EBADF: int
EINTR: int
HCI_DATA_DIR: int
HCI_FILTER: int
HCI_TIME_STAMP: int
INADDR_ALLHOSTS_GROUP: int
INADDR_ANY: int
INADDR_BROADCAST: int
INADDR_LOOPBACK: int
INADDR_MAX_LOCAL_GROUP: int
INADDR_NONE: int
INADDR_UNSPEC_GROUP: int
IPPORT_RESERVED: int
IPPORT_USERRESERVED: int
IPPROTO_AH: int
IPPROTO_DSTOPTS: int
IPPROTO_EGP: int
IPPROTO_ESP: int
IPPROTO_FRAGMENT: int
IPPROTO_GRE: int
IPPROTO_HOPOPTS: int
IPPROTO_ICMP: int
IPPROTO_ICMPV6: int
IPPROTO_IDP: int
IPPROTO_IGMP: int
IPPROTO_IP: int
IPPROTO_IPIP: int
IPPROTO_IPV6: int
IPPROTO_NONE: int
IPPROTO_PIM: int
IPPROTO_PUP: int
IPPROTO_RAW: int
IPPROTO_ROUTING: int
IPPROTO_RSVP: int
IPPROTO_TCP: int
IPPROTO_TP: int
IPPROTO_UDP: int
IPV6_CHECKSUM: int
IPV6_DSTOPTS: int
IPV6_HOPLIMIT: int
IPV6_HOPOPTS: int
IPV6_JOIN_GROUP: int
IPV6_LEAVE_GROUP: int
IPV6_MULTICAST_HOPS: int
IPV6_MULTICAST_IF: int
IPV6_MULTICAST_LOOP: int
IPV6_NEXTHOP: int
IPV6_PKTINFO: int
IPV6_RECVDSTOPTS: int
IPV6_RECVHOPLIMIT: int
IPV6_RECVHOPOPTS: int
IPV6_RECVPKTINFO: int
IPV6_RECVRTHDR: int
IPV6_RECVTCLASS: int
IPV6_RTHDR: int
IPV6_RTHDRDSTOPTS: int
IPV6_RTHDR_TYPE_0: int
IPV6_TCLASS: int
IPV6_UNICAST_HOPS: int
IPV6_V6ONLY: int
IP_ADD_MEMBERSHIP: int
IP_DEFAULT_MULTICAST_LOOP: int
IP_DEFAULT_MULTICAST_TTL: int
IP_DROP_MEMBERSHIP: int
IP_HDRINCL: int
IP_MAX_MEMBERSHIPS: int
IP_MULTICAST_IF: int
IP_MULTICAST_LOOP: int
IP_MULTICAST_TTL: int
IP_OPTIONS: int
IP_RECVOPTS: int
IP_RECVRETOPTS: int
IP_RETOPTS: int
IP_TOS: int
IP_TTL: int
MSG_CTRUNC: int
MSG_DONTROUTE: int
MSG_DONTWAIT: int
MSG_EOR: int
MSG_OOB: int
MSG_PEEK: int
MSG_TRUNC: int
MSG_WAITALL: int
MethodType: type
NETLINK_DNRTMSG: int
NETLINK_FIREWALL: int
NETLINK_IP6_FW: int
NETLINK_NFLOG: int
NETLINK_ROUTE: int
NETLINK_USERSOCK: int
NETLINK_XFRM: int
NI_DGRAM: int
NI_MAXHOST: int
NI_MAXSERV: int
NI_NAMEREQD: int
NI_NOFQDN: int
NI_NUMERICHOST: int
NI_NUMERICSERV: int
PACKET_BROADCAST: int
PACKET_FASTROUTE: int
PACKET_HOST: int
PACKET_LOOPBACK: int
PACKET_MULTICAST: int
PACKET_OTHERHOST: int
PACKET_OUTGOING: int
PF_PACKET: int
SHUT_RD: int
SHUT_RDWR: int
SHUT_WR: int
SOCK_DGRAM: int
SOCK_RAW: int
SOCK_RDM: int
SOCK_SEQPACKET: int
SOCK_STREAM: int
SOL_HCI: int
SOL_IP: int
SOL_SOCKET: int
SOL_TCP: int
SOL_TIPC: int
SOL_UDP: int
SOMAXCONN: int
SO_ACCEPTCONN: int
SO_BROADCAST: int
SO_DEBUG: int
SO_DONTROUTE: int
SO_ERROR: int
SO_KEEPALIVE: int
SO_LINGER: int
SO_OOBINLINE: int
SO_RCVBUF: int
SO_RCVLOWAT: int
SO_RCVTIMEO: int
SO_REUSEADDR: int
SO_REUSEPORT: int
SO_SNDBUF: int
SO_SNDLOWAT: int
SO_SNDTIMEO: int
SO_TYPE: int
SSL_ERROR_EOF: int
SSL_ERROR_INVALID_ERROR_CODE: int
SSL_ERROR_SSL: int
SSL_ERROR_SYSCALL: int
SSL_ERROR_WANT_CONNECT: int
SSL_ERROR_WANT_READ: int
SSL_ERROR_WANT_WRITE: int
SSL_ERROR_WANT_X509_LOOKUP: int
SSL_ERROR_ZERO_RETURN: int
TCP_CORK: int
TCP_DEFER_ACCEPT: int
TCP_INFO: int
TCP_KEEPCNT: int
TCP_KEEPIDLE: int
TCP_KEEPINTVL: int
TCP_LINGER2: int
TCP_MAXSEG: int
TCP_NODELAY: int
TCP_QUICKACK: int
TCP_SYNCNT: int
TCP_WINDOW_CLAMP: int
TIPC_ADDR_ID: int
TIPC_ADDR_NAME: int
TIPC_ADDR_NAMESEQ: int
TIPC_CFG_SRV: int
TIPC_CLUSTER_SCOPE: int
TIPC_CONN_TIMEOUT: int
TIPC_CRITICAL_IMPORTANCE: int
TIPC_DEST_DROPPABLE: int
TIPC_HIGH_IMPORTANCE: int
TIPC_IMPORTANCE: int
TIPC_LOW_IMPORTANCE: int
TIPC_MEDIUM_IMPORTANCE: int
TIPC_NODE_SCOPE: int
TIPC_PUBLISHED: int
TIPC_SRC_DROPPABLE: int
TIPC_SUBSCR_TIMEOUT: int
TIPC_SUB_CANCEL: int
TIPC_SUB_PORTS: int
TIPC_SUB_SERVICE: int
TIPC_TOP_SRV: int
TIPC_WAIT_FOREVER: int
TIPC_WITHDRAWN: int
TIPC_ZONE_SCOPE: int
# PyCapsule
CAPI = ... # type: Any
CAPI: Any
has_ipv6 = ... # type: bool
has_ipv6: bool
class error(IOError): ...
class gaierror(error): ...
class timeout(error): ...
class SocketType(object):
family = ... # type: int
type = ... # type: int
proto = ... # type: int
timeout = ... # type: float
family: int
type: int
proto: int
timeout: float
def __init__(self, family: int = ..., type: int = ..., proto: int = ...) -> None: ...
def accept(self) -> Tuple[SocketType, tuple]: ...

View File

@@ -2,10 +2,10 @@
from typing import Any, Union, Iterable, Optional, Mapping, Sequence, Dict, List, Tuple, overload
CODESIZE = ... # type: int
MAGIC = ... # type: int
MAXREPEAT = ... # type: long
copyright = ... # type: str
CODESIZE: int
MAGIC: int
MAXREPEAT: long
copyright: str
class SRE_Match(object):
def start(self, group: int = ...) -> int:
@@ -23,16 +23,16 @@ class SRE_Match(object):
raise IndexError()
class SRE_Scanner(object):
pattern = ... # type: str
pattern: str
def match(self) -> SRE_Match: ...
def search(self) -> SRE_Match: ...
class SRE_Pattern(object):
pattern = ... # type: str
flags = ... # type: int
groups = ... # type: int
groupindex = ... # type: Mapping[str, int]
indexgroup = ... # type: Sequence[int]
pattern: str
flags: int
groups: int
groupindex: Mapping[str, int]
indexgroup: Sequence[int]
def findall(self, source: str, pos: int = ..., endpos: int = ...) -> List[Union[tuple, str]]: ...
def finditer(self, source: str, pos: int = ..., endpos: int = ...) -> Iterable[Union[tuple, str]]: ...
def match(self, pattern, pos: int = ..., endpos: int = ...) -> SRE_Match: ...

View File

@@ -5,8 +5,8 @@ from typing import Any, AnyStr, Tuple
class error(Exception): ...
class Struct(object):
size = ... # type: int
format = ... # type: str
size: int
format: str
def __init__(self, fmt: str) -> None: ...
def pack_into(self, buffer: bytearray, offset: int, obj: Any) -> None: ...

View File

@@ -1,39 +1,39 @@
from typing import List, Dict
CELL = ... # type: int
DEF_BOUND = ... # type: int
DEF_FREE = ... # type: int
DEF_FREE_CLASS = ... # type: int
DEF_GLOBAL = ... # type: int
DEF_IMPORT = ... # type: int
DEF_LOCAL = ... # type: int
DEF_PARAM = ... # type: int
FREE = ... # type: int
GLOBAL_EXPLICIT = ... # type: int
GLOBAL_IMPLICIT = ... # type: int
LOCAL = ... # type: int
OPT_BARE_EXEC = ... # type: int
OPT_EXEC = ... # type: int
OPT_IMPORT_STAR = ... # type: int
SCOPE_MASK = ... # type: int
SCOPE_OFF = ... # type: int
TYPE_CLASS = ... # type: int
TYPE_FUNCTION = ... # type: int
TYPE_MODULE = ... # type: int
USE = ... # type: int
CELL: int
DEF_BOUND: int
DEF_FREE: int
DEF_FREE_CLASS: int
DEF_GLOBAL: int
DEF_IMPORT: int
DEF_LOCAL: int
DEF_PARAM: int
FREE: int
GLOBAL_EXPLICIT: int
GLOBAL_IMPLICIT: int
LOCAL: int
OPT_BARE_EXEC: int
OPT_EXEC: int
OPT_IMPORT_STAR: int
SCOPE_MASK: int
SCOPE_OFF: int
TYPE_CLASS: int
TYPE_FUNCTION: int
TYPE_MODULE: int
USE: int
class _symtable_entry(object):
...
class symtable(object):
children = ... # type: List[_symtable_entry]
id = ... # type: int
lineno = ... # type: int
name = ... # type: str
nested = ... # type: int
optimized = ... # type: int
symbols = ... # type: Dict[str, int]
type = ... # type: int
varnames = ... # type: List[str]
children: List[_symtable_entry]
id: int
lineno: int
name: str
nested: int
optimized: int
symbols: Dict[str, int]
type: int
varnames: List[str]
def __init__(self, src: str, filename: str, startstr: str) -> None: ...

View File

@@ -1,8 +1,8 @@
from typing import Any, List, Optional, Type
default_action = ... # type: str
filters = ... # type: List[tuple]
once_registry = ... # type: dict
default_action: str
filters: List[tuple]
once_registry: dict
def warn(message: Warning, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...
def warn_explicit(message: Warning, category: Optional[Type[Warning]],

View File

@@ -7,12 +7,12 @@ def abstractmethod(funcobj: Any) -> Any: ...
class ABCMeta(type):
# TODO: FrozenSet
__abstractmethods__ = ... # type: Set[Any]
_abc_cache = ... # type: _weakrefset.WeakSet
_abc_invalidation_counter = ... # type: int
_abc_negative_cache = ... # type: _weakrefset.WeakSet
_abc_negative_cache_version = ... # type: int
_abc_registry = ... # type: _weakrefset.WeakSet
__abstractmethods__: Set[Any]
_abc_cache: _weakrefset.WeakSet
_abc_invalidation_counter: int
_abc_negative_cache: _weakrefset.WeakSet
_abc_negative_cache_version: int
_abc_registry: _weakrefset.WeakSet
def __init__(self, name: str, bases: Tuple[type, ...], namespace: Dict[Any, Any]) -> None: ...
def __instancecheck__(cls: ABCMeta, instance: Any) -> Any: ...
def __subclasscheck__(cls: ABCMeta, subclass: Any) -> Any: ...
@@ -22,8 +22,8 @@ class ABCMeta(type):
# TODO: The real abc.abstractproperty inherits from "property".
class abstractproperty(object):
def __new__(cls, func: Any) -> Any: ...
__isabstractmethod__ = ... # type: bool
doc = ... # type: Any
fdel = ... # type: Any
fget = ... # type: Any
fset = ... # type: Any
__isabstractmethod__: bool
doc: Any
fdel: Any
fget: Any
fset: Any

View File

@@ -9,8 +9,8 @@ from typing import Any, Iterator, Optional, Union
from _ast import *
from _ast import AST, Module
__version__ = ... # type: str
PyCF_ONLY_AST = ... # type: int
__version__: str
PyCF_ONLY_AST: int
def parse(source: Union[str, unicode], filename: Union[str, unicode] = ..., mode: Union[str, unicode] = ...) -> Module: ...

View File

@@ -1,8 +1,8 @@
from typing import Any, IO, List
HIGHEST_PROTOCOL = ... # type: int
compatible_formats = ... # type: List[str]
format_version = ... # type: str
HIGHEST_PROTOCOL: int
compatible_formats: List[str]
format_version: str
class Pickler:
def __init__(self, file: IO[str], protocol: int = ...) -> None: ...

View File

@@ -103,7 +103,7 @@ class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):
_DefaultDictT = TypeVar('_DefaultDictT', bound=defaultdict)
class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
default_factory = ... # type: Callable[[], _VT]
default_factory: Callable[[], _VT]
@overload
def __init__(self, **kwargs: _VT) -> None: ...
@overload

View File

@@ -1,22 +1,22 @@
from typing import Any, Optional
class Cookie:
version = ... # type: Any
name = ... # type: Any
value = ... # type: Any
port = ... # type: Any
port_specified = ... # type: Any
domain = ... # type: Any
domain_specified = ... # type: Any
domain_initial_dot = ... # type: Any
path = ... # type: Any
path_specified = ... # type: Any
secure = ... # type: Any
expires = ... # type: Any
discard = ... # type: Any
comment = ... # type: Any
comment_url = ... # type: Any
rfc2109 = ... # type: Any
version: Any
name: Any
value: Any
port: Any
port_specified: Any
domain: Any
domain_specified: Any
domain_initial_dot: Any
path: Any
path_specified: Any
secure: Any
expires: Any
discard: Any
comment: Any
comment_url: Any
rfc2109: Any
def __init__(self, version, name, value, port, port_specified, domain, domain_specified, domain_initial_dot, path,
path_specified, secure, expires, discard, comment, comment_url, rest, rfc2109: bool = ...): ...
def has_nonstandard_attr(self, name): ...
@@ -31,21 +31,21 @@ class CookiePolicy:
def path_return_ok(self, path, request): ...
class DefaultCookiePolicy(CookiePolicy):
DomainStrictNoDots = ... # type: Any
DomainStrictNonDomain = ... # type: Any
DomainRFC2965Match = ... # type: Any
DomainLiberal = ... # type: Any
DomainStrict = ... # type: Any
netscape = ... # type: Any
rfc2965 = ... # type: Any
rfc2109_as_netscape = ... # type: Any
hide_cookie2 = ... # type: Any
strict_domain = ... # type: Any
strict_rfc2965_unverifiable = ... # type: Any
strict_ns_unverifiable = ... # type: Any
strict_ns_domain = ... # type: Any
strict_ns_set_initial_dollar = ... # type: Any
strict_ns_set_path = ... # type: Any
DomainStrictNoDots: Any
DomainStrictNonDomain: Any
DomainRFC2965Match: Any
DomainLiberal: Any
DomainStrict: Any
netscape: Any
rfc2965: Any
rfc2109_as_netscape: Any
hide_cookie2: Any
strict_domain: Any
strict_rfc2965_unverifiable: Any
strict_ns_unverifiable: Any
strict_ns_domain: Any
strict_ns_set_initial_dollar: Any
strict_ns_set_path: Any
def __init__(self, blocked_domains: Optional[Any] = ..., allowed_domains: Optional[Any] = ..., netscape: bool = ...,
rfc2965: bool = ..., rfc2109_as_netscape: Optional[Any] = ..., hide_cookie2: bool = ...,
strict_domain: bool = ..., strict_rfc2965_unverifiable: bool = ..., strict_ns_unverifiable: bool = ...,
@@ -76,12 +76,12 @@ class DefaultCookiePolicy(CookiePolicy):
class Absent: ...
class CookieJar:
non_word_re = ... # type: Any
quote_re = ... # type: Any
strict_domain_re = ... # type: Any
domain_re = ... # type: Any
dots_re = ... # type: Any
magic_re = ... # type: Any
non_word_re: Any
quote_re: Any
strict_domain_re: Any
domain_re: Any
dots_re: Any
magic_re: Any
def __init__(self, policy: Optional[Any] = ...): ...
def set_policy(self, policy): ...
def add_cookie_header(self, request): ...
@@ -98,8 +98,8 @@ class CookieJar:
class LoadError(IOError): ...
class FileCookieJar(CookieJar):
filename = ... # type: Any
delayload = ... # type: Any
filename: Any
delayload: Any
def __init__(self, filename: Optional[Any] = ..., delayload: bool = ..., policy: Optional[Any] = ...): ...
def save(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...
def load(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...

View File

@@ -6,15 +6,15 @@ def mktime_tz(data): ...
def quote(str): ...
class AddrlistClass:
specials = ... # type: Any
pos = ... # type: Any
LWS = ... # type: Any
CR = ... # type: Any
FWS = ... # type: Any
atomends = ... # type: Any
phraseends = ... # type: Any
field = ... # type: Any
commentlist = ... # type: Any
specials: Any
pos: Any
LWS: Any
CR: Any
FWS: Any
atomends: Any
phraseends: Any
field: Any
commentlist: Any
def __init__(self, field): ...
def gotonext(self): ...
def getaddrlist(self): ...
@@ -30,7 +30,7 @@ class AddrlistClass:
def getphraselist(self): ...
class AddressList(AddrlistClass):
addresslist = ... # type: Any
addresslist: Any
def __init__(self, field): ...
def __len__(self): ...
def __add__(self, other): ...

View File

@@ -1,76 +1,76 @@
from typing import Any, Union, IO
import io
FASYNC = ... # type: int
FD_CLOEXEC = ... # type: int
FASYNC: int
FD_CLOEXEC: int
DN_ACCESS = ... # type: int
DN_ATTRIB = ... # type: int
DN_CREATE = ... # type: int
DN_DELETE = ... # type: int
DN_MODIFY = ... # type: int
DN_MULTISHOT = ... # type: int
DN_RENAME = ... # type: int
F_DUPFD = ... # type: int
F_EXLCK = ... # type: int
F_GETFD = ... # type: int
F_GETFL = ... # type: int
F_GETLEASE = ... # type: int
F_GETLK = ... # type: int
F_GETLK64 = ... # type: int
F_GETOWN = ... # type: int
F_GETSIG = ... # type: int
F_NOTIFY = ... # type: int
F_RDLCK = ... # type: int
F_SETFD = ... # type: int
F_SETFL = ... # type: int
F_SETLEASE = ... # type: int
F_SETLK = ... # type: int
F_SETLK64 = ... # type: int
F_SETLKW = ... # type: int
F_SETLKW64 = ... # type: int
F_SETOWN = ... # type: int
F_SETSIG = ... # type: int
F_SHLCK = ... # type: int
F_UNLCK = ... # type: int
F_WRLCK = ... # type: int
I_ATMARK = ... # type: int
I_CANPUT = ... # type: int
I_CKBAND = ... # type: int
I_FDINSERT = ... # type: int
I_FIND = ... # type: int
I_FLUSH = ... # type: int
I_FLUSHBAND = ... # type: int
I_GETBAND = ... # type: int
I_GETCLTIME = ... # type: int
I_GETSIG = ... # type: int
I_GRDOPT = ... # type: int
I_GWROPT = ... # type: int
I_LINK = ... # type: int
I_LIST = ... # type: int
I_LOOK = ... # type: int
I_NREAD = ... # type: int
I_PEEK = ... # type: int
I_PLINK = ... # type: int
I_POP = ... # type: int
I_PUNLINK = ... # type: int
I_PUSH = ... # type: int
I_RECVFD = ... # type: int
I_SENDFD = ... # type: int
I_SETCLTIME = ... # type: int
I_SETSIG = ... # type: int
I_SRDOPT = ... # type: int
I_STR = ... # type: int
I_SWROPT = ... # type: int
I_UNLINK = ... # type: int
LOCK_EX = ... # type: int
LOCK_MAND = ... # type: int
LOCK_NB = ... # type: int
LOCK_READ = ... # type: int
LOCK_RW = ... # type: int
LOCK_SH = ... # type: int
LOCK_UN = ... # type: int
LOCK_WRITE = ... # type: int
DN_ACCESS: int
DN_ATTRIB: int
DN_CREATE: int
DN_DELETE: int
DN_MODIFY: int
DN_MULTISHOT: int
DN_RENAME: int
F_DUPFD: int
F_EXLCK: int
F_GETFD: int
F_GETFL: int
F_GETLEASE: int
F_GETLK: int
F_GETLK64: int
F_GETOWN: int
F_GETSIG: int
F_NOTIFY: int
F_RDLCK: int
F_SETFD: int
F_SETFL: int
F_SETLEASE: int
F_SETLK: int
F_SETLK64: int
F_SETLKW: int
F_SETLKW64: int
F_SETOWN: int
F_SETSIG: int
F_SHLCK: int
F_UNLCK: int
F_WRLCK: int
I_ATMARK: int
I_CANPUT: int
I_CKBAND: int
I_FDINSERT: int
I_FIND: int
I_FLUSH: int
I_FLUSHBAND: int
I_GETBAND: int
I_GETCLTIME: int
I_GETSIG: int
I_GRDOPT: int
I_GWROPT: int
I_LINK: int
I_LIST: int
I_LOOK: int
I_NREAD: int
I_PEEK: int
I_PLINK: int
I_POP: int
I_PUNLINK: int
I_PUSH: int
I_RECVFD: int
I_SENDFD: int
I_SETCLTIME: int
I_SETSIG: int
I_SRDOPT: int
I_STR: int
I_SWROPT: int
I_UNLINK: int
LOCK_EX: int
LOCK_MAND: int
LOCK_NB: int
LOCK_READ: int
LOCK_RW: int
LOCK_SH: int
LOCK_UN: int
LOCK_WRITE: int
_ANYFILE = Union[int, IO]

View File

@@ -17,8 +17,8 @@ def reduce(function: Callable[[_T, _T], _T],
def reduce(function: Callable[[_T, _S], _T],
sequence: Iterable[_S], initial: _T) -> _T: ...
WRAPPER_ASSIGNMENTS = ... # type: Sequence[str]
WRAPPER_UPDATES = ... # type: Sequence[str]
WRAPPER_ASSIGNMENTS: Sequence[str]
WRAPPER_UPDATES: Sequence[str]
def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ...,
updated: Sequence[str] = ...) -> _AnyCallable: ...
@@ -28,7 +28,7 @@ def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ...
class partial(Generic[_T]):
func = ... # Callable[..., _T]
args = ... # type: Tuple[Any, ...]
keywords = ... # type: Dict[str, Any]
args: Tuple[Any, ...]
keywords: Dict[str, Any]
def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...

View File

@@ -18,12 +18,12 @@ def get_referrers(*objs: Any) -> List[Any]: ...
def get_referents(*objs: Any) -> List[Any]: ...
def is_tracked(obj: Any) -> bool: ...
garbage = ... # type: List[Any]
garbage: List[Any]
DEBUG_STATS = ... # type: int
DEBUG_COLLECTABLE = ... # type: int
DEBUG_UNCOLLECTABLE = ... # type: int
DEBUG_INSTANCES = ... # type: int
DEBUG_OBJECTS = ... # type: int
DEBUG_SAVEALL = ... # type: int
DEBUG_LEAK = ... # type: int
DEBUG_STATS: int
DEBUG_COLLECTABLE: int
DEBUG_UNCOLLECTABLE: int
DEBUG_INSTANCES: int
DEBUG_OBJECTS: int
DEBUG_SAVEALL: int
DEBUG_LEAK: int

View File

@@ -1,8 +1,8 @@
from typing import List, Tuple
class GetoptError(Exception):
opt = ... # type: str
msg = ... # type: str
opt: str
msg: str
def __init__(self, msg: str, opt: str = ...) -> None: ...
def __str__(self) -> str: ...

View File

@@ -29,8 +29,8 @@ class NullTranslations(object):
def install(self, unicode: bool = ..., names: Container[str] = ...) -> None: ...
class GNUTranslations(NullTranslations):
LE_MAGIC = ... # type: int
BE_MAGIC = ... # type: int
LE_MAGIC: int
BE_MAGIC: int
def find(domain: str, localedir: Optional[str] = ..., languages: Optional[Sequence[str]] = ...,
all: Any = ...) -> Optional[Union[str, List[str]]]: ...

View File

@@ -2,24 +2,24 @@ from typing import Any, IO, Text
import io
class GzipFile(io.BufferedIOBase):
myfileobj = ... # type: Any
max_read_chunk = ... # type: Any
mode = ... # type: Any
extrabuf = ... # type: Any
extrasize = ... # type: Any
extrastart = ... # type: Any
name = ... # type: Any
min_readsize = ... # type: Any
compress = ... # type: Any
fileobj = ... # type: Any
offset = ... # type: Any
mtime = ... # type: Any
myfileobj: Any
max_read_chunk: Any
mode: Any
extrabuf: Any
extrasize: Any
extrastart: Any
name: Any
min_readsize: Any
compress: Any
fileobj: Any
offset: Any
mtime: Any
def __init__(self, filename: str = ..., mode: Text = ..., compresslevel: int = ...,
fileobj: IO[str] = ..., mtime: float = ...) -> None: ...
@property
def filename(self): ...
size = ... # type: Any
crc = ... # type: Any
size: Any
crc: Any
def write(self, data): ...
def read(self, size=...): ...
@property

View File

@@ -5,7 +5,7 @@ from typing import Tuple, Union
_DataType = Union[str, unicode, bytearray, buffer, memoryview]
class _hash(object): # This is not actually in the module namespace.
name = ... # type: str
name: str
block_size = 0
digest_size = 0
digestsize = 0
@@ -24,8 +24,8 @@ def sha256(s: _DataType = ...) -> _hash: ...
def sha384(s: _DataType = ...) -> _hash: ...
def sha512(s: _DataType = ...) -> _hash: ...
algorithms = ... # type: Tuple[str, ...]
algorithms_guaranteed = ... # type: Tuple[str, ...]
algorithms_available = ... # type: Tuple[str, ...]
algorithms: Tuple[str, ...]
algorithms_guaranteed: Tuple[str, ...]
algorithms_available: Tuple[str, ...]
def pbkdf2_hmac(name: str, password: str, salt: str, rounds: int, dklen: int = ...) -> str: ...

View File

@@ -1,5 +1,5 @@
from typing import Any, Mapping
name2codepoint = ... # type: Mapping[str, int]
codepoint2name = ... # type: Mapping[int, str]
entitydefs = ... # type: Mapping[str, str]
name2codepoint: Mapping[str, int]
codepoint2name: Mapping[int, str]
entitydefs: Mapping[str, str]

View File

@@ -9,26 +9,26 @@ import ssl
class HTTPMessage(mimetools.Message):
def addcontinue(self, key: str, more: str) -> None: ...
dict = ... # type: Dict[str, str]
dict: Dict[str, str]
def addheader(self, key: str, value: str) -> None: ...
unixfrom = ... # type: str
headers = ... # type: Any
status = ... # type: str
seekable = ... # type: bool
unixfrom: str
headers: Any
status: str
seekable: bool
def readheaders(self) -> None: ...
class HTTPResponse:
fp = ... # type: Any
debuglevel = ... # type: Any
strict = ... # type: Any
msg = ... # type: Any
version = ... # type: Any
status = ... # type: Any
reason = ... # type: Any
chunked = ... # type: Any
chunk_left = ... # type: Any
length = ... # type: Any
will_close = ... # type: Any
fp: Any
debuglevel: Any
strict: Any
msg: Any
version: Any
status: Any
reason: Any
chunked: Any
chunk_left: Any
length: Any
will_close: Any
def __init__(self, sock, debuglevel: int = ..., strict: int = ..., method: Optional[Any] = ...,
buffering: bool = ...) -> None: ...
def begin(self): ...
@@ -49,14 +49,14 @@ class HTTPConnectionProtocol(Protocol):
def __call__(self, host: str, timeout: int = ..., **http_con_args: Any) -> HTTPConnection: ...
class HTTPConnection:
response_class = ... # type: Any
default_port = ... # type: Any
auto_open = ... # type: Any
debuglevel = ... # type: Any
strict = ... # type: Any
timeout = ... # type: Any
source_address = ... # type: Any
sock = ... # type: Any
response_class: Any
default_port: Any
auto_open: Any
debuglevel: Any
strict: Any
timeout: Any
source_address: Any
sock: Any
host: str = ...
port: int = ...
def __init__(self, host, port: Optional[Any] = ..., strict: Optional[Any] = ..., timeout=...,
@@ -73,28 +73,28 @@ class HTTPConnection:
def getresponse(self, buffering: bool = ...): ...
class HTTP:
debuglevel = ... # type: Any
debuglevel: Any
def __init__(self, host: str = ..., port: Optional[Any] = ..., strict: Optional[Any] = ...) -> None: ...
def connect(self, host: Optional[Any] = ..., port: Optional[Any] = ...): ...
def getfile(self): ...
file = ... # type: Any
headers = ... # type: Any
file: Any
headers: Any
def getreply(self, buffering: bool = ...): ...
def close(self): ...
class HTTPSConnection(HTTPConnection):
default_port = ... # type: Any
key_file = ... # type: Any
cert_file = ... # type: Any
default_port: Any
key_file: Any
cert_file: Any
def __init__(self, host, port: Optional[Any] = ..., key_file: Optional[Any] = ..., cert_file: Optional[Any] = ...,
strict: Optional[Any] = ..., timeout=..., source_address: Optional[Any] = ...,
context: Optional[Any] = ...) -> None: ...
sock = ... # type: Any
sock: Any
def connect(self): ...
class HTTPS(HTTP):
key_file = ... # type: Any
cert_file = ... # type: Any
key_file: Any
cert_file: Any
def __init__(self, host: str = ..., port: Optional[Any] = ..., key_file: Optional[Any] = ..., cert_file: Optional[Any] = ..., strict: Optional[Any] = ..., context: Optional[Any] = ...) -> None: ...
class HTTPException(Exception): ...
@@ -102,17 +102,17 @@ class NotConnected(HTTPException): ...
class InvalidURL(HTTPException): ...
class UnknownProtocol(HTTPException):
args = ... # type: Any
version = ... # type: Any
args: Any
version: Any
def __init__(self, version) -> None: ...
class UnknownTransferEncoding(HTTPException): ...
class UnimplementedFileMode(HTTPException): ...
class IncompleteRead(HTTPException):
args = ... # type: Any
partial = ... # type: Any
expected = ... # type: Any
args: Any
partial: Any
expected: Any
def __init__(self, partial, expected: Optional[Any] = ...) -> None: ...
class ImproperConnectionState(HTTPException): ...
@@ -121,14 +121,14 @@ class CannotSendHeader(ImproperConnectionState): ...
class ResponseNotReady(ImproperConnectionState): ...
class BadStatusLine(HTTPException):
args = ... # type: Any
line = ... # type: Any
args: Any
line: Any
def __init__(self, line) -> None: ...
class LineTooLong(HTTPException):
def __init__(self, line_type) -> None: ...
error = ... # type: Any
error: Any
class LineAndFileWrapper:
def __init__(self, line, file) -> None: ...
@@ -139,67 +139,67 @@ class LineAndFileWrapper:
# Constants
responses = ... # type: Dict[int, str]
responses: Dict[int, str]
HTTP_PORT = ... # type: int
HTTPS_PORT = ... # type: int
HTTP_PORT: int
HTTPS_PORT: int
# status codes
# informational
CONTINUE = ... # type: int
SWITCHING_PROTOCOLS = ... # type: int
PROCESSING = ... # type: int
CONTINUE: int
SWITCHING_PROTOCOLS: int
PROCESSING: int
# successful
OK = ... # type: int
CREATED = ... # type: int
ACCEPTED = ... # type: int
NON_AUTHORITATIVE_INFORMATION = ... # type: int
NO_CONTENT = ... # type: int
RESET_CONTENT = ... # type: int
PARTIAL_CONTENT = ... # type: int
MULTI_STATUS = ... # type: int
IM_USED = ... # type: int
OK: int
CREATED: int
ACCEPTED: int
NON_AUTHORITATIVE_INFORMATION: int
NO_CONTENT: int
RESET_CONTENT: int
PARTIAL_CONTENT: int
MULTI_STATUS: int
IM_USED: int
# redirection
MULTIPLE_CHOICES = ... # type: int
MOVED_PERMANENTLY = ... # type: int
FOUND = ... # type: int
SEE_OTHER = ... # type: int
NOT_MODIFIED = ... # type: int
USE_PROXY = ... # type: int
TEMPORARY_REDIRECT = ... # type: int
MULTIPLE_CHOICES: int
MOVED_PERMANENTLY: int
FOUND: int
SEE_OTHER: int
NOT_MODIFIED: int
USE_PROXY: int
TEMPORARY_REDIRECT: int
# client error
BAD_REQUEST = ... # type: int
UNAUTHORIZED = ... # type: int
PAYMENT_REQUIRED = ... # type: int
FORBIDDEN = ... # type: int
NOT_FOUND = ... # type: int
METHOD_NOT_ALLOWED = ... # type: int
NOT_ACCEPTABLE = ... # type: int
PROXY_AUTHENTICATION_REQUIRED = ... # type: int
REQUEST_TIMEOUT = ... # type: int
CONFLICT = ... # type: int
GONE = ... # type: int
LENGTH_REQUIRED = ... # type: int
PRECONDITION_FAILED = ... # type: int
REQUEST_ENTITY_TOO_LARGE = ... # type: int
REQUEST_URI_TOO_LONG = ... # type: int
UNSUPPORTED_MEDIA_TYPE = ... # type: int
REQUESTED_RANGE_NOT_SATISFIABLE = ... # type: int
EXPECTATION_FAILED = ... # type: int
UNPROCESSABLE_ENTITY = ... # type: int
LOCKED = ... # type: int
FAILED_DEPENDENCY = ... # type: int
UPGRADE_REQUIRED = ... # type: int
BAD_REQUEST: int
UNAUTHORIZED: int
PAYMENT_REQUIRED: int
FORBIDDEN: int
NOT_FOUND: int
METHOD_NOT_ALLOWED: int
NOT_ACCEPTABLE: int
PROXY_AUTHENTICATION_REQUIRED: int
REQUEST_TIMEOUT: int
CONFLICT: int
GONE: int
LENGTH_REQUIRED: int
PRECONDITION_FAILED: int
REQUEST_ENTITY_TOO_LARGE: int
REQUEST_URI_TOO_LONG: int
UNSUPPORTED_MEDIA_TYPE: int
REQUESTED_RANGE_NOT_SATISFIABLE: int
EXPECTATION_FAILED: int
UNPROCESSABLE_ENTITY: int
LOCKED: int
FAILED_DEPENDENCY: int
UPGRADE_REQUIRED: int
# server error
INTERNAL_SERVER_ERROR = ... # type: int
NOT_IMPLEMENTED = ... # type: int
BAD_GATEWAY = ... # type: int
SERVICE_UNAVAILABLE = ... # type: int
GATEWAY_TIMEOUT = ... # type: int
HTTP_VERSION_NOT_SUPPORTED = ... # type: int
INSUFFICIENT_STORAGE = ... # type: int
NOT_EXTENDED = ... # type: int
INTERNAL_SERVER_ERROR: int
NOT_IMPLEMENTED: int
BAD_GATEWAY: int
SERVICE_UNAVAILABLE: int
GATEWAY_TIMEOUT: int
HTTP_VERSION_NOT_SUPPORTED: int
INSUFFICIENT_STORAGE: int
NOT_EXTENDED: int

View File

@@ -3,16 +3,16 @@
from typing import List, Optional, Tuple, Iterable, IO, Any
import types
C_BUILTIN = ... # type: int
C_EXTENSION = ... # type: int
IMP_HOOK = ... # type: int
PKG_DIRECTORY = ... # type: int
PY_CODERESOURCE = ... # type: int
PY_COMPILED = ... # type: int
PY_FROZEN = ... # type: int
PY_RESOURCE = ... # type: int
PY_SOURCE = ... # type: int
SEARCH_ERROR = ... # type: int
C_BUILTIN: int
C_EXTENSION: int
IMP_HOOK: int
PKG_DIRECTORY: int
PY_CODERESOURCE: int
PY_COMPILED: int
PY_FROZEN: int
PY_RESOURCE: int
PY_SOURCE: int
SEARCH_ERROR: int
def acquire_lock() -> None: ...
def find_module(name: str, path: Iterable[str] = ...) -> Optional[Tuple[str, str, Tuple[str, str, int]]]: ...

View File

@@ -13,14 +13,14 @@ class BlockFinder:
def tokeneater(self, type: int, token: str, srow_scol: Tuple[int, int],
erow_ecol: Tuple[int, int], line: str) -> None: ...
CO_GENERATOR = ... # type: int
CO_NESTED = ... # type: int
CO_NEWLOCALS = ... # type: int
CO_NOFREE = ... # type: int
CO_OPTIMIZED = ... # type: int
CO_VARARGS = ... # type: int
CO_VARKEYWORDS = ... # type: int
TPFLAGS_IS_ABSTRACT = ... # type: int
CO_GENERATOR: int
CO_NESTED: int
CO_NEWLOCALS: int
CO_NOFREE: int
CO_OPTIMIZED: int
CO_VARARGS: int
CO_VARKEYWORDS: int
TPFLAGS_IS_ABSTRACT: int
ModuleInfo = NamedTuple('ModuleInfo', [('name', str),
('suffix', str),

View File

@@ -26,9 +26,9 @@ def _OpenWrapper(file: Union[str, unicode, int],
errors: unicode = ..., newline: unicode = ...,
closefd: bool = ...) -> IO[Any]: ...
SEEK_SET = ... # type: int
SEEK_CUR = ... # type: int
SEEK_END = ... # type: int
SEEK_SET: int
SEEK_CUR: int
SEEK_END: int
class IOBase(_io._IOBase): ...

View File

@@ -69,14 +69,14 @@ class JSONDecoder(object):
def raw_decode(self, s: Union[Text, bytes], idx: int = ...) -> Tuple[Any, Any]: ...
class JSONEncoder(object):
item_separator = ... # type: str
key_separator = ... # type: str
skipkeys = ... # type: bool
ensure_ascii = ... # type: bool
check_circular = ... # type: bool
allow_nan = ... # type: bool
sort_keys = ... # type: bool
indent = ... # type: Optional[int]
item_separator: str
key_separator: str
skipkeys: bool
ensure_ascii: bool
check_circular: bool
allow_nan: bool
sort_keys: bool
indent: Optional[int]
def __init__(self,
skipkeys: bool = ...,

View File

@@ -2,15 +2,15 @@ from typing import Any
import rfc822
class Message(rfc822.Message):
encodingheader = ... # type: Any
typeheader = ... # type: Any
encodingheader: Any
typeheader: Any
def __init__(self, fp, seekable: int = ...): ...
plisttext = ... # type: Any
type = ... # type: Any
maintype = ... # type: Any
subtype = ... # type: Any
plisttext: Any
type: Any
maintype: Any
subtype: Any
def parsetype(self): ...
plist = ... # type: Any
plist: Any
def parseplist(self): ...
def getplist(self): ...
def getparam(self, name): ...

View File

@@ -14,10 +14,10 @@ from Queue import Queue
class DummyProcess(threading.Thread):
_children = ... # type: weakref.WeakKeyDictionary
_parent = ... # type: threading.Thread
_pid = ... # type: None
_start_called = ... # type: bool
_children: weakref.WeakKeyDictionary
_parent: threading.Thread
_pid: None
_start_called: bool
def __init__(self, group=..., target=..., name=..., args=..., kwargs=...) -> None: ...
@property
def exitcode(self) -> Optional[int]: ...
@@ -27,15 +27,15 @@ Process = DummyProcess
# This should be threading._Condition but threading.pyi exports it as Condition
class Condition(threading.Condition):
notify_all = ... # type: Any
notify_all: Any
class Namespace(object):
def __init__(self, **kwds) -> None: ...
class Value(object):
_typecode = ... # type: Any
_value = ... # type: Any
value = ... # type: Any
_typecode: Any
_value: Any
value: Any
def __init__(self, typecode, value, lock=...) -> None: ...
def _get(self) -> Any: ...
def _set(self, value) -> None: ...

View File

@@ -1,22 +1,22 @@
from Queue import Queue
from typing import Any, List, Optional, Tuple, Type
families = ... # type: List[None]
families: List[None]
class Connection(object):
_in = ... # type: Any
_out = ... # type: Any
recv = ... # type: Any
recv_bytes = ... # type: Any
send = ... # type: Any
send_bytes = ... # type: Any
_in: Any
_out: Any
recv: Any
recv_bytes: Any
send: Any
send_bytes: Any
def __init__(self, _in, _out) -> None: ...
def close(self) -> None: ...
def poll(self, timeout=...) -> Any: ...
class Listener(object):
_backlog_queue = ... # type: Optional[Queue]
address = ... # type: Any
_backlog_queue: Optional[Queue]
address: Any
def __init__(self, address=..., family=..., backlog=...) -> None: ...
def accept(self) -> Connection: ...
def close(self) -> None: ...

View File

@@ -27,7 +27,7 @@ class Process:
def exitcode(self): ...
@property
def ident(self): ...
pid = ... # type: Any
pid: Any
class AuthenticationString(bytes):
def __reduce__(self): ...

View File

@@ -1,8 +1,8 @@
from typing import Any, Optional
import threading
SUBDEBUG = ... # type: Any
SUBWARNING = ... # type: Any
SUBDEBUG: Any
SUBWARNING: Any
def sub_debug(msg, *args): ...
def debug(msg, *args): ...

View File

@@ -6,8 +6,8 @@ from typing import Any, Callable, TypeVar
_ArgType = TypeVar('_ArgType')
class mutex:
locked = ... # type: bool
queue = ... # type: deque
locked: bool
queue: deque
def __init__(self) -> None: ...
def test(self) -> bool: ...
def testandset(self) -> bool: ...

View File

@@ -4,23 +4,23 @@
from typing import Any, Optional, Tuple
__copyright__ = ... # type: Any
DEV_NULL = ... # type: Any
__copyright__: Any
DEV_NULL: Any
def libc_ver(executable=..., lib=..., version=..., chunksize: int = ...): ...
def linux_distribution(distname=..., version=..., id=..., supported_dists=..., full_distribution_name: int = ...): ...
def dist(distname=..., version=..., id=..., supported_dists=...): ...
class _popen:
tmpfile = ... # type: Any
pipe = ... # type: Any
bufsize = ... # type: Any
mode = ... # type: Any
tmpfile: Any
pipe: Any
bufsize: Any
mode: Any
def __init__(self, cmd, mode=..., bufsize: Optional[Any] = ...): ...
def read(self): ...
def readlines(self): ...
def close(self, remove=..., error=...): ...
__del__ = ... # type: Any
__del__: Any
def popen(cmd, mode=..., bufsize: Optional[Any] = ...): ...
def win32_ver(release=..., version=..., csd=..., ptype=...): ...

View File

@@ -4,23 +4,23 @@ _T = TypeVar('_T')
class Popen3:
sts = ... # type: int
cmd = ... # type: Iterable
pid = ... # type: int
tochild = ... # type: TextIO
fromchild = ... # type: TextIO
childerr = ... # type: Optional[TextIO]
sts: int
cmd: Iterable
pid: int
tochild: TextIO
fromchild: TextIO
childerr: Optional[TextIO]
def __init__(self, cmd: Iterable = ..., capturestderr: bool = ..., bufsize: int = ...) -> None: ...
def __del__(self) -> None: ...
def poll(self, _deadstate: _T = ...) -> Union[int, _T]: ...
def wait(self) -> int: ...
class Popen4(Popen3):
childerr = ... # type: None
cmd = ... # type: Iterable
pid = ... # type: int
tochild = ... # type: TextIO
fromchild = ... # type: TextIO
childerr: None
cmd: Iterable
pid: int
tochild: TextIO
fromchild: TextIO
def __init__(self, cmd: Iterable = ..., bufsize: int = ...) -> None: ...
def popen2(cmd: Iterable = ..., bufsize: int = ..., mode: str = ...) -> Tuple[TextIO, TextIO]: ...

View File

@@ -2,55 +2,55 @@ from typing import Dict, List, Mapping, Tuple, Union, Sequence, IO, Optional, Ty
error = OSError
confstr_names = ... # type: Dict[str, int]
environ = ... # type: Dict[str, str]
pathconf_names = ... # type: Dict[str, int]
sysconf_names = ... # type: Dict[str, int]
confstr_names: Dict[str, int]
environ: Dict[str, str]
pathconf_names: Dict[str, int]
sysconf_names: Dict[str, int]
EX_CANTCREAT = ... # type: int
EX_CONFIG = ... # type: int
EX_DATAERR = ... # type: int
EX_IOERR = ... # type: int
EX_NOHOST = ... # type: int
EX_NOINPUT = ... # type: int
EX_NOPERM = ... # type: int
EX_NOUSER = ... # type: int
EX_OK = ... # type: int
EX_OSERR = ... # type: int
EX_OSFILE = ... # type: int
EX_PROTOCOL = ... # type: int
EX_SOFTWARE = ... # type: int
EX_TEMPFAIL = ... # type: int
EX_UNAVAILABLE = ... # type: int
EX_USAGE = ... # type: int
F_OK = ... # type: int
NGROUPS_MAX = ... # type: int
O_APPEND = ... # type: int
O_ASYNC = ... # type: int
O_CREAT = ... # type: int
O_DIRECT = ... # type: int
O_DIRECTORY = ... # type: int
O_DSYNC = ... # type: int
O_EXCL = ... # type: int
O_LARGEFILE = ... # type: int
O_NDELAY = ... # type: int
O_NOATIME = ... # type: int
O_NOCTTY = ... # type: int
O_NOFOLLOW = ... # type: int
O_NONBLOCK = ... # type: int
O_RDONLY = ... # type: int
O_RDWR = ... # type: int
O_RSYNC = ... # type: int
O_SYNC = ... # type: int
O_TRUNC = ... # type: int
O_WRONLY = ... # type: int
R_OK = ... # type: int
TMP_MAX = ... # type: int
WCONTINUED = ... # type: int
WNOHANG = ... # type: int
WUNTRACED = ... # type: int
W_OK = ... # type: int
X_OK = ... # type: int
EX_CANTCREAT: int
EX_CONFIG: int
EX_DATAERR: int
EX_IOERR: int
EX_NOHOST: int
EX_NOINPUT: int
EX_NOPERM: int
EX_NOUSER: int
EX_OK: int
EX_OSERR: int
EX_OSFILE: int
EX_PROTOCOL: int
EX_SOFTWARE: int
EX_TEMPFAIL: int
EX_UNAVAILABLE: int
EX_USAGE: int
F_OK: int
NGROUPS_MAX: int
O_APPEND: int
O_ASYNC: int
O_CREAT: int
O_DIRECT: int
O_DIRECTORY: int
O_DSYNC: int
O_EXCL: int
O_LARGEFILE: int
O_NDELAY: int
O_NOATIME: int
O_NOCTTY: int
O_NOFOLLOW: int
O_NONBLOCK: int
O_RDONLY: int
O_RDWR: int
O_RSYNC: int
O_SYNC: int
O_TRUNC: int
O_WRONLY: int
R_OK: int
TMP_MAX: int
WCONTINUED: int
WNOHANG: int
WUNTRACED: int
W_OK: int
X_OK: int
def WCOREDUMP(status: int) -> bool: ...
def WEXITSTATUS(status: int) -> bool: ...
@@ -62,34 +62,34 @@ def WSTOPSIG(status: int) -> bool: ...
def WTERMSIG(status: int) -> bool: ...
class stat_result(object):
n_fields = ... # type: int
n_sequence_fields = ... # type: int
n_unnamed_fields = ... # type: int
st_mode = ... # type: int
st_ino = ... # type: int
st_dev = ... # type: int
st_nlink = ... # type: int
st_uid = ... # type: int
st_gid = ... # type: int
st_size = ... # type: int
st_atime = ... # type: int
st_mtime = ... # type: int
st_ctime = ... # type: int
n_fields: int
n_sequence_fields: int
n_unnamed_fields: int
st_mode: int
st_ino: int
st_dev: int
st_nlink: int
st_uid: int
st_gid: int
st_size: int
st_atime: int
st_mtime: int
st_ctime: int
class statvfs_result(object):
n_fields = ... # type: int
n_sequence_fields = ... # type: int
n_unnamed_fields = ... # type: int
f_bsize = ... # type: int
f_frsize = ... # type: int
f_blocks = ... # type: int
f_bfree = ... # type: int
f_bavail = ... # type: int
f_files = ... # type: int
f_ffree = ... # type: int
f_favail = ... # type: int
f_flag = ... # type: int
f_namemax = ... # type: int
n_fields: int
n_sequence_fields: int
n_unnamed_fields: int
f_bsize: int
f_frsize: int
f_blocks: int
f_bfree: int
f_bavail: int
f_files: int
f_ffree: int
f_favail: int
f_flag: int
f_namemax: int
def _exit(status: int) -> None: ...
def abort() -> None: ...

View File

@@ -1,15 +1,15 @@
class Repr:
maxarray = ... # type: int
maxdeque = ... # type: int
maxdict = ... # type: int
maxfrozenset = ... # type: int
maxlevel = ... # type: int
maxlist = ... # type: int
maxlong = ... # type: int
maxother = ... # type: int
maxset = ... # type: int
maxstring = ... # type: int
maxtuple = ... # type: int
maxarray: int
maxdeque: int
maxdict: int
maxfrozenset: int
maxlevel: int
maxlist: int
maxlong: int
maxother: int
maxset: int
maxstring: int
maxtuple: int
def __init__(self) -> None: ...
def _repr_iterable(self, x, level: complex, left, right, maxiter, trail=...) -> str: ...
def repr(self, x) -> str: ...
@@ -27,5 +27,5 @@ class Repr:
def _possibly_sorted(x) -> list: ...
aRepr = ... # type: Repr
aRepr: Repr
def repr(x) -> str: ...

View File

@@ -2,22 +2,22 @@ from typing import Tuple, NamedTuple
class error(Exception): ...
RLIM_INFINITY = ... # type: int
RLIM_INFINITY: int
def getrlimit(resource: int) -> Tuple[int, int]: ...
def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ...
RLIMIT_CORE = ... # type: int
RLIMIT_CPU = ... # type: int
RLIMIT_FSIZE = ... # type: int
RLIMIT_DATA = ... # type: int
RLIMIT_STACK = ... # type: int
RLIMIT_RSS = ... # type: int
RLIMIT_NPROC = ... # type: int
RLIMIT_NOFILE = ... # type: int
RLIMIT_OFILE = ... # type: int
RLIMIT_MEMLOCK = ... # type: int
RLIMIT_VMEM = ... # type: int
RLIMIT_AS = ... # type: int
RLIMIT_CORE: int
RLIMIT_CPU: int
RLIMIT_FSIZE: int
RLIMIT_DATA: int
RLIMIT_STACK: int
RLIMIT_RSS: int
RLIMIT_NPROC: int
RLIMIT_NOFILE: int
RLIMIT_OFILE: int
RLIMIT_MEMLOCK: int
RLIMIT_VMEM: int
RLIMIT_AS: int
_RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),
('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),
@@ -28,6 +28,6 @@ _RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_
def getrusage(who: int) -> _RUsage: ...
def getpagesize() -> int: ...
RUSAGE_SELF = ... # type: int
RUSAGE_CHILDREN = ... # type: int
RUSAGE_BOTH = ... # type: int
RUSAGE_SELF: int
RUSAGE_CHILDREN: int
RUSAGE_BOTH: int

View File

@@ -5,16 +5,16 @@
from typing import Any, Optional
class Message:
fp = ... # type: Any
seekable = ... # type: Any
startofheaders = ... # type: Any
startofbody = ... # type: Any
fp: Any
seekable: Any
startofheaders: Any
startofbody: Any
def __init__(self, fp, seekable: int = ...): ...
def rewindbody(self): ...
dict = ... # type: Any
unixfrom = ... # type: Any
headers = ... # type: Any
status = ... # type: Any
dict: Any
unixfrom: Any
headers: Any
status: Any
def readheaders(self): ...
def isheader(self, line): ...
def islast(self, line): ...
@@ -23,7 +23,7 @@ class Message:
def getfirstmatchingheader(self, name): ...
def getrawheader(self, name): ...
def getheader(self, name, default: Optional[Any] = ...): ...
get = ... # type: Any
get: Any
def getheaders(self, name): ...
def getaddr(self, name): ...
def getaddrlist(self, name): ...
@@ -42,14 +42,14 @@ class Message:
def items(self): ...
class AddrlistClass:
specials = ... # type: Any
pos = ... # type: Any
LWS = ... # type: Any
CR = ... # type: Any
atomends = ... # type: Any
phraseends = ... # type: Any
field = ... # type: Any
commentlist = ... # type: Any
specials: Any
pos: Any
LWS: Any
CR: Any
atomends: Any
phraseends: Any
field: Any
commentlist: Any
def __init__(self, field): ...
def gotonext(self): ...
def getaddrlist(self): ...
@@ -65,7 +65,7 @@ class AddrlistClass:
def getphraselist(self): ...
class AddressList(AddrlistClass):
addresslist = ... # type: Any
addresslist: Any
def __init__(self, field): ...
def __len__(self): ...
def __add__(self, other): ...

View File

@@ -1,14 +1,14 @@
from typing import Any, Optional
class _TempModule:
mod_name = ... # type: Any
module = ... # type: Any
mod_name: Any
module: Any
def __init__(self, mod_name): ...
def __enter__(self): ...
def __exit__(self, *args): ...
class _ModifiedArgv0:
value = ... # type: Any
value: Any
def __init__(self, value): ...
def __enter__(self): ...
def __exit__(self, *args): ...

View File

@@ -12,16 +12,16 @@ class shlex:
def pop_source(self) -> IO[Any]: ...
def error_leader(self, file: str = ..., line: int = ...) -> str: ...
commenters = ... # type: str
wordchars = ... # type: str
whitespace = ... # type: str
escape = ... # type: str
quotes = ... # type: str
escapedquotes = ... # type: str
whitespace_split = ... # type: bool
infile = ... # type: IO[Any]
source = ... # type: Optional[str]
debug = ... # type: int
lineno = ... # type: int
token = ... # type: Any
eof = ... # type: Optional[str]
commenters: str
wordchars: str
whitespace: str
escape: str
quotes: str
escapedquotes: str
whitespace_split: bool
infile: IO[Any]
source: Optional[str]
debug: int
lineno: int
token: Any
eof: Optional[str]

View File

@@ -4,21 +4,21 @@ class SMTPException(Exception): ...
class SMTPServerDisconnected(SMTPException): ...
class SMTPResponseException(SMTPException):
smtp_code = ... # type: Any
smtp_error = ... # type: Any
args = ... # type: Any
smtp_code: Any
smtp_error: Any
args: 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: Any
smtp_error: Any
sender: Any
args: Any
def __init__(self, code, msg, sender) -> None: ...
class SMTPRecipientsRefused(SMTPException):
recipients = ... # type: Any
args = ... # type: Any
recipients: Any
args: Any
def __init__(self, recipients) -> None: ...
class SMTPDataError(SMTPResponseException): ...
@@ -30,25 +30,25 @@ def quoteaddr(addr): ...
def quotedata(data): ...
class SSLFakeFile:
sslobj = ... # type: Any
sslobj: Any
def __init__(self, sslobj) -> None: ...
def readline(self, size=...): ...
def close(self): ...
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
local_hostname = ... # type: Any
debuglevel: Any
file: Any
helo_resp: Any
ehlo_msg: Any
ehlo_resp: Any
does_esmtp: Any
default_port: Any
timeout: Any
esmtp_features: Any
local_hostname: Any
def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ...
def set_debuglevel(self, debuglevel): ...
sock = ... # type: Any
sock: Any
def connect(self, host=..., port=...): ...
def send(self, str): ...
def putcmd(self, cmd, args=...): ...
@@ -64,7 +64,7 @@ class SMTP:
def rcpt(self, recip, options=...): ...
def data(self, msg): ...
def verify(self, address): ...
vrfy = ... # type: Any
vrfy: Any
def expn(self, address): ...
def ehlo_or_helo_if_needed(self): ...
def login(self, user, password): ...
@@ -74,13 +74,13 @@ class SMTP:
def quit(self): ...
class SMTP_SSL(SMTP):
default_port = ... # type: Any
keyfile = ... # type: Any
certfile = ... # type: Any
default_port: Any
keyfile: Any
certfile: Any
def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ...
class LMTP(SMTP):
ehlo_msg = ... # type: Any
ehlo_msg: Any
def __init__(self, host=..., port=..., local_hostname=...) -> None: ...
sock = ... # type: Any
sock: Any
def connect(self, host=..., port=...): ...

View File

@@ -2,93 +2,93 @@
from typing import Dict, List, TypeVar
MAGIC = ... # type: int
MAXREPEAT = ... # type: int
MAGIC: int
MAXREPEAT: int
class error(Exception): ...
FAILURE = ... # type: str
SUCCESS = ... # type: str
ANY = ... # type: str
ANY_ALL = ... # type: str
ASSERT = ... # type: str
ASSERT_NOT = ... # type: str
AT = ... # type: str
BIGCHARSET = ... # type: str
BRANCH = ... # type: str
CALL = ... # type: str
CATEGORY = ... # type: str
CHARSET = ... # type: str
GROUPREF = ... # type: str
GROUPREF_IGNORE = ... # type: str
GROUPREF_EXISTS = ... # type: str
IN = ... # type: str
IN_IGNORE = ... # type: str
INFO = ... # type: str
JUMP = ... # type: str
LITERAL = ... # type: str
LITERAL_IGNORE = ... # type: str
MARK = ... # type: str
MAX_REPEAT = ... # type: str
MAX_UNTIL = ... # type: str
MIN_REPEAT = ... # type: str
MIN_UNTIL = ... # type: str
NEGATE = ... # type: str
NOT_LITERAL = ... # type: str
NOT_LITERAL_IGNORE = ... # type: str
RANGE = ... # type: str
REPEAT = ... # type: str
REPEAT_ONE = ... # type: str
SUBPATTERN = ... # type: str
MIN_REPEAT_ONE = ... # type: str
AT_BEGINNING = ... # type: str
AT_BEGINNING_LINE = ... # type: str
AT_BEGINNING_STRING = ... # type: str
AT_BOUNDARY = ... # type: str
AT_NON_BOUNDARY = ... # type: str
AT_END = ... # type: str
AT_END_LINE = ... # type: str
AT_END_STRING = ... # type: str
AT_LOC_BOUNDARY = ... # type: str
AT_LOC_NON_BOUNDARY = ... # type: str
AT_UNI_BOUNDARY = ... # type: str
AT_UNI_NON_BOUNDARY = ... # type: str
CATEGORY_DIGIT = ... # type: str
CATEGORY_NOT_DIGIT = ... # type: str
CATEGORY_SPACE = ... # type: str
CATEGORY_NOT_SPACE = ... # type: str
CATEGORY_WORD = ... # type: str
CATEGORY_NOT_WORD = ... # type: str
CATEGORY_LINEBREAK = ... # type: str
CATEGORY_NOT_LINEBREAK = ... # type: str
CATEGORY_LOC_WORD = ... # type: str
CATEGORY_LOC_NOT_WORD = ... # type: str
CATEGORY_UNI_DIGIT = ... # type: str
CATEGORY_UNI_NOT_DIGIT = ... # type: str
CATEGORY_UNI_SPACE = ... # type: str
CATEGORY_UNI_NOT_SPACE = ... # type: str
CATEGORY_UNI_WORD = ... # type: str
CATEGORY_UNI_NOT_WORD = ... # type: str
CATEGORY_UNI_LINEBREAK = ... # type: str
CATEGORY_UNI_NOT_LINEBREAK = ... # type: str
FAILURE: str
SUCCESS: str
ANY: str
ANY_ALL: str
ASSERT: str
ASSERT_NOT: str
AT: str
BIGCHARSET: str
BRANCH: str
CALL: str
CATEGORY: str
CHARSET: str
GROUPREF: str
GROUPREF_IGNORE: str
GROUPREF_EXISTS: str
IN: str
IN_IGNORE: str
INFO: str
JUMP: str
LITERAL: str
LITERAL_IGNORE: str
MARK: str
MAX_REPEAT: str
MAX_UNTIL: str
MIN_REPEAT: str
MIN_UNTIL: str
NEGATE: str
NOT_LITERAL: str
NOT_LITERAL_IGNORE: str
RANGE: str
REPEAT: str
REPEAT_ONE: str
SUBPATTERN: str
MIN_REPEAT_ONE: str
AT_BEGINNING: str
AT_BEGINNING_LINE: str
AT_BEGINNING_STRING: str
AT_BOUNDARY: str
AT_NON_BOUNDARY: str
AT_END: str
AT_END_LINE: str
AT_END_STRING: str
AT_LOC_BOUNDARY: str
AT_LOC_NON_BOUNDARY: str
AT_UNI_BOUNDARY: str
AT_UNI_NON_BOUNDARY: str
CATEGORY_DIGIT: str
CATEGORY_NOT_DIGIT: str
CATEGORY_SPACE: str
CATEGORY_NOT_SPACE: str
CATEGORY_WORD: str
CATEGORY_NOT_WORD: str
CATEGORY_LINEBREAK: str
CATEGORY_NOT_LINEBREAK: str
CATEGORY_LOC_WORD: str
CATEGORY_LOC_NOT_WORD: str
CATEGORY_UNI_DIGIT: str
CATEGORY_UNI_NOT_DIGIT: str
CATEGORY_UNI_SPACE: str
CATEGORY_UNI_NOT_SPACE: str
CATEGORY_UNI_WORD: str
CATEGORY_UNI_NOT_WORD: str
CATEGORY_UNI_LINEBREAK: str
CATEGORY_UNI_NOT_LINEBREAK: str
_T = TypeVar('_T')
def makedict(list: List[_T]) -> Dict[_T, int]: ...
OP_IGNORE = ... # type: Dict[str, str]
AT_MULTILINE = ... # type: Dict[str, str]
AT_LOCALE = ... # type: Dict[str, str]
AT_UNICODE = ... # type: Dict[str, str]
CH_LOCALE = ... # type: Dict[str, str]
CH_UNICODE = ... # type: Dict[str, str]
SRE_FLAG_TEMPLATE = ... # type: int
SRE_FLAG_IGNORECASE = ... # type: int
SRE_FLAG_LOCALE = ... # type: int
SRE_FLAG_MULTILINE = ... # type: int
SRE_FLAG_DOTALL = ... # type: int
SRE_FLAG_UNICODE = ... # type: int
SRE_FLAG_VERBOSE = ... # type: int
SRE_FLAG_DEBUG = ... # type: int
SRE_INFO_PREFIX = ... # type: int
SRE_INFO_LITERAL = ... # type: int
SRE_INFO_CHARSET = ... # type: int
OP_IGNORE: Dict[str, str]
AT_MULTILINE: Dict[str, str]
AT_LOCALE: Dict[str, str]
AT_UNICODE: Dict[str, str]
CH_LOCALE: Dict[str, str]
CH_UNICODE: Dict[str, str]
SRE_FLAG_TEMPLATE: int
SRE_FLAG_IGNORECASE: int
SRE_FLAG_LOCALE: int
SRE_FLAG_MULTILINE: int
SRE_FLAG_DOTALL: int
SRE_FLAG_UNICODE: int
SRE_FLAG_VERBOSE: int
SRE_FLAG_DEBUG: int
SRE_INFO_PREFIX: int
SRE_INFO_LITERAL: int
SRE_INFO_CHARSET: int

View File

@@ -2,22 +2,22 @@
from typing import Any, Dict, Iterable, List, Match, Optional, Pattern as _Pattern, Set, Tuple, Union
SPECIAL_CHARS = ... # type: str
REPEAT_CHARS = ... # type: str
DIGITS = ... # type: Set
OCTDIGITS = ... # type: Set
HEXDIGITS = ... # type: Set
WHITESPACE = ... # type: Set
ESCAPES = ... # type: Dict[str, Tuple[str, int]]
CATEGORIES = ... # type: Dict[str, Union[Tuple[str, str], Tuple[str, List[Tuple[str, str]]]]]
FLAGS = ... # type: Dict[str, int]
SPECIAL_CHARS: str
REPEAT_CHARS: str
DIGITS: Set
OCTDIGITS: Set
HEXDIGITS: Set
WHITESPACE: Set
ESCAPES: Dict[str, Tuple[str, int]]
CATEGORIES: Dict[str, Union[Tuple[str, str], Tuple[str, List[Tuple[str, str]]]]]
FLAGS: Dict[str, int]
class Pattern:
flags = ... # type: int
open = ... # type: List[int]
groups = ... # type: int
groupdict = ... # type: Dict[str, int]
lookbehind = ... # type: int
flags: int
open: List[int]
groups: int
groupdict: Dict[str, int]
lookbehind: int
def __init__(self) -> None: ...
def opengroup(self, name: str = ...) -> int: ...
def closegroup(self, gid: int) -> None: ...
@@ -32,9 +32,9 @@ _AvType = Union[_OpInType, _OpBranchType, Iterable[SubPattern], _OpGroupRefExist
_CodeType = Union[str, _AvType]
class SubPattern:
pattern = ... # type: str
data = ... # type: List[_CodeType]
width = ... # type: Optional[int]
pattern: str
data: List[_CodeType]
width: Optional[int]
def __init__(self, pattern, data: List[_CodeType] = ...) -> None: ...
def dump(self, level: int = ...) -> None: ...
def __len__(self) -> int: ...
@@ -46,8 +46,8 @@ class SubPattern:
def getwidth(self) -> int: ...
class Tokenizer:
string = ... # type: str
index = ... # type: int
string: str
index: int
def __init__(self, string: str) -> None: ...
def match(self, char: str, skip: int = ...) -> int: ...
def get(self) -> Optional[str]: ...

View File

@@ -4,18 +4,18 @@
from typing import Any, AnyStr, Iterable, List, Mapping, Optional, overload, Sequence, Text, Tuple, Union
ascii_letters = ... # type: str
ascii_lowercase = ... # type: str
ascii_uppercase = ... # type: str
digits = ... # type: str
hexdigits = ... # type: str
letters = ... # type: str
lowercase = ... # type: str
octdigits = ... # type: str
punctuation = ... # type: str
printable = ... # type: str
uppercase = ... # type: str
whitespace = ... # type: str
ascii_letters: str
ascii_lowercase: str
ascii_uppercase: str
digits: str
hexdigits: str
letters: str
lowercase: str
octdigits: str
punctuation: str
printable: str
uppercase: str
whitespace: str
def capwords(s: AnyStr, sep: AnyStr = ...) -> AnyStr: ...
# TODO: originally named 'from'

View File

@@ -1,15 +1,15 @@
# Source: https://hg.python.org/cpython/file/2.7/Lib/stringold.py
from typing import AnyStr, Iterable, List, Optional, Type
whitespace = ... # type: str
lowercase = ... # type: str
uppercase = ... # type: str
letters = ... # type: str
digits = ... # type: str
hexdigits = ... # type: str
octdigits = ... # type: str
_idmap = ... # type: str
_idmapL = ... # type: Optional[List[str]]
whitespace: str
lowercase: str
uppercase: str
letters: str
digits: str
hexdigits: str
octdigits: str
_idmap: str
_idmapL: Optional[List[str]]
index_error = ValueError
atoi_error = ValueError
atof_error = ValueError

View File

@@ -2,9 +2,9 @@
from typing import List, Sequence
lowercase = ... # type: str
uppercase = ... # type: str
whitespace = ... # type: str
lowercase: str
uppercase: str
whitespace: str
def atof(a: str) -> float:
raise DeprecationWarning()

View File

@@ -55,15 +55,15 @@ def check_output(args: _CMD,
startupinfo: Any = ...,
creationflags: int = ...) -> bytes: ...
PIPE = ... # type: int
STDOUT = ... # type: int
PIPE: int
STDOUT: int
class CalledProcessError(Exception):
returncode = 0
# morally: _CMD
cmd = ... # type: Any
cmd: Any
# morally: Optional[bytes]
output = ... # type: Any
output: Any
def __init__(self,
returncode: int,
@@ -71,9 +71,9 @@ class CalledProcessError(Exception):
output: Optional[bytes] = ...) -> None: ...
class Popen:
stdin = ... # type: Optional[IO[Any]]
stdout = ... # type: Optional[IO[Any]]
stderr = ... # type: Optional[IO[Any]]
stdin: Optional[IO[Any]]
stdout: Optional[IO[Any]]
stderr: Optional[IO[Any]]
pid = 0
returncode = 0
@@ -105,11 +105,11 @@ class Popen:
# Windows-only: STARTUPINFO etc.
STD_INPUT_HANDLE = ... # type: Any
STD_OUTPUT_HANDLE = ... # type: Any
STD_ERROR_HANDLE = ... # type: Any
SW_HIDE = ... # type: Any
STARTF_USESTDHANDLES = ... # type: Any
STARTF_USESHOWWINDOW = ... # type: Any
CREATE_NEW_CONSOLE = ... # type: Any
CREATE_NEW_PROCESS_GROUP = ... # type: Any
STD_INPUT_HANDLE: Any
STD_OUTPUT_HANDLE: Any
STD_ERROR_HANDLE: Any
SW_HIDE: Any
STARTF_USESTDHANDLES: Any
STARTF_USESHOWWINDOW: Any
CREATE_NEW_CONSOLE: Any
CREATE_NEW_PROCESS_GROUP: Any

View File

@@ -2,90 +2,90 @@
from typing import Dict
single_input = ... # type: int
file_input = ... # type: int
eval_input = ... # type: int
decorator = ... # type: int
decorators = ... # type: int
decorated = ... # type: int
funcdef = ... # type: int
parameters = ... # type: int
varargslist = ... # type: int
fpdef = ... # type: int
fplist = ... # type: int
stmt = ... # type: int
simple_stmt = ... # type: int
small_stmt = ... # type: int
expr_stmt = ... # type: int
augassign = ... # type: int
print_stmt = ... # type: int
del_stmt = ... # type: int
pass_stmt = ... # type: int
flow_stmt = ... # type: int
break_stmt = ... # type: int
continue_stmt = ... # type: int
return_stmt = ... # type: int
yield_stmt = ... # type: int
raise_stmt = ... # type: int
import_stmt = ... # type: int
import_name = ... # type: int
import_from = ... # type: int
import_as_name = ... # type: int
dotted_as_name = ... # type: int
import_as_names = ... # type: int
dotted_as_names = ... # type: int
dotted_name = ... # type: int
global_stmt = ... # type: int
exec_stmt = ... # type: int
assert_stmt = ... # type: int
compound_stmt = ... # type: int
if_stmt = ... # type: int
while_stmt = ... # type: int
for_stmt = ... # type: int
try_stmt = ... # type: int
with_stmt = ... # type: int
with_item = ... # type: int
except_clause = ... # type: int
suite = ... # type: int
testlist_safe = ... # type: int
old_test = ... # type: int
old_lambdef = ... # type: int
test = ... # type: int
or_test = ... # type: int
and_test = ... # type: int
not_test = ... # type: int
comparison = ... # type: int
comp_op = ... # type: int
expr = ... # type: int
xor_expr = ... # type: int
and_expr = ... # type: int
shift_expr = ... # type: int
arith_expr = ... # type: int
term = ... # type: int
factor = ... # type: int
power = ... # type: int
atom = ... # type: int
listmaker = ... # type: int
testlist_comp = ... # type: int
lambdef = ... # type: int
trailer = ... # type: int
subscriptlist = ... # type: int
subscript = ... # type: int
sliceop = ... # type: int
exprlist = ... # type: int
testlist = ... # type: int
dictorsetmaker = ... # type: int
classdef = ... # type: int
arglist = ... # type: int
argument = ... # type: int
list_iter = ... # type: int
list_for = ... # type: int
list_if = ... # type: int
comp_iter = ... # type: int
comp_for = ... # type: int
comp_if = ... # type: int
testlist1 = ... # type: int
encoding_decl = ... # type: int
yield_expr = ... # type: int
single_input: int
file_input: int
eval_input: int
decorator: int
decorators: int
decorated: int
funcdef: int
parameters: int
varargslist: int
fpdef: int
fplist: int
stmt: int
simple_stmt: int
small_stmt: int
expr_stmt: int
augassign: int
print_stmt: int
del_stmt: int
pass_stmt: int
flow_stmt: int
break_stmt: int
continue_stmt: int
return_stmt: int
yield_stmt: int
raise_stmt: int
import_stmt: int
import_name: int
import_from: int
import_as_name: int
dotted_as_name: int
import_as_names: int
dotted_as_names: int
dotted_name: int
global_stmt: int
exec_stmt: int
assert_stmt: int
compound_stmt: int
if_stmt: int
while_stmt: int
for_stmt: int
try_stmt: int
with_stmt: int
with_item: int
except_clause: int
suite: int
testlist_safe: int
old_test: int
old_lambdef: int
test: int
or_test: int
and_test: int
not_test: int
comparison: int
comp_op: int
expr: int
xor_expr: int
and_expr: int
shift_expr: int
arith_expr: int
term: int
factor: int
power: int
atom: int
listmaker: int
testlist_comp: int
lambdef: int
trailer: int
subscriptlist: int
subscript: int
sliceop: int
exprlist: int
testlist: int
dictorsetmaker: int
classdef: int
arglist: int
argument: int
list_iter: int
list_for: int
list_if: int
comp_iter: int
comp_for: int
comp_if: int
testlist1: int
encoding_decl: int
yield_expr: int
sym_name = ... # type: Dict[int, str]
sym_name: Dict[int, str]

View File

@@ -11,100 +11,100 @@ _ExcInfo = Tuple[Type[BaseException], BaseException, TracebackType]
_OptExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
class _flags:
bytes_warning = ... # type: int
debug = ... # type: int
division_new = ... # type: int
division_warning = ... # type: int
dont_write_bytecode = ... # type: int
hash_randomization = ... # type: int
ignore_environment = ... # type: int
inspect = ... # type: int
interactive = ... # type: int
no_site = ... # type: int
no_user_site = ... # type: int
optimize = ... # type: int
py3k_warning = ... # type: int
tabcheck = ... # type: int
unicode = ... # type: int
verbose = ... # type: int
bytes_warning: int
debug: int
division_new: int
division_warning: int
dont_write_bytecode: int
hash_randomization: int
ignore_environment: int
inspect: int
interactive: int
no_site: int
no_user_site: int
optimize: int
py3k_warning: int
tabcheck: int
unicode: int
verbose: int
class _float_info:
max = ... # type: float
max_exp = ... # type: int
max_10_exp = ... # type: int
min = ... # type: float
min_exp = ... # type: int
min_10_exp = ... # type: int
dig = ... # type: int
mant_dig = ... # type: int
epsilon = ... # type: float
radix = ... # type: int
rounds = ... # type: int
max: float
max_exp: int
max_10_exp: int
min: float
min_exp: int
min_10_exp: int
dig: int
mant_dig: int
epsilon: float
radix: int
rounds: int
class _version_info(Tuple[int, int, int, str, int]):
major = 0
minor = 0
micro = 0
releaselevel = ... # type: str
releaselevel: str
serial = 0
_mercurial = ... # type: Tuple[str, str, str]
api_version = ... # type: int
argv = ... # type: List[str]
builtin_module_names = ... # type: Tuple[str, ...]
byteorder = ... # type: str
copyright = ... # type: str
dont_write_bytecode = ... # type: bool
exec_prefix = ... # type: str
executable = ... # type: str
flags = ... # type: _flags
float_repr_style = ... # type: str
hexversion = ... # type: int
long_info = ... # type: object
maxint = ... # type: int
maxsize = ... # type: int
maxunicode = ... # type: int
modules = ... # type: Dict[str, Any]
path = ... # type: List[str]
platform = ... # type: str
prefix = ... # type: str
py3kwarning = ... # type: bool
__stderr__ = ... # type: IO[str]
__stdin__ = ... # type: IO[str]
__stdout__ = ... # type: IO[str]
stderr = ... # type: IO[str]
stdin = ... # type: IO[str]
stdout = ... # type: IO[str]
subversion = ... # type: Tuple[str, str, str]
version = ... # type: str
warnoptions = ... # type: object
float_info = ... # type: _float_info
version_info = ... # type: _version_info
ps1 = ... # type: str
ps2 = ... # type: str
last_type = ... # type: type
last_value = ... # type: BaseException
last_traceback = ... # type: TracebackType
_mercurial: Tuple[str, str, str]
api_version: int
argv: List[str]
builtin_module_names: Tuple[str, ...]
byteorder: str
copyright: str
dont_write_bytecode: bool
exec_prefix: str
executable: str
flags: _flags
float_repr_style: str
hexversion: int
long_info: object
maxint: int
maxsize: int
maxunicode: int
modules: Dict[str, Any]
path: List[str]
platform: str
prefix: str
py3kwarning: bool
__stderr__: IO[str]
__stdin__: IO[str]
__stdout__: IO[str]
stderr: IO[str]
stdin: IO[str]
stdout: IO[str]
subversion: Tuple[str, str, str]
version: str
warnoptions: object
float_info: _float_info
version_info: _version_info
ps1: str
ps2: str
last_type: type
last_value: BaseException
last_traceback: TracebackType
# TODO precise types
meta_path = ... # type: List[Any]
path_hooks = ... # type: List[Any]
path_importer_cache = ... # type: Dict[str, Any]
displayhook = ... # type: Optional[Callable[[int], None]]
excepthook = ... # type: Optional[Callable[[type, BaseException, TracebackType], None]]
exc_type = ... # type: Optional[type]
exc_value = ... # type: Union[BaseException, ClassType]
exc_traceback = ... # type: TracebackType
meta_path: List[Any]
path_hooks: List[Any]
path_importer_cache: Dict[str, Any]
displayhook: Optional[Callable[[int], None]]
excepthook: Optional[Callable[[type, BaseException, TracebackType], None]]
exc_type: Optional[type]
exc_value: Union[BaseException, ClassType]
exc_traceback: TracebackType
class _WindowsVersionType:
major = ... # type: Any
minor = ... # type: Any
build = ... # type: Any
platform = ... # type: Any
service_pack = ... # type: Any
service_pack_major = ... # type: Any
service_pack_minor = ... # type: Any
suite_mask = ... # type: Any
product_type = ... # type: Any
major: Any
minor: Any
build: Any
platform: Any
service_pack: Any
service_pack_major: Any
service_pack_minor: Any
suite_mask: Any
product_type: Any
def getwindowsversion() -> _WindowsVersionType: ...

View File

@@ -2,10 +2,10 @@ from typing import Any, AnyStr, IO, Iterable, Iterator, List, Optional, overload
from thread import LockType
from random import Random
TMP_MAX = ... # type: int
tempdir = ... # type: str
template = ... # type: str
_name_sequence = ... # type: Optional[_RandomNameSequence]
TMP_MAX: int
tempdir: str
template: str
_name_sequence: Optional[_RandomNameSequence]
class _RandomNameSequence:
characters: str = ...
@@ -81,7 +81,7 @@ def SpooledTemporaryFile(
...
class TemporaryDirectory:
name = ... # type: Any # Can be str or unicode
name: Any
def __init__(self,
suffix: Union[bytes, unicode] = ...,
prefix: Union[bytes, unicode] = ...,

View File

@@ -2,113 +2,113 @@
from typing import Any, Callable, Dict, Generator, Iterator, List, Tuple, Union, Iterable
__author__ = ... # type: str
__credits__ = ... # type: str
__author__: str
__credits__: str
AMPER = ... # type: int
AMPEREQUAL = ... # type: int
AT = ... # type: int
BACKQUOTE = ... # type: int
Binnumber = ... # type: str
Bracket = ... # type: str
CIRCUMFLEX = ... # type: int
CIRCUMFLEXEQUAL = ... # type: int
COLON = ... # type: int
COMMA = ... # type: int
COMMENT = ... # type: int
Comment = ... # type: str
ContStr = ... # type: str
DEDENT = ... # type: int
DOT = ... # type: int
DOUBLESLASH = ... # type: int
DOUBLESLASHEQUAL = ... # type: int
DOUBLESTAR = ... # type: int
DOUBLESTAREQUAL = ... # type: int
Decnumber = ... # type: str
Double = ... # type: str
Double3 = ... # type: str
ENDMARKER = ... # type: int
EQEQUAL = ... # type: int
EQUAL = ... # type: int
ERRORTOKEN = ... # type: int
Expfloat = ... # type: str
Exponent = ... # type: str
Floatnumber = ... # type: str
Funny = ... # type: str
GREATER = ... # type: int
GREATEREQUAL = ... # type: int
Hexnumber = ... # type: str
INDENT = ... # type: int
AMPER: int
AMPEREQUAL: int
AT: int
BACKQUOTE: int
Binnumber: str
Bracket: str
CIRCUMFLEX: int
CIRCUMFLEXEQUAL: int
COLON: int
COMMA: int
COMMENT: int
Comment: str
ContStr: str
DEDENT: int
DOT: int
DOUBLESLASH: int
DOUBLESLASHEQUAL: int
DOUBLESTAR: int
DOUBLESTAREQUAL: int
Decnumber: str
Double: str
Double3: str
ENDMARKER: int
EQEQUAL: int
EQUAL: int
ERRORTOKEN: int
Expfloat: str
Exponent: str
Floatnumber: str
Funny: str
GREATER: int
GREATEREQUAL: int
Hexnumber: str
INDENT: int
def ISEOF(x: int) -> bool: ...
def ISNONTERMINAL(x: int) -> bool: ...
def ISTERMINAL(x: int) -> bool: ...
Ignore = ... # type: str
Imagnumber = ... # type: str
Intnumber = ... # type: str
LBRACE = ... # type: int
LEFTSHIFT = ... # type: int
LEFTSHIFTEQUAL = ... # type: int
LESS = ... # type: int
LESSEQUAL = ... # type: int
LPAR = ... # type: int
LSQB = ... # type: int
MINEQUAL = ... # type: int
MINUS = ... # type: int
NAME = ... # type: int
NEWLINE = ... # type: int
NL = ... # type: int
NOTEQUAL = ... # type: int
NT_OFFSET = ... # type: int
NUMBER = ... # type: int
N_TOKENS = ... # type: int
Name = ... # type: str
Number = ... # type: str
OP = ... # type: int
Octnumber = ... # type: str
Operator = ... # type: str
PERCENT = ... # type: int
PERCENTEQUAL = ... # type: int
PLUS = ... # type: int
PLUSEQUAL = ... # type: int
PlainToken = ... # type: str
Pointfloat = ... # type: str
PseudoExtras = ... # type: str
PseudoToken = ... # type: str
RBRACE = ... # type: int
RIGHTSHIFT = ... # type: int
RIGHTSHIFTEQUAL = ... # type: int
RPAR = ... # type: int
RSQB = ... # type: int
SEMI = ... # type: int
SLASH = ... # type: int
SLASHEQUAL = ... # type: int
STAR = ... # type: int
STAREQUAL = ... # type: int
STRING = ... # type: int
Single = ... # type: str
Single3 = ... # type: str
Special = ... # type: str
String = ... # type: str
TILDE = ... # type: int
Token = ... # type: str
Triple = ... # type: str
VBAR = ... # type: int
VBAREQUAL = ... # type: int
Whitespace = ... # type: str
chain = ... # type: type
double3prog = ... # type: type
endprogs = ... # type: Dict[str, Any]
pseudoprog = ... # type: type
single3prog = ... # type: type
single_quoted = ... # type: Dict[str, str]
t = ... # type: str
tabsize = ... # type: int
tok_name = ... # type: Dict[int, str]
tokenprog = ... # type: type
triple_quoted = ... # type: Dict[str, str]
x = ... # type: str
Ignore: str
Imagnumber: str
Intnumber: str
LBRACE: int
LEFTSHIFT: int
LEFTSHIFTEQUAL: int
LESS: int
LESSEQUAL: int
LPAR: int
LSQB: int
MINEQUAL: int
MINUS: int
NAME: int
NEWLINE: int
NL: int
NOTEQUAL: int
NT_OFFSET: int
NUMBER: int
N_TOKENS: int
Name: str
Number: str
OP: int
Octnumber: str
Operator: str
PERCENT: int
PERCENTEQUAL: int
PLUS: int
PLUSEQUAL: int
PlainToken: str
Pointfloat: str
PseudoExtras: str
PseudoToken: str
RBRACE: int
RIGHTSHIFT: int
RIGHTSHIFTEQUAL: int
RPAR: int
RSQB: int
SEMI: int
SLASH: int
SLASHEQUAL: int
STAR: int
STAREQUAL: int
STRING: int
Single: str
Single3: str
Special: str
String: str
TILDE: int
Token: str
Triple: str
VBAR: int
VBAREQUAL: int
Whitespace: str
chain: type
double3prog: type
endprogs: Dict[str, Any]
pseudoprog: type
single3prog: type
single_quoted: Dict[str, str]
t: str
tabsize: int
tok_name: Dict[int, str]
tokenprog: type
triple_quoted: Dict[str, str]
x: str
_Pos = Tuple[int, int]
_TokenType = Tuple[int, str, _Pos, _Pos, str]
@@ -127,9 +127,9 @@ class StopTokenizing(Exception): ...
class TokenError(Exception): ...
class Untokenizer:
prev_col = ... # type: int
prev_row = ... # type: int
tokens = ... # type: List[str]
prev_col: int
prev_row: int
tokens: List[str]
def __init__(self) -> None: ...
def add_whitespace(self, _Pos) -> None: ...
def compat(self, token: Tuple[int, Any], iterable: Iterator[_TokenType]) -> None: ...

View File

@@ -19,7 +19,7 @@ BooleanType = bool
ComplexType = complex
StringType = str
UnicodeType = unicode
StringTypes = ... # type: Tuple[Type[StringType], Type[UnicodeType]]
StringTypes: Tuple[Type[StringType], Type[UnicodeType]]
BufferType = buffer
TupleType = tuple
ListType = list
@@ -27,16 +27,16 @@ DictType = dict
DictionaryType = dict
class _Cell:
cell_contents = ... # type: Any
cell_contents: Any
class FunctionType:
func_closure = ... # type: Optional[Tuple[_Cell, ...]]
func_code = ... # type: CodeType
func_defaults = ... # type: Optional[Tuple[Any, ...]]
func_dict = ... # type: Dict[str, Any]
func_doc = ... # type: Optional[str]
func_globals = ... # type: Dict[str, Any]
func_name = ... # type: str
func_closure: Optional[Tuple[_Cell, ...]] = ...
func_code: CodeType = ...
func_defaults: Optional[Tuple[Any, ...]] = ...
func_dict: Dict[str, Any] = ...
func_doc: Optional[str] = ...
func_globals: Dict[str, Any] = ...
func_name: str = ...
__closure__ = func_closure
__code__ = func_code
__defaults__ = func_defaults
@@ -49,25 +49,25 @@ class FunctionType:
LambdaType = FunctionType
class CodeType:
co_argcount = ... # type: int
co_cellvars = ... # type: Tuple[str, ...]
co_code = ... # type: str
co_consts = ... # type: Tuple[Any, ...]
co_filename = ... # type: str
co_firstlineno = ... # type: int
co_flags = ... # type: int
co_freevars = ... # type: Tuple[str, ...]
co_lnotab = ... # type: str
co_name = ... # type: str
co_names = ... # type: Tuple[str, ...]
co_nlocals = ... # type: int
co_stacksize = ... # type: int
co_varnames = ... # type: Tuple[str, ...]
co_argcount: int
co_cellvars: Tuple[str, ...]
co_code: str
co_consts: Tuple[Any, ...]
co_filename: str
co_firstlineno: int
co_flags: int
co_freevars: Tuple[str, ...]
co_lnotab: str
co_name: str
co_names: Tuple[str, ...]
co_nlocals: int
co_stacksize: int
co_varnames: Tuple[str, ...]
class GeneratorType:
gi_code = ... # type: CodeType
gi_frame = ... # type: FrameType
gi_running = ... # type: int
gi_code: CodeType
gi_frame: FrameType
gi_running: int
def __iter__(self) -> GeneratorType: ...
def close(self) -> None: ...
def next(self) -> Any: ...
@@ -79,10 +79,10 @@ class GeneratorType:
class ClassType: ...
class UnboundMethodType:
im_class = ... # type: type
im_func = ... # type: FunctionType
im_self = ... # type: object
__name__ = ... # type: str
im_class: type = ...
im_func: FunctionType = ...
im_self: object = ...
__name__: str
__func__ = im_func
__self__ = im_self
def __init__(self, func: Callable, obj: object) -> None: ...
@@ -93,40 +93,40 @@ class InstanceType(object): ...
MethodType = UnboundMethodType
class BuiltinFunctionType:
__self__ = ... # type: Optional[object]
__self__: Optional[object]
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
BuiltinMethodType = BuiltinFunctionType
class ModuleType:
__doc__ = ... # type: Optional[str]
__file__ = ... # type: Optional[str]
__name__ = ... # type: str
__package__ = ... # type: Optional[str]
__path__ = ... # type: Optional[Iterable[str]]
__dict__ = ... # type: Dict[str, Any]
__doc__: Optional[str]
__file__: Optional[str]
__name__: str
__package__: Optional[str]
__path__: Optional[Iterable[str]]
__dict__: Dict[str, Any]
def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...
FileType = file
XRangeType = xrange
class TracebackType:
tb_frame = ... # type: FrameType
tb_lasti = ... # type: int
tb_lineno = ... # type: int
tb_next = ... # type: TracebackType
tb_frame: FrameType
tb_lasti: int
tb_lineno: int
tb_next: TracebackType
class FrameType:
f_back = ... # type: FrameType
f_builtins = ... # type: Dict[str, Any]
f_code = ... # type: CodeType
f_exc_type = ... # type: None
f_exc_value = ... # type: None
f_exc_traceback = ... # type: None
f_globals = ... # type: Dict[str, Any]
f_lasti = ... # type: int
f_lineno = ... # type: int
f_locals = ... # type: Dict[str, Any]
f_restricted = ... # type: bool
f_trace = ... # type: Callable[[], None]
f_back: FrameType
f_builtins: Dict[str, Any]
f_code: CodeType
f_exc_type: None
f_exc_value: None
f_exc_traceback: None
f_globals: Dict[str, Any]
f_lasti: int
f_lineno: int
f_locals: Dict[str, Any]
f_restricted: bool
f_trace: Callable[[], None]
def clear(self) -> None: ...
@@ -153,15 +153,15 @@ class DictProxyType:
class NotImplementedType: ...
class GetSetDescriptorType:
__name__ = ... # type: str
__objclass__ = ... # type: type
__name__: str
__objclass__: type
def __get__(self, obj: Any, type: type = ...) -> Any: ...
def __set__(self, obj: Any) -> None: ...
def __delete__(self, obj: Any) -> None: ...
# Same type on Jython, different on CPython and PyPy, unknown on IronPython.
class MemberDescriptorType:
__name__ = ... # type: str
__objclass__ = ... # type: type
__name__: str
__objclass__: type
def __get__(self, obj: Any, type: type = ...) -> Any: ...
def __set__(self, obj: Any) -> None: ...
def __delete__(self, obj: Any) -> None: ...

View File

@@ -451,7 +451,7 @@ def cast(tp: str, obj: Any) -> Any: ...
# NamedTuple is special-cased in the type checker
class NamedTuple(tuple):
_fields = ... # type: Tuple[str, ...]
_fields: Tuple[str, ...]
def __init__(self, typename: Text, fields: Iterable[Tuple[Text, Any]] = ..., *,
verbose: bool = ..., rename: bool = ..., **kwargs: Any) -> None: ...

View File

@@ -25,15 +25,15 @@ class Testable(metaclass=ABCMeta):
# TODO ABC for test runners?
class TestResult:
errors = ... # type: List[Tuple[Testable, str]]
failures = ... # type: List[Tuple[Testable, str]]
skipped = ... # type: List[Tuple[Testable, str]]
expectedFailures = ... # type: List[Tuple[Testable, str]]
unexpectedSuccesses = ... # type: List[Testable]
shouldStop = ... # type: bool
testsRun = ... # type: int
buffer = ... # type: bool
failfast = ... # type: bool
errors: List[Tuple[Testable, str]]
failures: List[Tuple[Testable, str]]
skipped: List[Tuple[Testable, str]]
expectedFailures: List[Tuple[Testable, str]]
unexpectedSuccesses: List[Testable]
shouldStop: bool
testsRun: int
buffer: bool
failfast: bool
def wasSuccessful(self) -> bool: ...
def stop(self) -> None: ...
@@ -49,22 +49,22 @@ class TestResult:
def addUnexpectedSuccess(self, test: Testable) -> None: ...
class _AssertRaisesBaseContext:
expected = ... # type: Any
failureException = ... # type: Type[BaseException]
obj_name = ... # type: str
expected_regex = ... # type: Pattern[str]
expected: Any
failureException: Type[BaseException]
obj_name: str
expected_regex: Pattern[str]
class _AssertRaisesContext(_AssertRaisesBaseContext):
exception = ... # type: Any # TODO precise type
exception: Any
def __enter__(self) -> _AssertRaisesContext: ...
def __exit__(self, exc_type, exc_value, tb) -> bool: ...
class TestCase(Testable):
failureException = ... # type: Type[BaseException]
longMessage = ... # type: bool
maxDiff = ... # type: Optional[int]
failureException: Type[BaseException]
longMessage: bool
maxDiff: Optional[int]
# undocumented
_testMethodName = ... # type: str
_testMethodName: str
def __init__(self, methodName: str = ...) -> None: ...
def setUp(self) -> None: ...
def tearDown(self) -> None: ...
@@ -189,9 +189,9 @@ class TestSuite(Testable):
def __iter__(self) -> Iterator[Testable]: ...
class TestLoader:
testMethodPrefix = ... # type: str
sortTestMethodsUsing = ... # type: Optional[Callable[[str, str], int]]
suiteClass = ... # type: Callable[[List[TestCase]], TestSuite]
testMethodPrefix: str
sortTestMethodsUsing: Optional[Callable[[str, str], int]]
suiteClass: Callable[[List[TestCase]], TestSuite]
def loadTestsFromTestCase(self,
testCaseClass: Type[TestCase]) -> TestSuite: ...
def loadTestsFromModule(self, module: types.ModuleType = ...,
@@ -204,7 +204,7 @@ class TestLoader:
top_level_dir: Optional[str] = ...) -> TestSuite: ...
def getTestCaseNames(self, testCaseClass: Type[TestCase] = ...) -> List[str]: ...
defaultTestLoader = ... # type: TestLoader
defaultTestLoader: TestLoader
class TextTestResult(TestResult):
def __init__(self, stream: TextIO, descriptions: bool, verbosity: int) -> None: ...
@@ -226,7 +226,7 @@ def skip(reason: Union[str, unicode]) -> Any: ...
# not really documented
class TestProgram:
result = ... # type: TestResult
result: TestResult
def runTests(self) -> None: ... # undocumented
def main(module: Union[None, Text, types.ModuleType] = ..., defaultTest: Optional[str] = ...,
@@ -247,4 +247,4 @@ def removeHandler() -> None: ...
def removeHandler(function: Callable[..., Any]) -> Callable[..., Any]: ...
# private but occasionally used
util = ... # type: types.ModuleType
util: types.ModuleType

View File

@@ -7,24 +7,24 @@ def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ...
def urlcleanup() -> None: ...
class ContentTooShortError(IOError):
content = ... # type: Any
content: Any
def __init__(self, message, content) -> None: ...
class URLopener:
version = ... # type: Any
proxies = ... # type: Any
key_file = ... # type: Any
cert_file = ... # type: Any
context = ... # type: Any
addheaders = ... # type: Any
tempcache = ... # type: Any
ftpcache = ... # type: Any
version: Any
proxies: Any
key_file: Any
cert_file: Any
context: Any
addheaders: Any
tempcache: Any
ftpcache: Any
def __init__(self, proxies: Mapping[str, str] = ..., context=..., **x509) -> None: ...
def __del__(self): ...
def close(self): ...
def cleanup(self): ...
def addheader(self, *args): ...
type = ... # type: Any
type: Any
def open(self, fullurl: str, data=...): ...
def open_unknown(self, fullurl, data=...): ...
def open_unknown_proxy(self, proxy, fullurl, data=...): ...
@@ -39,9 +39,9 @@ class URLopener:
def open_data(self, url, data=...): ...
class FancyURLopener(URLopener):
auth_cache = ... # type: Any
tries = ... # type: Any
maxtries = ... # type: Any
auth_cache: Any
tries: Any
maxtries: Any
def __init__(self, *args, **kwargs) -> None: ...
def http_error_default(self, url, fp, errcode, errmsg, headers): ...
def http_error_302(self, url, fp, errcode, errmsg, headers, data=...): ...
@@ -59,17 +59,17 @@ class FancyURLopener(URLopener):
def prompt_user_passwd(self, host, realm): ...
class ftpwrapper:
user = ... # type: Any
passwd = ... # type: Any
host = ... # type: Any
port = ... # type: Any
dirs = ... # type: Any
timeout = ... # type: Any
refcount = ... # type: Any
keepalive = ... # type: Any
user: Any
passwd: Any
host: Any
port: Any
dirs: Any
timeout: Any
refcount: Any
keepalive: Any
def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=...) -> None: ...
busy = ... # type: Any
ftp = ... # type: Any
busy: Any
ftp: Any
def init(self): ...
def retrfile(self, file, type): ...
def endtransfer(self): ...
@@ -80,7 +80,7 @@ class ftpwrapper:
_AIUT = TypeVar("_AIUT", bound=addbase)
class addbase:
fp = ... # type: Any
fp: Any
def read(self, n: int = ...) -> bytes: ...
def readline(self, limit: int = ...) -> bytes: ...
def readlines(self, hint: int = ...) -> List[bytes]: ...
@@ -91,20 +91,20 @@ class addbase:
def close(self) -> None: ...
class addclosehook(addbase):
closehook = ... # type: Any
hookargs = ... # type: Any
closehook: Any
hookargs: Any
def __init__(self, fp, closehook, *hookargs) -> None: ...
def close(self): ...
class addinfo(addbase):
headers = ... # type: Any
headers: Any
def __init__(self, fp, headers) -> None: ...
def info(self): ...
class addinfourl(addbase):
headers = ... # type: Any
url = ... # type: Any
code = ... # type: Any
headers: Any
url: Any
code: Any
def __init__(self, fp, headers, url, code=...) -> None: ...
def info(self): ...
def getcode(self): ...

View File

@@ -7,20 +7,20 @@ from httplib import HTTPConnectionProtocol, HTTPResponse
_string = Union[str, unicode]
class URLError(IOError):
reason = ... # type: Union[str, BaseException]
reason: Union[str, BaseException]
class HTTPError(URLError, addinfourl):
code = ... # type: int
code: int
headers: Mapping[str, str]
def __init__(self, url, code: int, msg: str, hdrs: Mapping[str, str], fp: addinfourl) -> None: ...
class Request(object):
host = ... # type: str
port = ... # type: str
data = ... # type: str
headers = ... # type: Dict[str, str]
unverifiable = ... # type: bool
type = ... # type: Optional[str]
host: str
port: str
data: str
headers: Dict[str, str]
unverifiable: bool
type: Optional[str]
origin_req_host = ...
unredirected_hdrs: Dict[str, str]
@@ -61,8 +61,8 @@ def install_opener(opener: OpenerDirector) -> None: ...
def build_opener(*handlers: Union[BaseHandler, Type[BaseHandler]]) -> OpenerDirector: ...
class BaseHandler:
handler_order = ... # type: int
parent = ... # type: OpenerDirector
handler_order: int
parent: OpenerDirector
def add_parent(self, parent: OpenerDirector) -> None: ...
def close(self) -> None: ...
@@ -75,14 +75,14 @@ class HTTPDefaultErrorHandler(BaseHandler):
def http_error_default(self, req: Request, fp: addinfourl, code: int, msg: str, hdrs: Mapping[str, str]): ...
class HTTPRedirectHandler(BaseHandler):
max_repeats = ... # type: int
max_redirections = ... # type: int
max_repeats: int
max_redirections: int
def redirect_request(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str], newurl): ...
def http_error_301(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
def http_error_302(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
def http_error_303(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
def http_error_307(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
inf_msg = ... # type: str
inf_msg: str
class ProxyHandler(BaseHandler):
@@ -107,11 +107,11 @@ class AbstractBasicAuthHandler:
def retry_http_basic_auth(self, host, req: Request, realm): ...
class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
auth_header = ... # type: str
auth_header: str
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
auth_header = ... # type: str
auth_header: str
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
class AbstractDigestAuthHandler:
@@ -127,13 +127,13 @@ class AbstractDigestAuthHandler:
def get_entity_digest(self, data: Optional[bytes], chal: Mapping[str, str]) -> Optional[str]: ...
class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
auth_header = ... # type: str
handler_order = ... # type: int
auth_header: str
handler_order: int
def http_error_401(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler):
auth_header = ... # type: str
handler_order = ... # type: int
auth_header: str
handler_order: int
def http_error_407(self, req: Request, fp: addinfourl, code: int, msg: str, headers: Mapping[str, str]): ...
class AbstractHTTPHandler(BaseHandler): # undocumented

View File

@@ -4,13 +4,13 @@ from typing import AnyStr, Dict, List, NamedTuple, Tuple, Sequence, Union, overl
_String = Union[str, unicode]
uses_relative = ... # type: List[str]
uses_netloc = ... # type: List[str]
uses_params = ... # type: List[str]
non_hierarchical = ... # type: List[str]
uses_query = ... # type: List[str]
uses_fragment = ... # type: List[str]
scheme_chars = ... # type: str
uses_relative: List[str]
uses_netloc: List[str]
uses_params: List[str]
non_hierarchical: List[str]
uses_query: List[str]
uses_fragment: List[str]
scheme_chars: str
MAX_CACHE_SIZE = 0
def clear_cache() -> None: ...

View File

@@ -18,42 +18,42 @@ _hostDesc = Union[str, Tuple[str, Mapping[Any, Any]]]
def escape(s: AnyStr, replace: Callable[[AnyStr, AnyStr, AnyStr], AnyStr] = ...) -> AnyStr: ...
MAXINT = ... # type: int
MININT = ... # type: int
PARSE_ERROR = ... # type: int
SERVER_ERROR = ... # type: int
APPLICATION_ERROR = ... # type: int
SYSTEM_ERROR = ... # type: int
TRANSPORT_ERROR = ... # type: int
NOT_WELLFORMED_ERROR = ... # type: int
UNSUPPORTED_ENCODING = ... # type: int
INVALID_ENCODING_CHAR = ... # type: int
INVALID_XMLRPC = ... # type: int
METHOD_NOT_FOUND = ... # type: int
INVALID_METHOD_PARAMS = ... # type: int
INTERNAL_ERROR = ... # type: int
MAXINT: int
MININT: int
PARSE_ERROR: int
SERVER_ERROR: int
APPLICATION_ERROR: int
SYSTEM_ERROR: int
TRANSPORT_ERROR: int
NOT_WELLFORMED_ERROR: int
UNSUPPORTED_ENCODING: int
INVALID_ENCODING_CHAR: int
INVALID_XMLRPC: int
METHOD_NOT_FOUND: int
INVALID_METHOD_PARAMS: int
INTERNAL_ERROR: int
class Error(Exception): ...
class ProtocolError(Error):
url = ... # type: str
errcode = ... # type: int
errmsg = ... # type: str
headers = ... # type: Any
url: str
errcode: int
errmsg: str
headers: Any
def __init__(self, url: str, errcode: int, errmsg: str, headers: Any) -> None: ...
class ResponseError(Error): ...
class Fault(Error):
faultCode = ... # type: Any
faultString = ... # type: str
faultCode: Any
faultString: str
def __init__(self, faultCode: Any, faultString: str, **extra: Any) -> None: ...
boolean = ... # type: Type[bool]
Boolean = ... # type: Type[bool]
boolean: Type[bool]
Boolean: Type[bool]
class DateTime:
value = ... # type: str
value: str
def __init__(self, value: Union[str, unicode, datetime, float, int, _timeTuple, struct_time] = ...) -> None: ...
def make_comparable(self, other: _dateTimeComp) -> Tuple[_dateTimeComp, _dateTimeComp]: ...
def __lt__(self, other: _dateTimeComp) -> bool: ...
@@ -68,18 +68,18 @@ class DateTime:
def encode(self, out: IO) -> None: ...
class Binary:
data = ... # type: str
data: str
def __init__(self, data: Optional[str] = ...) -> None: ...
def __cmp__(self, other: Any) -> int: ...
def decode(self, data: str) -> None: ...
def encode(self, out: IO) -> None: ...
WRAPPERS = ... # type: tuple
WRAPPERS: tuple
# Still part of the public API, but see http://bugs.python.org/issue1773632
FastParser = ... # type: None
FastUnmarshaller = ... # type: None
FastMarshaller = ... # type: None
FastParser: None
FastUnmarshaller: None
FastMarshaller: None
# xmlrpclib.py will leave ExpatParser undefined if it can't import expat from
# xml.parsers. Because this is Python 2.7, the import will succeed.
@@ -90,20 +90,20 @@ class ExpatParser:
# TODO: Add xmllib.XMLParser as base class
class SlowParser:
handle_xml = ... # type: Callable[[str, bool], None]
unknown_starttag = ... # type: Callable[[str, Any], None]
handle_data = ... # type: Callable[[str], None]
handle_cdata = ... # type: Callable[[str], None]
unknown_endtag = ... # type: Callable[[str, Callable[[Iterable[str], str], str]], None]
handle_xml: Callable[[str, bool], None]
unknown_starttag: Callable[[str, Any], None]
handle_data: Callable[[str], None]
handle_cdata: Callable[[str], None]
unknown_endtag: Callable[[str, Callable[[Iterable[str], str], str]], None]
def __init__(self, target: _Unmarshaller) -> None: ...
class Marshaller:
memo = ... # type: MutableMapping[int, Any]
data = ... # type: Optional[str]
encoding = ... # type: Optional[str]
allow_none = ... # type: bool
memo: MutableMapping[int, Any]
data: Optional[str]
encoding: Optional[str]
allow_none: bool
def __init__(self, encoding: Optional[str] = ..., allow_none: bool = ...) -> None: ...
dispatch = ... # type: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]]
dispatch: Mapping[type, Callable[[Marshaller, str, Callable[[str], None]], None]]
def dumps(self, values: Union[Iterable[Union[None, int, bool, long, float, str, unicode, List, Tuple, Mapping, datetime, InstanceType]], Fault]) -> str: ...
def dump_nil(self, value: None, write: Callable[[str], None]) -> None: ...
def dump_int(self, value: int, write: Callable[[str], None]) -> None: ...
@@ -127,7 +127,7 @@ class Unmarshaller:
def data(self, text: str) -> None: ...
def end(self, tag: str, join: Callable[[Iterable[str], str], str] = ...) -> None: ...
def end_dispatch(self, tag: str, data: str) -> None: ...
dispatch = ... # type: Mapping[str, Callable[[Unmarshaller, str], None]]
dispatch: Mapping[str, Callable[[Unmarshaller, str], None]]
def end_nil(self, data: str): ...
def end_boolean(self, data: str) -> None: ...
def end_int(self, data: str) -> None: ...
@@ -160,7 +160,7 @@ def gzip_encode(data: str) -> str: ...
def gzip_decode(data: str, max_decode: int = ...) -> str: ...
class GzipDecodedResponse(GzipFile):
stringio = ... # type: StringIO
stringio: StringIO
def __init__(self, response: HTTPResponse) -> None: ...
def close(self): ...
@@ -170,12 +170,12 @@ class _Method:
def __call__(self, *args: Any) -> Any: ...
class Transport:
user_agent = ... # type: str
accept_gzip_encoding = ... # type: bool
encode_threshold = ... # type: Optional[int]
user_agent: str
accept_gzip_encoding: bool
encode_threshold: Optional[int]
def __init__(self, use_datetime: bool = ...) -> None: ...
def request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> tuple: ...
verbose = ... # type: bool
verbose: bool
def single_request(self, host: _hostDesc, handler: str, request_body: str, verbose: bool = ...) -> tuple: ...
def getparser(self) -> Tuple[Union[ExpatParser, SlowParser], Unmarshaller]: ...
def get_host_info(self, host: _hostDesc) -> Tuple[str, Optional[List[Tuple[str, str]]], Optional[Mapping[Any, Any]]]: ...

View File

@@ -2,34 +2,34 @@ import sys
from typing import Any, Iterable, Iterator, List, Optional, Sequence, Text
QUOTE_ALL = ... # type: int
QUOTE_MINIMAL = ... # type: int
QUOTE_NONE = ... # type: int
QUOTE_NONNUMERIC = ... # type: int
QUOTE_ALL: int
QUOTE_MINIMAL: int
QUOTE_NONE: int
QUOTE_NONNUMERIC: int
class Error(Exception): ...
class Dialect:
delimiter = ... # type: str
quotechar = ... # type: Optional[str]
escapechar = ... # type: Optional[str]
doublequote = ... # type: bool
skipinitialspace = ... # type: bool
lineterminator = ... # type: str
quoting = ... # type: int
strict = ... # type: int
delimiter: str
quotechar: Optional[str]
escapechar: Optional[str]
doublequote: bool
skipinitialspace: bool
lineterminator: str
quoting: int
strict: int
def __init__(self) -> None: ...
class _reader(Iterator[List[str]]):
dialect = ... # type: Dialect
line_num = ... # type: int
dialect: Dialect
line_num: int
if sys.version_info >= (3, 0):
def __next__(self) -> List[str]: ...
else:
def next(self) -> List[str]: ...
class _writer:
dialect = ... # type: Dialect
dialect: Dialect
if sys.version_info >= (3, 5):
def writerow(self, row: Iterable[Any]) -> None: ...

View File

@@ -9,11 +9,11 @@ from typing import (Any, BinaryIO, Generic, Iterable, Iterator, List, MutableSeq
_T = TypeVar('_T', int, float, Text)
if sys.version_info >= (3,):
typecodes = ... # type: str
typecodes: str
class array(MutableSequence[_T], Generic[_T]):
typecode = ... # type: str
itemsize = ... # type: int
typecode: str
itemsize: int
def __init__(self, typecode: str,
__initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...
def append(self, x: _T) -> None: ...

View File

@@ -10,8 +10,8 @@ class simple_producer:
def more(self) -> bytes: ...
class async_chat(asyncore.dispatcher):
ac_in_buffer_size = ... # type: int
ac_out_buffer_size = ... # type: int
ac_in_buffer_size: int
ac_out_buffer_size: int
def __init__(self, sock: Optional[socket.socket] = ..., map: Optional[asyncore._maptype] = ...) -> None: ...
@abstractmethod

View File

@@ -33,13 +33,13 @@ def loop(timeout: float = ..., use_poll: bool = ..., map: _maptype = ..., count:
# It is not covariant to it.
class dispatcher:
debug = ... # type: bool
connected = ... # type: bool
accepting = ... # type: bool
connecting = ... # type: bool
closing = ... # type: bool
ignore_log_types = ... # type: frozenset[str]
socket = ... # type: Optional[SocketType] # undocumented
debug: bool
connected: bool
accepting: bool
connecting: bool
closing: bool
ignore_log_types: frozenset[str]
socket: Optional[SocketType]
def __init__(self, sock: Optional[SocketType] = ..., map: _maptype = ...) -> None: ...
def add_channel(self, map: _maptype = ...) -> None: ...
@@ -122,7 +122,7 @@ def close_all(map: _maptype = ..., ignore_all: bool = ...) -> None: ...
# if os.name == 'posix':
# import fcntl
class file_wrapper:
fd = ... # type: int
fd: int
def __init__(self, fd: int) -> None: ...
def recv(self, bufsize: int, flags: int = ...) -> bytes: ...

View File

@@ -8,15 +8,15 @@ from typing import (
class Error(Exception): ...
REASONABLY_LARGE = ... # type: int
LINELEN = ... # type: int
RUNCHAR = ... # type: bytes
REASONABLY_LARGE: int
LINELEN: int
RUNCHAR: bytes
class FInfo:
def __init__(self) -> None: ...
Type = ... # type: str
Creator = ... # type: str
Flags = ... # type: int
Type: str
Creator: str
Flags: int
_FileInfoTuple = Tuple[str, FInfo, int, int]
_FileHandleUnion = Union[str, IO[bytes]]

View File

@@ -98,25 +98,25 @@ class LocaleHTMLCalendar(HTMLCalendar):
def formatweekday(self, day: int) -> str: ...
def formatmonthname(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...
c = ... # type: TextCalendar
c: TextCalendar
def setfirstweekday(firstweekday: int) -> None: ...
def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
def timegm(tuple: Union[Tuple[int, ...], struct_time]) -> int: ...
# Data attributes
day_name = ... # type: Sequence[str]
day_abbr = ... # type: Sequence[str]
month_name = ... # type: Sequence[str]
month_abbr = ... # type: Sequence[str]
day_name: Sequence[str]
day_abbr: Sequence[str]
month_name: Sequence[str]
month_abbr: Sequence[str]
# Below constants are not in docs or __all__, but enough people have used them
# they are now effectively public.
MONDAY = ... # type: int
TUESDAY = ... # type: int
WEDNESDAY = ... # type: int
THURSDAY = ... # type: int
FRIDAY = ... # type: int
SATURDAY = ... # type: int
SUNDAY = ... # type: int
MONDAY: int
TUESDAY: int
WEDNESDAY: int
THURSDAY: int
FRIDAY: int
SATURDAY: int
SUNDAY: int

View File

@@ -25,44 +25,44 @@ else:
class MiniFieldStorage:
# The first five "Any" attributes here are always None, but mypy doesn't support that
filename = ... # type: Any
list = ... # type: Any
type = ... # type: Any
file = ... # type: Optional[IO[bytes]] # Always None
type_options = ... # type: Dict[Any, Any]
disposition = ... # type: Any
disposition_options = ... # type: Dict[Any, Any]
headers = ... # type: Dict[Any, Any]
name = ... # type: Any
value = ... # type: Any
filename: Any
list: Any
type: Any
file: Optional[IO[bytes]]
type_options: Dict[Any, Any]
disposition: Any
disposition_options: Dict[Any, Any]
headers: Dict[Any, Any]
name: Any
value: Any
def __init__(self, name: Any, value: Any) -> None: ...
def __repr__(self) -> str: ...
class FieldStorage(object):
FieldStorageClass = ... # type: Optional[type]
keep_blank_values = ... # type: int
strict_parsing = ... # type: int
qs_on_post = ... # type: Optional[str]
headers = ... # type: Mapping[str, str]
fp = ... # type: IO[bytes]
encoding = ... # type: str
errors = ... # type: str
outerboundary = ... # type: bytes
bytes_read = ... # type: int
limit = ... # type: Optional[int]
disposition = ... # type: str
disposition_options = ... # type: Dict[str, str]
filename = ... # type: Optional[str]
file = ... # type: Optional[IO[bytes]]
type = ... # type: str
type_options = ... # type: Dict[str, str]
innerboundary = ... # type: bytes
length = ... # type: int
done = ... # type: int
list = ... # type: Optional[List[Any]]
value = ... # type: Union[None, bytes, List[Any]]
FieldStorageClass: Optional[type]
keep_blank_values: int
strict_parsing: int
qs_on_post: Optional[str]
headers: Mapping[str, str]
fp: IO[bytes]
encoding: str
errors: str
outerboundary: bytes
bytes_read: int
limit: Optional[int]
disposition: str
disposition_options: Dict[str, str]
filename: Optional[str]
file: Optional[IO[bytes]]
type: str
type_options: Dict[str, str]
innerboundary: bytes
length: int
done: int
list: Optional[List[Any]]
value: Union[None, bytes, List[Any]]
if sys.version_info >= (3, 0):
def __init__(self, fp: IO[Any] = ..., headers: Mapping[str, str] = ..., outerboundary: bytes = ...,
@@ -102,7 +102,7 @@ if sys.version_info < (3, 0):
from UserDict import UserDict
class FormContentDict(UserDict):
query_string = ... # type: str
query_string: str
def __init__(self, environ: Mapping[str, str] = ..., keep_blank_values: int = ..., strict_parsing: int = ...) -> None: ...
class SvFormContentDict(FormContentDict):

View File

@@ -4,14 +4,14 @@
from typing import IO
class Chunk:
closed = ... # type: bool
align = ... # type: bool
file = ... # type: IO[bytes]
chunkname = ... # type: bytes
chunksize = ... # type: int
size_read = ... # type: int
offset = ... # type: int
seekable = ... # type: bool
closed: bool
align: bool
file: IO[bytes]
chunkname: bytes
chunksize: int
size_read: int
offset: int
seekable: bool
def __init__(self, file: IO[bytes], align: bool = ..., bigendian: bool = ..., inclheader: bool = ...) -> None: ...
def getname(self) -> bytes: ...
def getsize(self) -> int: ...

View File

@@ -3,8 +3,8 @@
import sys
from typing import Union, Tuple
e = ... # type: float
pi = ... # type: float
e: float
pi: float
_C = Union[float, complex]

View File

@@ -3,23 +3,23 @@
from typing import Any, Optional, Text, IO, List, Callable, Tuple
class Cmd:
prompt = ... # type: str
identchars = ... # type: str
ruler = ... # type: str
lastcmd = ... # type: str
intro = ... # type: Optional[Any]
doc_leader = ... # type: str
doc_header = ... # type: str
misc_header = ... # type: str
undoc_header = ... # type: str
nohelp = ... # type: str
use_rawinput = ... # type: bool
stdin = ... # type: IO[str]
stdout = ... # type: IO[str]
cmdqueue = ... # type: List[str]
completekey = ... # type: str
prompt: str
identchars: str
ruler: str
lastcmd: str
intro: Optional[Any]
doc_leader: str
doc_header: str
misc_header: str
undoc_header: str
nohelp: str
use_rawinput: bool
stdin: IO[str]
stdout: IO[str]
cmdqueue: List[str]
completekey: str
def __init__(self, completekey: str = ..., stdin: Optional[IO[str]] = ..., stdout: Optional[IO[str]] = ...) -> None: ...
old_completer = ... # type: Optional[Callable[[str, int], Optional[str]]]
old_completer: Optional[Callable[[str, int], Optional[str]]]
def cmdloop(self, intro: Optional[Any] = ...) -> None: ...
def precmd(self, line: str) -> str: ...
def postcmd(self, stop: bool, line: str) -> bool: ...
@@ -31,7 +31,7 @@ class Cmd:
def default(self, line: str) -> bool: ...
def completedefault(self, *ignored: Any) -> List[str]: ...
def completenames(self, text: str, *ignored: Any) -> List[str]: ...
completion_matches = ... # type: Optional[List[str]]
completion_matches: Optional[List[str]]
def complete(self, text: str, state: int) -> Optional[List[str]]: ...
def get_names(self) -> List[str]: ...
# Only the first element of args matters.

View File

@@ -7,11 +7,11 @@ from typing import Optional
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
class Compile:
flags = ... # type: int
flags: int
def __init__(self) -> None: ...
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
class CommandCompiler:
compiler = ... # type: Compile
compiler: Compile
def __init__(self) -> None: ...
def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...

View File

@@ -10,6 +10,6 @@ def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
def hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ...
# TODO undocumented
ONE_SIXTH = ... # type: float
ONE_THIRD = ... # type: float
TWO_THIRD = ... # type: float
ONE_SIXTH: float
ONE_THIRD: float
TWO_THIRD: float

View File

@@ -22,34 +22,34 @@ _Dialect = Union[str, Dialect]
_DictRow = Mapping[str, Any]
class Dialect(object):
delimiter = ... # type: str
quotechar = ... # type: Optional[str]
escapechar = ... # type: Optional[str]
doublequote = ... # type: bool
skipinitialspace = ... # type: bool
lineterminator = ... # type: str
quoting = ... # type: int
delimiter: str
quotechar: Optional[str]
escapechar: Optional[str]
doublequote: bool
skipinitialspace: bool
lineterminator: str
quoting: int
def __init__(self) -> None: ...
class excel(Dialect):
delimiter = ... # type: str
quotechar = ... # type: str
doublequote = ... # type: bool
skipinitialspace = ... # type: bool
lineterminator = ... # type: str
quoting = ... # type: int
delimiter: str
quotechar: str
doublequote: bool
skipinitialspace: bool
lineterminator: str
quoting: int
class excel_tab(excel):
delimiter = ... # type: str
delimiter: str
if sys.version_info >= (3,):
class unix_dialect(Dialect):
delimiter = ... # type: str
quotechar = ... # type: str
doublequote = ... # type: bool
skipinitialspace = ... # type: bool
lineterminator = ... # type: str
quoting = ... # type: int
delimiter: str
quotechar: str
doublequote: bool
skipinitialspace: bool
lineterminator: str
quoting: int
if sys.version_info >= (3, 6):
_DRMapping = OrderedDict[str, str]
@@ -58,12 +58,12 @@ else:
class DictReader(Iterator[_DRMapping]):
restkey = ... # type: Optional[str]
restval = ... # type: Optional[str]
reader = ... # type: _reader
dialect = ... # type: _Dialect
line_num = ... # type: int
fieldnames = ... # type: Sequence[str]
restkey: Optional[str]
restval: Optional[str]
reader: _reader
dialect: _Dialect
line_num: int
fieldnames: Sequence[str]
def __init__(self, f: Iterable[str], fieldnames: Sequence[str] = ...,
restkey: Optional[str] = ..., restval: Optional[str] = ..., dialect: _Dialect = ...,
*args: Any, **kwds: Any) -> None: ...
@@ -75,10 +75,10 @@ class DictReader(Iterator[_DRMapping]):
class DictWriter(object):
fieldnames = ... # type: Sequence[str]
restval = ... # type: Optional[Any]
extrasaction = ... # type: str
writer = ... # type: _writer
fieldnames: Sequence[str]
restval: Optional[Any]
extrasaction: str
writer: _writer
def __init__(self, f: Any, fieldnames: Sequence[str],
restval: Optional[Any] = ..., extrasaction: str = ..., dialect: _Dialect = ...,
*args: Any, **kwds: Any) -> None: ...
@@ -87,7 +87,7 @@ class DictWriter(object):
def writerows(self, rowdicts: Iterable[_DictRow]) -> None: ...
class Sniffer(object):
preferred = ... # type: List[str]
preferred: List[str]
def __init__(self) -> None: ...
def sniff(self, sample: str, delimiters: Optional[str] = ...) -> Dialect: ...
def has_header(self, sample: str) -> bool: ...

View File

@@ -34,8 +34,8 @@ if sys.version_info >= (3, 4):
)
class Bytecode:
codeobj = ... # type: types.CodeType
first_line = ... # type: int
codeobj: types.CodeType
first_line: int
def __init__(self, x: _have_code_or_string, *, first_line: Optional[int] = ...,
current_offset: Optional[int] = ...) -> None: ...
def __iter__(self) -> Iterator[Instruction]: ...
@@ -47,7 +47,7 @@ if sys.version_info >= (3, 4):
def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ...
COMPILER_FLAG_NAMES = ... # type: Dict[int, str]
COMPILER_FLAG_NAMES: Dict[int, str]
def findlabels(code: _have_code) -> List[int]: ...

View File

@@ -5,7 +5,7 @@ from abc import abstractmethod
from distutils.dist import Distribution
class Command:
sub_commands = ... # type: List[Tuple[str, Union[Callable[[], bool], str, None]]]
sub_commands: List[Tuple[str, Union[Callable[[], bool], str, None]]]
def __init__(self, dist: Distribution) -> None: ...
@abstractmethod
def initialize_options(self) -> None: ...

View File

@@ -1,3 +1,3 @@
# Stubs for distutils.debug
DEBUG = ... # type: bool
DEBUG: bool

View File

@@ -3,8 +3,8 @@
from typing import Mapping, Optional, Union
from distutils.ccompiler import CCompiler
PREFIX = ... # type: str
EXEC_PREFIX = ... # type: str
PREFIX: str
EXEC_PREFIX: str
def get_config_var(name: str) -> Union[int, str, None]: ...
def get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...

View File

@@ -3,128 +3,128 @@
from typing import Mapping
import sys
errorcode = ... # type: Mapping[int, str]
errorcode: Mapping[int, str]
EPERM = ... # type: int
ENOENT = ... # type: int
ESRCH = ... # type: int
EINTR = ... # type: int
EIO = ... # type: int
ENXIO = ... # type: int
E2BIG = ... # type: int
ENOEXEC = ... # type: int
EBADF = ... # type: int
ECHILD = ... # type: int
EAGAIN = ... # type: int
ENOMEM = ... # type: int
EACCES = ... # type: int
EFAULT = ... # type: int
ENOTBLK = ... # type: int
EBUSY = ... # type: int
EEXIST = ... # type: int
EXDEV = ... # type: int
ENODEV = ... # type: int
ENOTDIR = ... # type: int
EISDIR = ... # type: int
EINVAL = ... # type: int
ENFILE = ... # type: int
EMFILE = ... # type: int
ENOTTY = ... # type: int
ETXTBSY = ... # type: int
EFBIG = ... # type: int
ENOSPC = ... # type: int
ESPIPE = ... # type: int
EROFS = ... # type: int
EMLINK = ... # type: int
EPIPE = ... # type: int
EDOM = ... # type: int
ERANGE = ... # type: int
EDEADLCK = ... # type: int
ENAMETOOLONG = ... # type: int
ENOLCK = ... # type: int
ENOSYS = ... # type: int
ENOTEMPTY = ... # type: int
ELOOP = ... # type: int
EWOULDBLOCK = ... # type: int
ENOMSG = ... # type: int
EIDRM = ... # type: int
ECHRNG = ... # type: int
EL2NSYNC = ... # type: int
EL3HLT = ... # type: int
EL3RST = ... # type: int
ELNRNG = ... # type: int
EUNATCH = ... # type: int
ENOCSI = ... # type: int
EL2HLT = ... # type: int
EBADE = ... # type: int
EBADR = ... # type: int
EXFULL = ... # type: int
ENOANO = ... # type: int
EBADRQC = ... # type: int
EBADSLT = ... # type: int
EDEADLOCK = ... # type: int
EBFONT = ... # type: int
ENOSTR = ... # type: int
ENODATA = ... # type: int
ETIME = ... # type: int
ENOSR = ... # type: int
ENONET = ... # type: int
ENOPKG = ... # type: int
EREMOTE = ... # type: int
ENOLINK = ... # type: int
EADV = ... # type: int
ESRMNT = ... # type: int
ECOMM = ... # type: int
EPROTO = ... # type: int
EMULTIHOP = ... # type: int
EDOTDOT = ... # type: int
EBADMSG = ... # type: int
EOVERFLOW = ... # type: int
ENOTUNIQ = ... # type: int
EBADFD = ... # type: int
EREMCHG = ... # type: int
ELIBACC = ... # type: int
ELIBBAD = ... # type: int
ELIBSCN = ... # type: int
ELIBMAX = ... # type: int
ELIBEXEC = ... # type: int
EILSEQ = ... # type: int
ERESTART = ... # type: int
ESTRPIPE = ... # type: int
EUSERS = ... # type: int
ENOTSOCK = ... # type: int
EDESTADDRREQ = ... # type: int
EMSGSIZE = ... # type: int
EPROTOTYPE = ... # type: int
ENOPROTOOPT = ... # type: int
EPROTONOSUPPORT = ... # type: int
ESOCKTNOSUPPORT = ... # type: int
ENOTSUP = ... # type: int
EOPNOTSUPP = ... # type: int
EPFNOSUPPORT = ... # type: int
EAFNOSUPPORT = ... # type: int
EADDRINUSE = ... # type: int
EADDRNOTAVAIL = ... # type: int
ENETDOWN = ... # type: int
ENETUNREACH = ... # type: int
ENETRESET = ... # type: int
ECONNABORTED = ... # type: int
ECONNRESET = ... # type: int
ENOBUFS = ... # type: int
EISCONN = ... # type: int
ENOTCONN = ... # type: int
ESHUTDOWN = ... # type: int
ETOOMANYREFS = ... # type: int
ETIMEDOUT = ... # type: int
ECONNREFUSED = ... # type: int
EHOSTDOWN = ... # type: int
EHOSTUNREACH = ... # type: int
EALREADY = ... # type: int
EINPROGRESS = ... # type: int
ESTALE = ... # type: int
EUCLEAN = ... # type: int
ENOTNAM = ... # type: int
ENAVAIL = ... # type: int
EISNAM = ... # type: int
EREMOTEIO = ... # type: int
EDQUOT = ... # type: int
EPERM: int
ENOENT: int
ESRCH: int
EINTR: int
EIO: int
ENXIO: int
E2BIG: int
ENOEXEC: int
EBADF: int
ECHILD: int
EAGAIN: int
ENOMEM: int
EACCES: int
EFAULT: int
ENOTBLK: int
EBUSY: int
EEXIST: int
EXDEV: int
ENODEV: int
ENOTDIR: int
EISDIR: int
EINVAL: int
ENFILE: int
EMFILE: int
ENOTTY: int
ETXTBSY: int
EFBIG: int
ENOSPC: int
ESPIPE: int
EROFS: int
EMLINK: int
EPIPE: int
EDOM: int
ERANGE: int
EDEADLCK: int
ENAMETOOLONG: int
ENOLCK: int
ENOSYS: int
ENOTEMPTY: int
ELOOP: int
EWOULDBLOCK: int
ENOMSG: int
EIDRM: int
ECHRNG: int
EL2NSYNC: int
EL3HLT: int
EL3RST: int
ELNRNG: int
EUNATCH: int
ENOCSI: int
EL2HLT: int
EBADE: int
EBADR: int
EXFULL: int
ENOANO: int
EBADRQC: int
EBADSLT: int
EDEADLOCK: int
EBFONT: int
ENOSTR: int
ENODATA: int
ETIME: int
ENOSR: int
ENONET: int
ENOPKG: int
EREMOTE: int
ENOLINK: int
EADV: int
ESRMNT: int
ECOMM: int
EPROTO: int
EMULTIHOP: int
EDOTDOT: int
EBADMSG: int
EOVERFLOW: int
ENOTUNIQ: int
EBADFD: int
EREMCHG: int
ELIBACC: int
ELIBBAD: int
ELIBSCN: int
ELIBMAX: int
ELIBEXEC: int
EILSEQ: int
ERESTART: int
ESTRPIPE: int
EUSERS: int
ENOTSOCK: int
EDESTADDRREQ: int
EMSGSIZE: int
EPROTOTYPE: int
ENOPROTOOPT: int
EPROTONOSUPPORT: int
ESOCKTNOSUPPORT: int
ENOTSUP: int
EOPNOTSUPP: int
EPFNOSUPPORT: int
EAFNOSUPPORT: int
EADDRINUSE: int
EADDRNOTAVAIL: int
ENETDOWN: int
ENETUNREACH: int
ENETRESET: int
ECONNABORTED: int
ECONNRESET: int
ENOBUFS: int
EISCONN: int
ENOTCONN: int
ESHUTDOWN: int
ETOOMANYREFS: int
ETIMEDOUT: int
ECONNREFUSED: int
EHOSTDOWN: int
EHOSTUNREACH: int
EALREADY: int
EINPROGRESS: int
ESTALE: int
EUCLEAN: int
ENOTNAM: int
ENAVAIL: int
EISNAM: int
EREMOTEIO: int
EDQUOT: int

View File

@@ -2,7 +2,7 @@
import sys
from typing import AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Tuple, Union, Text
DEFAULT_IGNORES = ... # type: List[str]
DEFAULT_IGNORES: List[str]
def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...
def cmpfiles(a: AnyStr, b: AnyStr, common: Iterable[AnyStr],
@@ -13,30 +13,30 @@ class dircmp(Generic[AnyStr]):
ignore: Optional[Sequence[AnyStr]] = ...,
hide: Optional[Sequence[AnyStr]] = ...) -> None: ...
left = ... # type: AnyStr
right = ... # type: AnyStr
hide = ... # type: Sequence[AnyStr]
ignore = ... # type: Sequence[AnyStr]
left: AnyStr
right: AnyStr
hide: Sequence[AnyStr]
ignore: Sequence[AnyStr]
# These properties are created at runtime by __getattr__
subdirs = ... # type: Dict[AnyStr, dircmp[AnyStr]]
same_files = ... # type: List[AnyStr]
diff_files = ... # type: List[AnyStr]
funny_files = ... # type: List[AnyStr]
common_dirs = ... # type: List[AnyStr]
common_files = ... # type: List[AnyStr]
common_funny = ... # type: List[AnyStr]
common = ... # type: List[AnyStr]
left_only = ... # type: List[AnyStr]
right_only = ... # type: List[AnyStr]
left_list = ... # type: List[AnyStr]
right_list = ... # type: List[AnyStr]
subdirs: Dict[AnyStr, dircmp[AnyStr]]
same_files: List[AnyStr]
diff_files: List[AnyStr]
funny_files: List[AnyStr]
common_dirs: List[AnyStr]
common_files: List[AnyStr]
common_funny: List[AnyStr]
common: List[AnyStr]
left_only: List[AnyStr]
right_only: List[AnyStr]
left_list: List[AnyStr]
right_list: List[AnyStr]
def report(self) -> None: ...
def report_partial_closure(self) -> None: ...
def report_full_closure(self) -> None: ...
methodmap = ... # type: Dict[str, Callable[[], None]]
methodmap: Dict[str, Callable[[], None]]
def phase0(self) -> None: ...
def phase1(self) -> None: ...
def phase2(self) -> None: ...

View File

@@ -7,7 +7,7 @@ _FontType = Tuple[str, bool, bool, bool]
_StylesType = Tuple[Any, ...]
class NullFormatter:
writer = ... # type: Optional[NullWriter]
writer: Optional[NullWriter]
def __init__(self, writer: Optional[NullWriter] = ...) -> None: ...
def end_paragraph(self, blankline: int) -> None: ...
def add_line_break(self) -> None: ...
@@ -28,19 +28,19 @@ class NullFormatter:
def assert_line_data(self, flag: int = ...) -> None: ...
class AbstractFormatter:
writer = ... # type: NullWriter
align = ... # type: Optional[str]
align_stack = ... # type: List[Optional[str]]
font_stack = ... # type: List[_FontType]
margin_stack = ... # type: List[int]
spacing = ... # type: Optional[str]
style_stack = ... # type: Any
nospace = ... # type: int
softspace = ... # type: int
para_end = ... # type: int
parskip = ... # type: int
hard_break = ... # type: int
have_label = ... # type: int
writer: NullWriter
align: Optional[str]
align_stack: List[Optional[str]]
font_stack: List[_FontType]
margin_stack: List[int]
spacing: Optional[str]
style_stack: Any
nospace: int
softspace: int
para_end: int
parskip: int
hard_break: int
have_label: int
def __init__(self, writer: NullWriter) -> None: ...
def end_paragraph(self, blankline: int) -> None: ...
def add_line_break(self) -> None: ...
@@ -92,8 +92,8 @@ class AbstractWriter(NullWriter):
def send_literal_data(self, data: str) -> None: ...
class DumbWriter(NullWriter):
file = ... # type: IO
maxcol = ... # type: int
file: IO
maxcol: int
def __init__(self, file: Optional[IO] = ..., maxcol: int = ...) -> None: ...
def reset(self) -> None: ...
def send_paragraph(self, blankline: int) -> None: ...

View File

@@ -8,12 +8,12 @@ from ssl import SSLContext
_T = TypeVar('_T')
_IntOrStr = Union[int, Text]
MSG_OOB = ... # type: int
FTP_PORT = ... # type: int
MAXLINE = ... # type: int
CRLF = ... # type: str
MSG_OOB: int
FTP_PORT: int
MAXLINE: int
CRLF: str
if sys.version_info >= (3,):
B_CRLF = ... # type: bytes
B_CRLF: bytes
class Error(Exception): ...
class error_reply(Error): ...
@@ -24,32 +24,32 @@ class error_proto(Error): ...
all_errors = Tuple[Exception, ...]
class FTP:
debugging = ... # type: int
debugging: int
# Note: This is technically the type that's passed in as the host argument. But to make it easier in Python 2 we
# accept Text but return str.
host = ... # type: str
host: str
port = ... # type: int
maxline = ... # type: int
sock = ... # type: Optional[socket]
welcome = ... # type: Optional[str]
passiveserver = ... # type: int
timeout = ... # type: int
af = ... # type: int
lastresp = ... # type: str
port: int
maxline: int
sock: Optional[socket]
welcome: Optional[str]
passiveserver: int
timeout: int
af: int
lastresp: str
if sys.version_info >= (3,):
file = ... # type: Optional[TextIO]
encoding = ... # type: str
file: Optional[TextIO]
encoding: str
def __enter__(self: _T) -> _T: ...
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
exc_tb: Optional[TracebackType]) -> bool: ...
else:
file = ... # type: Optional[BinaryIO]
file: Optional[BinaryIO]
if sys.version_info >= (3, 3):
source_address = ... # type: Optional[Tuple[str, int]]
source_address: Optional[Tuple[str, int]]
def __init__(self, host: Text = ..., user: Text = ..., passwd: Text = ..., acct: Text = ...,
timeout: float = ..., source_address: Optional[Tuple[str, int]] = ...) -> None: ...
def connect(self, host: Text = ..., port: int = ..., timeout: float = ...,
@@ -112,10 +112,10 @@ class FTP_TLS(FTP):
context: Optional[SSLContext] = ..., timeout: float = ...,
source_address: Optional[Tuple[str, int]] = ...) -> None: ...
ssl_version = ... # type: int
keyfile = ... # type: Optional[str]
certfile = ... # type: Optional[str]
context = ... # type: SSLContext
ssl_version: int
keyfile: Optional[str]
certfile: Optional[str]
context: SSLContext
def login(self, user: Text = ..., passwd: Text = ..., acct: Text = ..., secure: bool = ...) -> str: ...
def auth(self) -> str: ...

View File

@@ -20,10 +20,10 @@ else:
class HMAC:
if sys.version_info >= (3,):
digest_size = ... # type: int
digest_size: int
if sys.version_info >= (3, 4):
block_size = ... # type: int
name = ... # type: str
block_size: int
name: str
def update(self, msg: _B) -> None: ...
def digest(self) -> bytes: ...
def hexdigest(self) -> str: ...

View File

@@ -3,4 +3,4 @@
from typing import Sequence, Text, Union
def iskeyword(s: Union[Text, bytes]) -> bool: ...
kwlist = ... # type: Sequence[str]
kwlist: Sequence[str]

View File

@@ -10,74 +10,74 @@ if sys.version_info < (3,):
else:
from builtins import str as _str
CODESET = ... # type: int
D_T_FMT = ... # type: int
D_FMT = ... # type: int
T_FMT = ... # type: int
T_FMT_AMPM = ... # type: int
CODESET: int
D_T_FMT: int
D_FMT: int
T_FMT: int
T_FMT_AMPM: int
DAY_1 = ... # type: int
DAY_2 = ... # type: int
DAY_3 = ... # type: int
DAY_4 = ... # type: int
DAY_5 = ... # type: int
DAY_6 = ... # type: int
DAY_7 = ... # type: int
ABDAY_1 = ... # type: int
ABDAY_2 = ... # type: int
ABDAY_3 = ... # type: int
ABDAY_4 = ... # type: int
ABDAY_5 = ... # type: int
ABDAY_6 = ... # type: int
ABDAY_7 = ... # type: int
DAY_1: int
DAY_2: int
DAY_3: int
DAY_4: int
DAY_5: int
DAY_6: int
DAY_7: int
ABDAY_1: int
ABDAY_2: int
ABDAY_3: int
ABDAY_4: int
ABDAY_5: int
ABDAY_6: int
ABDAY_7: int
MON_1 = ... # type: int
MON_2 = ... # type: int
MON_3 = ... # type: int
MON_4 = ... # type: int
MON_5 = ... # type: int
MON_6 = ... # type: int
MON_7 = ... # type: int
MON_8 = ... # type: int
MON_9 = ... # type: int
MON_10 = ... # type: int
MON_11 = ... # type: int
MON_12 = ... # type: int
ABMON_1 = ... # type: int
ABMON_2 = ... # type: int
ABMON_3 = ... # type: int
ABMON_4 = ... # type: int
ABMON_5 = ... # type: int
ABMON_6 = ... # type: int
ABMON_7 = ... # type: int
ABMON_8 = ... # type: int
ABMON_9 = ... # type: int
ABMON_10 = ... # type: int
ABMON_11 = ... # type: int
ABMON_12 = ... # type: int
MON_1: int
MON_2: int
MON_3: int
MON_4: int
MON_5: int
MON_6: int
MON_7: int
MON_8: int
MON_9: int
MON_10: int
MON_11: int
MON_12: int
ABMON_1: int
ABMON_2: int
ABMON_3: int
ABMON_4: int
ABMON_5: int
ABMON_6: int
ABMON_7: int
ABMON_8: int
ABMON_9: int
ABMON_10: int
ABMON_11: int
ABMON_12: int
RADIXCHAR = ... # type: int
THOUSEP = ... # type: int
YESEXPR = ... # type: int
NOEXPR = ... # type: int
CRNCYSTR = ... # type: int
RADIXCHAR: int
THOUSEP: int
YESEXPR: int
NOEXPR: int
CRNCYSTR: int
ERA = ... # type: int
ERA_D_T_FMT = ... # type: int
ERA_D_FMT = ... # type: int
ERA_T_FMT = ... # type: int
ERA: int
ERA_D_T_FMT: int
ERA_D_FMT: int
ERA_T_FMT: int
ALT_DIGITS = ... # type: int
ALT_DIGITS: int
LC_CTYPE = ... # type: int
LC_COLLATE = ... # type: int
LC_TIME = ... # type: int
LC_MONETARY = ... # type: int
LC_MESSAGES = ... # type: int
LC_NUMERIC = ... # type: int
LC_ALL = ... # type: int
LC_CTYPE: int
LC_COLLATE: int
LC_TIME: int
LC_MONETARY: int
LC_MESSAGES: int
LC_NUMERIC: int
LC_ALL: int
CHAR_MAX = ... # type: int
CHAR_MAX: int
class Error(Exception): ...

View File

@@ -30,25 +30,25 @@ raiseExceptions: bool
def currentframe() -> FrameType: ...
if sys.version_info >= (3,):
_levelToName = ... # type: Dict[int, str]
_nameToLevel = ... # type: Dict[str, int]
_levelToName: Dict[int, str]
_nameToLevel: Dict[str, int]
else:
_levelNames = ... # type: dict
_levelNames: dict
class Filterer(object):
filters = ... # type: List[Filter]
filters: List[Filter]
def __init__(self) -> None: ...
def addFilter(self, filter: Filter) -> None: ...
def removeFilter(self, filter: Filter) -> None: ...
def filter(self, record: LogRecord) -> bool: ...
class Logger(Filterer):
name = ... # type: str
level = ... # type: int
parent = ... # type: Union[Logger, PlaceHolder]
propagate = ... # type: bool
handlers = ... # type: List[Handler]
disabled = ... # type: int
name: str
level: int
parent: Union[Logger, PlaceHolder]
propagate: bool
handlers: List[Handler]
disabled: int
def __init__(self, name: str, level: _Level = ...) -> None: ...
def setLevel(self, level: Union[int, str]) -> None: ...
def isEnabledFor(self, lvl: int) -> bool: ...
@@ -165,13 +165,13 @@ class Handler(Filterer):
class Formatter:
converter = ... # type: Callable[[Optional[float]], struct_time]
_fmt = ... # type: Optional[str]
datefmt = ... # type: Optional[str]
converter: Callable[[Optional[float]], struct_time]
_fmt: Optional[str]
datefmt: Optional[str]
if sys.version_info >= (3,):
_style = ... # type: PercentStyle
default_time_format = ... # type: str
default_msec_format = ... # type: str
_style: PercentStyle
default_time_format: str
default_msec_format: str
if sys.version_info >= (3,):
def __init__(self, fmt: Optional[str] = ...,
@@ -196,29 +196,29 @@ class Filter:
class LogRecord:
args = ... # type: _ArgsType
asctime = ... # type: str
created = ... # type: int
exc_info = ... # type: Optional[_SysExcInfoType]
exc_text = ... # type: Optional[str]
filename = ... # type: str
funcName = ... # type: str
levelname = ... # type: str
levelno = ... # type: int
lineno = ... # type: int
module = ... # type: str
msecs = ... # type: int
message = ... # type: str
msg = ... # type: str
name = ... # type: str
pathname = ... # type: str
process = ... # type: int
processName = ... # type: str
relativeCreated = ... # type: int
args: _ArgsType
asctime: str
created: int
exc_info: Optional[_SysExcInfoType]
exc_text: Optional[str]
filename: str
funcName: str
levelname: str
levelno: int
lineno: int
module: str
msecs: int
message: str
msg: str
name: str
pathname: str
process: int
processName: str
relativeCreated: int
if sys.version_info >= (3,):
stack_info = ... # type: Optional[str]
thread = ... # type: int
threadName = ... # type: str
stack_info: Optional[str]
thread: int
threadName: str
if sys.version_info >= (3,):
def __init__(self, name: str, level: int, pathname: str, lineno: int,
msg: Any, args: _ArgsType,
@@ -376,21 +376,21 @@ if sys.version_info >= (3,):
if sys.version_info >= (3,):
lastResort = ... # type: Optional[StreamHandler]
lastResort: Optional[StreamHandler]
class StreamHandler(Handler):
stream = ... # type: IO[str]
stream: IO[str]
if sys.version_info >= (3,):
terminator = ... # type: str
terminator: str
def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...
class FileHandler(Handler):
baseFilename = ... # type: str
mode = ... # type: str
encoding = ... # type: Optional[str]
delay = ... # type: bool
baseFilename: str
mode: str
encoding: Optional[str]
delay: bool
def __init__(self, filename: _Path, mode: str = ...,
encoding: Optional[str] = ..., delay: bool = ...) -> None: ...
@@ -407,15 +407,15 @@ class PlaceHolder:
class RootLogger(Logger): ...
root = ... # type: RootLogger
root: RootLogger
if sys.version_info >= (3,):
class PercentStyle(object):
default_format = ... # type: str
asctime_format = ... # type: str
asctime_search = ... # type: str
_fmt = ... # type: str
default_format: str
asctime_format: str
asctime_search: str
_fmt: str
def __init__(self, fmt: str) -> None: ...
def usesTime(self) -> bool: ...
@@ -425,9 +425,9 @@ if sys.version_info >= (3,):
...
class StringTemplateStyle(PercentStyle):
_tpl = ... # type: Template
_tpl: Template
_STYLES = ... # type: Dict[str, Tuple[PercentStyle, str]]
_STYLES: Dict[str, Tuple[PercentStyle, str]]
BASIC_FORMAT = ... # type: str
BASIC_FORMAT: str

View File

@@ -41,9 +41,9 @@ class WatchedFileHandler(Handler):
if sys.version_info >= (3,):
class BaseRotatingHandler(FileHandler):
terminator = ... # type: str
namer = ... # type: Optional[Callable[[str], str]]
rotator = ... # type: Optional[Callable[[str, str], None]]
terminator: str
namer: Optional[Callable[[str], str]]
rotator: Optional[Callable[[str, str], None]]
def __init__(self, filename: _Path, mode: str,
encoding: Optional[str] = ...,
delay: bool = ...) -> None: ...
@@ -89,9 +89,9 @@ else:
class SocketHandler(Handler):
retryStart = ... # type: float
retryFactor = ... # type: float
retryMax = ... # type: float
retryStart: float
retryFactor: float
retryMax: float
if sys.version_info >= (3, 4):
def __init__(self, host: str, port: Optional[int]) -> None: ...
else:
@@ -106,34 +106,34 @@ class DatagramHandler(SocketHandler): ...
class SysLogHandler(Handler):
LOG_ALERT = ... # type: int
LOG_CRIT = ... # type: int
LOG_DEBUG = ... # type: int
LOG_EMERG = ... # type: int
LOG_ERR = ... # type: int
LOG_INFO = ... # type: int
LOG_NOTICE = ... # type: int
LOG_WARNING = ... # type: int
LOG_AUTH = ... # type: int
LOG_AUTHPRIV = ... # type: int
LOG_CRON = ... # type: int
LOG_DAEMON = ... # type: int
LOG_FTP = ... # type: int
LOG_KERN = ... # type: int
LOG_LPR = ... # type: int
LOG_MAIL = ... # type: int
LOG_NEWS = ... # type: int
LOG_SYSLOG = ... # type: int
LOG_USER = ... # type: int
LOG_UUCP = ... # type: int
LOG_LOCAL0 = ... # type: int
LOG_LOCAL1 = ... # type: int
LOG_LOCAL2 = ... # type: int
LOG_LOCAL3 = ... # type: int
LOG_LOCAL4 = ... # type: int
LOG_LOCAL5 = ... # type: int
LOG_LOCAL6 = ... # type: int
LOG_LOCAL7 = ... # type: int
LOG_ALERT: int
LOG_CRIT: int
LOG_DEBUG: int
LOG_EMERG: int
LOG_ERR: int
LOG_INFO: int
LOG_NOTICE: int
LOG_WARNING: int
LOG_AUTH: int
LOG_AUTHPRIV: int
LOG_CRON: int
LOG_DAEMON: int
LOG_FTP: int
LOG_KERN: int
LOG_LPR: int
LOG_MAIL: int
LOG_NEWS: int
LOG_SYSLOG: int
LOG_USER: int
LOG_UUCP: int
LOG_LOCAL0: int
LOG_LOCAL1: int
LOG_LOCAL2: int
LOG_LOCAL3: int
LOG_LOCAL4: int
LOG_LOCAL5: int
LOG_LOCAL6: int
LOG_LOCAL7: int
def __init__(self, address: Union[Tuple[str, int], str] = ...,
facility: int = ..., socktype: _SocketKind = ...) -> None: ...
def encodePriority(self, facility: Union[int, str],

View File

@@ -1,6 +1,6 @@
from typing import Any, IO
version = ... # type: int
version: int
def dump(value: Any, file: IO[Any], version: int = ...) -> None: ...
def load(file: IO[Any]) -> Any: ...

View File

@@ -5,13 +5,13 @@ from typing import Tuple, Iterable, SupportsFloat, SupportsInt
import sys
e = ... # type: float
pi = ... # type: float
e: float
pi: float
if sys.version_info >= (3, 5):
inf = ... # type: float
nan = ... # type: float
inf: float
nan: float
if sys.version_info >= (3, 6):
tau = ... # type: float
tau: float
def acos(x: SupportsFloat) -> float: ...
def acosh(x: SupportsFloat) -> float: ...

Some files were not shown because too many files have changed in this diff Show More