From fe0e3744ccce52f6dc8b4258392840c075642111 Mon Sep 17 00:00:00 2001 From: Lukasz Langa Date: Mon, 19 Dec 2016 22:09:35 -0800 Subject: [PATCH] Fixing flake8 E261 errors --- .flake8 | 1 - stdlib/2/ConfigParser.pyi | 52 +- stdlib/2/Cookie.pyi | 8 +- stdlib/2/Queue.pyi | 12 +- stdlib/2/StringIO.pyi | 8 +- stdlib/2/UserDict.pyi | 2 +- stdlib/2/__builtin__.pyi | 14 +- stdlib/2/_ast.pyi | 4 +- stdlib/2/builtins.pyi | 945 +++++++++++++++++- stdlib/2/codecs.pyi | 12 +- stdlib/2/decimal.pyi | 2 +- stdlib/2/email/_parseaddr.pyi | 20 +- stdlib/2/functools.pyi | 4 +- stdlib/2/gc.pyi | 16 +- stdlib/2/getopt.pyi | 4 +- stdlib/2/gzip.pyi | 28 +- stdlib/2/htmlentitydefs.pyi | 6 +- stdlib/2/httplib.pyi | 186 ++-- stdlib/2/io.pyi | 2 +- stdlib/2/itertools.pyi | 2 +- stdlib/2/json.pyi | 16 +- stdlib/2/mimetools.pyi | 14 +- stdlib/2/multiprocessing/process.pyi | 2 +- stdlib/2/multiprocessing/util.pyi | 4 +- stdlib/2/os/__init__.pyi | 50 +- stdlib/2/platform.pyi | 14 +- stdlib/2/posixpath.pyi | 18 +- stdlib/2/resource.pyi | 32 +- stdlib/2/rfc822.pyi | 36 +- stdlib/2/runpy.pyi | 6 +- stdlib/2/select.pyi | 14 +- stdlib/2/shlex.pyi | 26 +- stdlib/2/smtplib.pyi | 54 +- stdlib/2/socket.pyi | 2 +- stdlib/2/sqlite3/dbapi2.pyi | 136 +-- stdlib/2/ssl.pyi | 84 +- stdlib/2/struct.pyi | 4 +- stdlib/2/subprocess.pyi | 28 +- stdlib/2/sys.pyi | 4 +- stdlib/2/textwrap.pyi | 34 +- stdlib/2/time.pyi | 2 +- stdlib/2/types.pyi | 32 +- stdlib/2/typing.pyi | 2 +- stdlib/2/unicodedata.pyi | 8 +- stdlib/2/unittest.pyi | 22 +- stdlib/2/urllib.pyi | 72 +- stdlib/2/urllib2.pyi | 30 +- stdlib/2/uuid.pyi | 36 +- stdlib/2/weakref.pyi | 4 +- stdlib/2/wsgiref/validate.pyi | 16 +- stdlib/2/xml/etree/ElementInclude.pyi | 6 +- stdlib/2/xml/etree/ElementPath.pyi | 8 +- stdlib/2/xml/etree/ElementTree.pyi | 26 +- stdlib/2/zlib.pyi | 28 +- stdlib/2and3/errno.pyi | 2 +- stdlib/2and3/logging/__init__.pyi | 4 +- stdlib/2and3/mmap.pyi | 20 +- stdlib/2and3/termios.pyi | 462 ++++----- stdlib/2and3/webbrowser.pyi | 84 +- stdlib/2and3/xml/sax/handler.pyi | 30 +- stdlib/3.2/xml/etree/ElementInclude.pyi | 6 +- stdlib/3.2/xml/etree/ElementPath.pyi | 8 +- stdlib/3.2/xml/etree/ElementTree.pyi | 26 +- stdlib/3.3/ipaddress.pyi | 26 +- stdlib/3.3/xml/etree/ElementInclude.pyi | 6 +- stdlib/3.3/xml/etree/ElementPath.pyi | 8 +- stdlib/3.3/xml/etree/ElementTree.pyi | 26 +- stdlib/3.4/asyncio/__init__.pyi | 2 +- stdlib/3.4/asyncio/coroutines.pyi | 2 +- stdlib/3.4/asyncio/events.pyi | 16 +- stdlib/3.4/asyncio/futures.pyi | 6 +- stdlib/3.4/asyncio/protocols.pyi | 2 +- stdlib/3.4/asyncio/queues.pyi | 2 +- stdlib/3.4/asyncio/streams.pyi | 2 +- stdlib/3.4/asyncio/subprocess.pyi | 12 +- stdlib/3.4/asyncio/tasks.pyi | 4 +- stdlib/3.4/asyncio/transports.pyi | 2 +- stdlib/3.4/xml/etree/ElementInclude.pyi | 6 +- stdlib/3.4/xml/etree/ElementPath.pyi | 8 +- stdlib/3.4/xml/etree/ElementTree.pyi | 26 +- stdlib/3.5/xml/etree/ElementInclude.pyi | 6 +- stdlib/3.5/xml/etree/ElementPath.pyi | 8 +- stdlib/3.5/xml/etree/ElementTree.pyi | 26 +- stdlib/3/_ast.pyi | 6 +- stdlib/3/_compression.pyi | 2 +- stdlib/3/_curses.pyi | 424 ++++---- stdlib/3/_importlib_modulespec.pyi | 24 +- stdlib/3/ast.pyi | 2 +- stdlib/3/builtins.pyi | 44 +- stdlib/3/codecs.pyi | 12 +- stdlib/3/collections/__init__.pyi | 2 +- stdlib/3/concurrent/futures/_base.pyi | 18 +- stdlib/3/concurrent/futures/process.pyi | 2 +- stdlib/3/datetime.pyi | 6 +- stdlib/3/decimal.pyi | 2 +- stdlib/3/functools.pyi | 6 +- stdlib/3/gc.pyi | 14 +- stdlib/3/gzip.pyi | 14 +- stdlib/3/html/entities.pyi | 8 +- stdlib/3/imp.pyi | 2 +- stdlib/3/importlib/abc.pyi | 4 +- stdlib/3/importlib/machinery.pyi | 12 +- stdlib/3/importlib/util.pyi | 2 +- stdlib/3/io.pyi | 2 +- stdlib/3/itertools.pyi | 2 +- stdlib/3/json.pyi | 2 +- stdlib/3/os/__init__.pyi | 62 +- stdlib/3/posixpath.pyi | 6 +- stdlib/3/resource.pyi | 40 +- stdlib/3/runpy.pyi | 6 +- stdlib/3/signal.pyi | 4 +- stdlib/3/smtplib.pyi | 58 +- stdlib/3/socket.pyi | 2 +- stdlib/3/sqlite3/dbapi2.pyi | 136 +-- stdlib/3/ssl.pyi | 92 +- stdlib/3/stat.pyi | 2 +- stdlib/3/subprocess.pyi | 12 +- stdlib/3/sys.pyi | 62 +- stdlib/3/time.pyi | 2 +- stdlib/3/tkinter/constants.pyi | 8 +- stdlib/3/token.pyi | 2 +- stdlib/3/tokenize.pyi | 14 +- stdlib/3/types.pyi | 54 +- stdlib/3/typing.pyi | 4 +- stdlib/3/unicodedata.pyi | 8 +- stdlib/3/unittest/__init__.pyi | 14 +- stdlib/3/urllib/parse.pyi | 34 +- stdlib/3/uuid.pyi | 16 +- stdlib/3/wsgiref/validate.pyi | 16 +- stdlib/3/xml/etree/ElementInclude.pyi | 6 +- stdlib/3/xml/etree/ElementPath.pyi | 2 +- stdlib/3/xml/etree/ElementTree.pyi | 18 +- stdlib/3/zlib.pyi | 32 +- third_party/2/boto/__init__.pyi | 20 +- third_party/2/boto/connection.pyi | 102 +- third_party/2/boto/ec2/__init__.pyi | 2 +- third_party/2/boto/ec2/elb/__init__.pyi | 10 +- third_party/2/croniter.pyi | 24 +- third_party/2/dateutil/parser.pyi | 18 +- third_party/2/dateutil/relativedelta.pyi | 20 +- third_party/2/fb303/FacebookService.pyi | 80 +- third_party/2/google/protobuf/descriptor.pyi | 204 ++-- .../2/google/protobuf/internal/decoder.pyi | 30 +- .../2/google/protobuf/internal/encoder.pyi | 30 +- .../google/protobuf/internal/wire_format.pyi | 38 +- third_party/2/google/protobuf/message.pyi | 4 +- third_party/2/kazoo/client.pyi | 70 +- third_party/2/kazoo/exceptions.pyi | 40 +- third_party/2/kazoo/recipe/watchers.pyi | 14 +- third_party/2/pycurl.pyi | 82 +- third_party/2/redis/client.pyi | 62 +- third_party/2/redis/connection.pyi | 114 +-- third_party/2/redis/utils.pyi | 2 +- third_party/2/requests/__init__.pyi | 2 +- .../2/requests/packages/urllib3/response.pyi | 4 +- third_party/2/requests/sessions.pyi | 30 +- third_party/2/routes/mapper.pyi | 60 +- third_party/2/routes/util.pyi | 4 +- third_party/2/scribe/scribe.pyi | 8 +- third_party/2/scribe/ttypes.pyi | 12 +- .../2/selenium/webdriver/remote/webdriver.pyi | 14 +- third_party/2/six/__init__.pyi | 2 +- third_party/2/sqlalchemy/__init__.pyi | 2 +- .../2/sqlalchemy/dialects/mysql/base.pyi | 224 ++--- .../2/sqlalchemy/engine/strategies.pyi | 18 +- third_party/2/sqlalchemy/engine/url.pyi | 14 +- third_party/2/sqlalchemy/exc.pyi | 22 +- third_party/2/sqlalchemy/log.pyi | 2 +- third_party/2/sqlalchemy/orm/__init__.pyi | 40 +- third_party/2/sqlalchemy/orm/session.pyi | 28 +- third_party/2/sqlalchemy/pool.pyi | 48 +- third_party/2/sqlalchemy/sql/expression.pyi | 72 +- third_party/2/sqlalchemy/sql/functions.pyi | 4 +- third_party/2/sqlalchemy/sql/schema.pyi | 6 +- third_party/2/sqlalchemy/sql/visitors.pyi | 2 +- .../2/sqlalchemy/util/_collections.pyi | 44 +- third_party/2/sqlalchemy/util/compat.pyi | 38 +- third_party/2/sqlalchemy/util/langhelpers.pyi | 26 +- third_party/2/thrift/Thrift.pyi | 70 +- .../2/thrift/protocol/TBinaryProtocol.pyi | 14 +- third_party/2/thrift/protocol/TProtocol.pyi | 18 +- third_party/2/thrift/transport/TSocket.pyi | 14 +- third_party/2/thrift/transport/TTransport.pyi | 30 +- third_party/2/tornado/concurrent.pyi | 12 +- third_party/2/tornado/gen.pyi | 60 +- third_party/2/tornado/httpclient.pyi | 94 +- third_party/2/tornado/httpserver.pyi | 28 +- third_party/2/tornado/httputil.pyi | 32 +- third_party/2/tornado/ioloop.pyi | 24 +- third_party/2/tornado/locks.pyi | 6 +- third_party/2/tornado/netutil.pyi | 20 +- third_party/2/tornado/tcpserver.pyi | 10 +- third_party/2/tornado/testing.pyi | 26 +- third_party/2/tornado/util.pyi | 14 +- third_party/2/tornado/web.pyi | 104 +- third_party/2/werkzeug/__init__.pyi | 2 +- third_party/2/yaml/__init__.pyi | 12 +- third_party/2/yaml/composer.pyi | 2 +- third_party/2/yaml/constructor.pyi | 20 +- third_party/2/yaml/emitter.pyi | 76 +- third_party/2/yaml/error.pyi | 22 +- third_party/2/yaml/events.pyi | 58 +- third_party/2/yaml/nodes.pyi | 34 +- third_party/2/yaml/parser.pyi | 14 +- third_party/2/yaml/reader.pyi | 36 +- third_party/2/yaml/representer.pyi | 16 +- third_party/2/yaml/resolver.pyi | 14 +- third_party/2/yaml/scanner.pyi | 32 +- third_party/2/yaml/serializer.pyi | 20 +- third_party/2/yaml/tokens.pyi | 86 +- third_party/2and3/backports_abc.pyi | 8 +- third_party/3/dateutil/relativedelta.pyi | 20 +- third_party/3/lxml/etree.pyi | 2 +- .../3/requests/packages/urllib3/response.pyi | 4 +- third_party/3/requests/sessions.pyi | 30 +- third_party/3/six/__init__.pyi | 2 +- third_party/3/typed_ast/ast27.pyi | 6 +- third_party/3/typed_ast/ast35.pyi | 6 +- third_party/3/werkzeug/__init__.pyi | 2 +- 219 files changed, 4047 insertions(+), 3105 deletions(-) mode change 120000 => 100644 stdlib/2/builtins.pyi diff --git a/.flake8 b/.flake8 index 9bb224f63cc8..433ab38afcce 100644 --- a/.flake8 +++ b/.flake8 @@ -13,7 +13,6 @@ ignore = F401, F811, E301, E302, E305, E501, E701, E704 # Errors that we need to fix before enabling flake8 by default: -# 3097 E261 at least 2 spaces before inline comment # 921 F821 undefined name # 221 E128 continuation line under-indented for visual indent # 213 E231 missing whitespace after , or : diff --git a/stdlib/2/ConfigParser.pyi b/stdlib/2/ConfigParser.pyi index ae6915e8dcd8..73f342c15b1a 100644 --- a/stdlib/2/ConfigParser.pyi +++ b/stdlib/2/ConfigParser.pyi @@ -1,11 +1,11 @@ from typing import Any, Tuple, IO -__all__ = ... # type: list[str] -DEFAULTSECT = ... # type: str -MAX_INTERPOLATION_DEPTH = ... # type: int +__all__ = ... # type: list[str] +DEFAULTSECT = ... # type: str +MAX_INTERPOLATION_DEPTH = ... # type: int class Error(Exception): - message = ... # type: Any + message = ... # type: Any def __init__(self, msg: str = ...) -> None: ... def _get_message(self) -> None: ... def _set_message(self, value: str) -> None: ... @@ -13,26 +13,26 @@ class Error(Exception): def __str__(self) -> str: ... class NoSectionError(Error): - section = ... # type: str + section = ... # type: str def __init__(self, section: str) -> None: ... class DuplicateSectionError(Error): - section = ... # type: str + section = ... # type: str def __init__(self, section: str) -> None: ... class NoOptionError(Error): - section = ... # type: str - option = ... # type: str + section = ... # type: str + option = ... # type: str def __init__(self, option: str, section: str) -> None: ... class InterpolationError(Error): - section = ... # type: str - option = ... # type: str - msg = ... # type: str + section = ... # type: str + option = ... # type: str + msg = ... # type: str def __init__(self, option: str, section: str, msg: str) -> None: ... class InterpolationMissingOptionError(InterpolationError): - reference = ... # type: str + reference = ... # type: str def __init__(self, option: str, section: str, rawval: str, reference: str) -> None: ... class InterpolationSyntaxError(InterpolationError): ... @@ -41,25 +41,25 @@ 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 = ... # type: str + errors = ... # type: 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 = ... # type: Any + line = ... # type: Any def __init__(self, filename: str, lineno: Any, line: Any) -> None: ... 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 = ... # type: Any + _sections = ... # type: dict + _defaults = ... # type: dict + _optcre = ... # type: Any + SECTCRE = ... # type: Any + OPTCRE = ... # type: Any + OPTCRE_NV = ... # type: 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]: ... @@ -73,7 +73,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 = ... # type: 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: ... @@ -84,13 +84,13 @@ class RawConfigParser: def _read(self, fp: file, fpname: str) -> None: ... class ConfigParser(RawConfigParser): - _KEYCRE = ... # type: Any + _KEYCRE = ... # type: Any def get(self, section: str, option: str, raw: bool = ..., vars: dict = ...) -> Any: ... def items(self, section: str, raw: bool = ..., vars: 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 = ... # type: 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: ... diff --git a/stdlib/2/Cookie.pyi b/stdlib/2/Cookie.pyi index f42cafcf5f2a..2df4eb037dad 100644 --- a/stdlib/2/Cookie.pyi +++ b/stdlib/2/Cookie.pyi @@ -7,12 +7,12 @@ from typing import Any class CookieError(Exception): ... class Morsel(dict): - key = ... # type: Any + key = ... # type: Any def __init__(self): ... def __setitem__(self, K, V): ... def isReservedKey(self, K): ... - value = ... # type: Any - coded_value = ... # type: Any + value = ... # type: Any + coded_value = ... # type: Any def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ... def output(self, attrs=None, header=...): ... def js_output(self, attrs=None): ... @@ -41,4 +41,4 @@ class SmartCookie(BaseCookie): def value_decode(self, val): ... def value_encode(self, val): ... -Cookie = ... # type: Any +Cookie = ... # type: Any diff --git a/stdlib/2/Queue.pyi b/stdlib/2/Queue.pyi index e1e41fbf30c7..831b96cc4bdd 100644 --- a/stdlib/2/Queue.pyi +++ b/stdlib/2/Queue.pyi @@ -8,12 +8,12 @@ class Empty(Exception): ... class Full(Exception): ... class Queue(Generic[_T]): - maxsize = ... # type: Any - mutex = ... # type: Any - not_empty = ... # type: Any - not_full = ... # type: Any - all_tasks_done = ... # type: Any - unfinished_tasks = ... # type: Any + maxsize = ... # type: Any + mutex = ... # type: Any + not_empty = ... # type: Any + not_full = ... # type: Any + all_tasks_done = ... # type: Any + unfinished_tasks = ... # type: Any def __init__(self, maxsize: int = ...) -> None: ... def task_done(self) -> None: ... def join(self) -> None: ... diff --git a/stdlib/2/StringIO.pyi b/stdlib/2/StringIO.pyi index 17fe7a10b394..bf77516d8a68 100644 --- a/stdlib/2/StringIO.pyi +++ b/stdlib/2/StringIO.pyi @@ -3,10 +3,10 @@ from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List class StringIO(IO[AnyStr], Generic[AnyStr]): - closed = ... # type: bool - softspace = ... # type: int - len = ... # type: int - name = ... # type: str + closed = ... # type: bool + softspace = ... # type: int + len = ... # type: int + name = ... # type: str def __init__(self, buf: AnyStr = ...) -> None: ... def __iter__(self) -> Iterator[AnyStr]: ... def next(self) -> AnyStr: ... diff --git a/stdlib/2/UserDict.pyi b/stdlib/2/UserDict.pyi index 10525fe116cc..a30c2e9b02b7 100644 --- a/stdlib/2/UserDict.pyi +++ b/stdlib/2/UserDict.pyi @@ -5,7 +5,7 @@ _KT = TypeVar('_KT') _VT = TypeVar('_VT') class UserDict(Dict[_KT, _VT], Generic[_KT, _VT]): - data = ... # type: Mapping[_KT, _VT] + data = ... # type: Mapping[_KT, _VT] def __init__(self, initialdata: Mapping[_KT, _VT] = ...) -> None: ... diff --git a/stdlib/2/__builtin__.pyi b/stdlib/2/__builtin__.pyi index d778c05196c1..834ea366e82c 100644 --- a/stdlib/2/__builtin__.pyi +++ b/stdlib/2/__builtin__.pyi @@ -808,13 +808,13 @@ class buffer(Sized): def __mul__(self, x: int) -> str: ... class memoryview(Sized, Container[bytes]): - format = ... # type: str - itemsize = ... # type: int - shape = ... # type: Optional[Tuple[int, ...]] - strides = ... # type: Optional[Tuple[int, ...]] - suboffsets = ... # type: Optional[Tuple[int, ...]] - readonly = ... # type: bool - ndim = ... # type: int + format = ... # type: str + itemsize = ... # type: int + shape = ... # type: Optional[Tuple[int, ...]] + strides = ... # type: Optional[Tuple[int, ...]] + suboffsets = ... # type: Optional[Tuple[int, ...]] + readonly = ... # type: bool + ndim = ... # type: int def __init__(self, obj: Union[str, bytearray, buffer, memoryview]) -> None: ... diff --git a/stdlib/2/_ast.pyi b/stdlib/2/_ast.pyi index 26f9ce1fc73f..02236a840d81 100644 --- a/stdlib/2/_ast.pyi +++ b/stdlib/2/_ast.pyi @@ -8,8 +8,8 @@ PyCF_ONLY_AST = ... # type: int identifier = str class AST: - _attributes = ... # type: typing.Tuple[str, ...] - _fields = ... # type: typing.Tuple[str, ...] + _attributes = ... # type: typing.Tuple[str, ...] + _fields = ... # type: typing.Tuple[str, ...] def __init__(self, *args, **kwargs) -> None: ... class mod(AST): diff --git a/stdlib/2/builtins.pyi b/stdlib/2/builtins.pyi deleted file mode 120000 index 75ac8fd37607..000000000000 --- a/stdlib/2/builtins.pyi +++ /dev/null @@ -1 +0,0 @@ -__builtin__.pyi \ No newline at end of file diff --git a/stdlib/2/builtins.pyi b/stdlib/2/builtins.pyi new file mode 100644 index 000000000000..834ea366e82c --- /dev/null +++ b/stdlib/2/builtins.pyi @@ -0,0 +1,944 @@ +# Stubs for builtins (Python 2.7) + +# True and False are deliberately omitted because they are keywords in +# Python 3, and stub files conform to Python 3 syntax. + +from typing import ( + TypeVar, Iterator, Iterable, overload, + Sequence, Mapping, Tuple, List, Any, Dict, Callable, Generic, Set, + AbstractSet, FrozenSet, Sized, Reversible, SupportsInt, SupportsFloat, SupportsAbs, + SupportsRound, IO, BinaryIO, Union, AnyStr, MutableSequence, MutableMapping, + MutableSet, ItemsView, KeysView, ValuesView, Optional, Container, +) +from abc import abstractmethod, ABCMeta + +_T = TypeVar('_T') +_T_co = TypeVar('_T_co', covariant=True) +_KT = TypeVar('_KT') +_VT = TypeVar('_VT') +_S = TypeVar('_S') +_T1 = TypeVar('_T1') +_T2 = TypeVar('_T2') +_T3 = TypeVar('_T3') +_T4 = TypeVar('_T4') +_TT = TypeVar('_TT', bound='type') + +class staticmethod: pass # Special, only valid as a decorator. +class classmethod: pass # Special, only valid as a decorator. + +class object: + __doc__ = ... # type: Optional[str] + __class__ = ... # type: type + __slots__ = ... # type: Optional[Union[str, unicode, Iterable[Union[str, unicode]]]] + + def __init__(self) -> None: ... + def __new__(cls) -> Any: ... + def __setattr__(self, name: str, value: Any) -> None: ... + def __eq__(self, o: object) -> bool: ... + def __ne__(self, o: object) -> bool: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __hash__(self) -> int: ... + +class type: + __bases__ = ... # type: Tuple[type, ...] + __name__ = ... # type: str + __module__ = ... # type: str + __dict__ = ... # type: Dict[unicode, Any] + + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__(self, name: str, bases: Tuple[type, ...], dict: Dict[str, Any]) -> None: ... + # TODO: __new__ may have to be special and not a static method. + @overload + def __new__(cls, o: object) -> type: ... + @overload + def __new__(cls, name: str, bases: Tuple[type, ...], namespace: Dict[str, Any]) -> type: ... + def __call__(self, *args: Any, **kwds: Any) -> Any: ... + + # Only new-style classes + __mro__ = ... # type: Tuple[type, ...] + # Note: the documentation doesnt specify what the return type is, the standard + # implementation seems to be returning a list. + def mro(self) -> List[type]: ... + def __subclasses__(self: _TT) -> List[_TT]: ... + +class int(SupportsInt, SupportsFloat, SupportsAbs[int]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, x: SupportsInt) -> None: ... + @overload + def __init__(self, x: Union[str, unicode, bytearray], base: int = 10) -> None: ... + def bit_length(self) -> int: ... + + def __add__(self, x: int) -> int: ... + def __sub__(self, x: int) -> int: ... + def __mul__(self, x: int) -> int: ... + def __floordiv__(self, x: int) -> int: ... + def __div__(self, x: int) -> int: ... + def __truediv__(self, x: int) -> float: ... + def __mod__(self, x: int) -> int: ... + def __radd__(self, x: int) -> int: ... + def __rsub__(self, x: int) -> int: ... + def __rmul__(self, x: int) -> int: ... + def __rfloordiv__(self, x: int) -> int: ... + def __rdiv__(self, x: int) -> int: ... + def __rtruediv__(self, x: int) -> float: ... + def __rmod__(self, x: int) -> int: ... + def __pow__(self, x: int) -> Any: ... # Return type can be int or float, depending on x. + def __rpow__(self, x: int) -> Any: ... + def __and__(self, n: int) -> int: ... + def __or__(self, n: int) -> int: ... + def __xor__(self, n: int) -> int: ... + def __lshift__(self, n: int) -> int: ... + def __rshift__(self, n: int) -> int: ... + def __rand__(self, n: int) -> int: ... + def __ror__(self, n: int) -> int: ... + def __rxor__(self, n: int) -> int: ... + def __rlshift__(self, n: int) -> int: ... + def __rrshift__(self, n: int) -> int: ... + def __neg__(self) -> int: ... + def __pos__(self) -> int: ... + def __invert__(self) -> int: ... + + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: int) -> bool: ... + def __le__(self, x: int) -> bool: ... + def __gt__(self, x: int) -> bool: ... + def __ge__(self, x: int) -> bool: ... + + def __str__(self) -> str: ... + def __float__(self) -> float: ... + def __int__(self) -> int: ... + def __abs__(self) -> int: ... + def __hash__(self) -> int: ... + +class float(SupportsFloat, SupportsInt, SupportsAbs[float]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, x: SupportsFloat) -> None: ... + @overload + def __init__(self, x: unicode) -> None: ... + @overload + def __init__(self, x: bytearray) -> None: ... + def as_integer_ratio(self) -> Tuple[int, int]: ... + def hex(self) -> str: ... + def is_integer(self) -> bool: ... + @classmethod + def fromhex(cls, s: str) -> float: ... + + def __add__(self, x: float) -> float: ... + def __sub__(self, x: float) -> float: ... + def __mul__(self, x: float) -> float: ... + def __floordiv__(self, x: float) -> float: ... + def __div__(self, x: float) -> float: ... + def __truediv__(self, x: float) -> float: ... + def __mod__(self, x: float) -> float: ... + def __pow__(self, x: float) -> float: ... + def __radd__(self, x: float) -> float: ... + def __rsub__(self, x: float) -> float: ... + def __rmul__(self, x: float) -> float: ... + def __rfloordiv__(self, x: float) -> float: ... + def __rdiv__(self, x: float) -> float: ... + def __rtruediv__(self, x: float) -> float: ... + def __rmod__(self, x: float) -> float: ... + def __rpow__(self, x: float) -> float: ... + + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: float) -> bool: ... + def __le__(self, x: float) -> bool: ... + def __gt__(self, x: float) -> bool: ... + def __ge__(self, x: float) -> bool: ... + def __neg__(self) -> float: ... + def __pos__(self) -> float: ... + + def __str__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + def __format__(self, format_spec: AnyStr) -> str: ... + +class complex(SupportsAbs[float]): + @overload + def __init__(self, re: float = 0.0, im: float = 0.0) -> None: ... + @overload + def __init__(self, s: str) -> None: ... + + @property + def real(self) -> float: ... + @property + def imag(self) -> float: ... + + def conjugate(self) -> complex: ... + + def __add__(self, x: complex) -> complex: ... + def __sub__(self, x: complex) -> complex: ... + def __mul__(self, x: complex) -> complex: ... + def __pow__(self, x: complex) -> complex: ... + def __div__(self, x: complex) -> complex: ... + def __truediv__(self, x: complex) -> complex: ... + def __radd__(self, x: complex) -> complex: ... + def __rsub__(self, x: complex) -> complex: ... + def __rmul__(self, x: complex) -> complex: ... + def __rpow__(self, x: complex) -> complex: ... + def __rdiv__(self, x: complex) -> complex: ... + def __rtruediv__(self, x: complex) -> complex: ... + + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __neg__(self) -> complex: ... + def __pos__(self) -> complex: ... + + def __str__(self) -> str: ... + def __abs__(self) -> float: ... + def __hash__(self) -> int: ... + +class basestring(metaclass=ABCMeta): ... + +class unicode(basestring, Sequence[unicode]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, o: object) -> None: ... + @overload + def __init__(self, o: str, encoding: unicode = ..., errors: unicode = ...) -> None: ... + def capitalize(self) -> unicode: ... + def center(self, width: int, fillchar: unicode = u' ') -> unicode: ... + def count(self, x: unicode) -> int: ... + def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ... + def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ... + def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]], start: int = 0, + end: int = ...) -> bool: ... + def expandtabs(self, tabsize: int = 8) -> unicode: ... + def find(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def format(self, *args: Any, **kwargs: Any) -> unicode: ... + def format_map(self, map: Mapping[unicode, Any]) -> unicode: ... + def index(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def isalnum(self) -> bool: ... + def isalpha(self) -> bool: ... + def isdecimal(self) -> bool: ... + def isdigit(self) -> bool: ... + def isidentifier(self) -> bool: ... + def islower(self) -> bool: ... + def isnumeric(self) -> bool: ... + def isprintable(self) -> bool: ... + def isspace(self) -> bool: ... + def istitle(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, iterable: Iterable[unicode]) -> unicode: ... + def ljust(self, width: int, fillchar: unicode = u' ') -> unicode: ... + def lower(self) -> unicode: ... + def lstrip(self, chars: unicode = ...) -> unicode: ... + def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ... + def replace(self, old: unicode, new: unicode, count: int = ...) -> unicode: ... + def rfind(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def rindex(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def rjust(self, width: int, fillchar: unicode = u' ') -> unicode: ... + def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ... + def rsplit(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ... + def rstrip(self, chars: unicode = ...) -> unicode: ... + def split(self, sep: Optional[unicode] = ..., maxsplit: int = ...) -> List[unicode]: ... + def splitlines(self, keepends: bool = ...) -> List[unicode]: ... + def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]], start: int = 0, + end: int = ...) -> bool: ... + def strip(self, chars: unicode = ...) -> unicode: ... + def swapcase(self) -> unicode: ... + def title(self) -> unicode: ... + def translate(self, table: Union[Dict[int, Any], unicode]) -> unicode: ... + def upper(self) -> unicode: ... + def zfill(self, width: int) -> unicode: ... + + @overload + def __getitem__(self, i: int) -> unicode: ... + @overload + def __getitem__(self, s: slice) -> unicode: ... + def __getslice__(self, start: int, stop: int) -> unicode: ... + def __add__(self, s: unicode) -> unicode: ... + def __mul__(self, n: int) -> unicode: ... + def __mod__(self, x: Any) -> unicode: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: unicode) -> bool: ... + def __le__(self, x: unicode) -> bool: ... + def __gt__(self, x: unicode) -> bool: ... + def __ge__(self, x: unicode) -> bool: ... + + def __len__(self) -> int: ... + def __contains__(self, s: object) -> bool: ... + def __iter__(self) -> Iterator[unicode]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __hash__(self) -> int: ... + +class str(basestring, Sequence[str]): + def __init__(self, object: object) -> None: ... + def capitalize(self) -> str: ... + def center(self, width: int, fillchar: str = ...) -> str: ... + def count(self, x: unicode) -> int: ... + def decode(self, encoding: unicode = ..., errors: unicode = ...) -> unicode: ... + def encode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ... + def endswith(self, suffix: Union[unicode, Tuple[unicode, ...]]) -> bool: ... + def expandtabs(self, tabsize: int = 8) -> str: ... + def find(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def format(self, *args: Any, **kwargs: Any) -> str: ... + def index(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def isalnum(self) -> bool: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def istitle(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, iterable: Iterable[AnyStr]) -> AnyStr: ... + def ljust(self, width: int, fillchar: str = ...) -> str: ... + def lower(self) -> str: ... + @overload + def lstrip(self, chars: str = ...) -> str: ... + @overload + def lstrip(self, chars: unicode) -> unicode: ... + @overload + def partition(self, sep: bytearray) -> Tuple[str, bytearray, str]: ... + @overload + def partition(self, sep: str) -> Tuple[str, str, str]: ... + @overload + def partition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ... + def replace(self, old: AnyStr, new: AnyStr, count: int = ...) -> AnyStr: ... + def rfind(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def rindex(self, sub: unicode, start: int = 0, end: int = 0) -> int: ... + def rjust(self, width: int, fillchar: str = ...) -> str: ... + @overload + def rpartition(self, sep: bytearray) -> Tuple[str, bytearray, str]: ... + @overload + def rpartition(self, sep: str) -> Tuple[str, str, str]: ... + @overload + def rpartition(self, sep: unicode) -> Tuple[unicode, unicode, unicode]: ... + @overload + def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ... + @overload + def rsplit(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ... + @overload + def rstrip(self, chars: str = ...) -> str: ... + @overload + def rstrip(self, chars: unicode) -> unicode: ... + @overload + def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[str]: ... + @overload + def split(self, sep: unicode, maxsplit: int = ...) -> List[unicode]: ... + def splitlines(self, keepends: bool = ...) -> List[str]: ... + def startswith(self, prefix: Union[unicode, Tuple[unicode, ...]]) -> bool: ... + @overload + def strip(self, chars: str = ...) -> str: ... + @overload + def strip(self, chars: unicode) -> unicode: ... + def swapcase(self) -> str: ... + def title(self) -> str: ... + def translate(self, table: Optional[AnyStr], deletechars: AnyStr = ...) -> AnyStr: ... + def upper(self) -> str: ... + def zfill(self, width: int) -> str: ... + + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[str]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> str: ... + @overload + def __getitem__(self, s: slice) -> str: ... + def __getslice__(self, start: int, stop: int) -> str: ... + def __add__(self, s: AnyStr) -> AnyStr: ... + def __mul__(self, n: int) -> str: ... + def __rmul__(self, n: int) -> str: ... + def __contains__(self, o: object) -> bool: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: unicode) -> bool: ... + def __le__(self, x: unicode) -> bool: ... + def __gt__(self, x: unicode) -> bool: ... + def __ge__(self, x: unicode) -> bool: ... + def __mod__(self, x: Any) -> str: ... + +class bytearray(MutableSequence[int]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, x: Union[Iterable[int], str]) -> None: ... + @overload + def __init__(self, x: unicode, encoding: unicode, + errors: unicode = ...) -> None: ... + @overload + def __init__(self, length: int) -> None: ... + def capitalize(self) -> bytearray: ... + def center(self, width: int, fillchar: str = ...) -> bytearray: ... + def count(self, x: str) -> int: ... + def decode(self, encoding: unicode = ..., errors: unicode = ...) -> str: ... + def endswith(self, suffix: Union[str, Tuple[str, ...]]) -> bool: ... + def expandtabs(self, tabsize: int = 8) -> bytearray: ... + def find(self, sub: str, start: int = 0, end: int = ...) -> int: ... + def index(self, sub: str, start: int = 0, end: int = ...) -> int: ... + def insert(self, index: int, object: int) -> None: ... + def isalnum(self) -> bool: ... + def isalpha(self) -> bool: ... + def isdigit(self) -> bool: ... + def islower(self) -> bool: ... + def isspace(self) -> bool: ... + def istitle(self) -> bool: ... + def isupper(self) -> bool: ... + def join(self, iterable: Iterable[str]) -> bytearray: ... + def ljust(self, width: int, fillchar: str = ...) -> bytearray: ... + def lower(self) -> bytearray: ... + def lstrip(self, chars: str = ...) -> bytearray: ... + def partition(self, sep: str) -> Tuple[bytearray, bytearray, bytearray]: ... + def replace(self, old: str, new: str, count: int = ...) -> bytearray: ... + def rfind(self, sub: str, start: int = 0, end: int = ...) -> int: ... + def rindex(self, sub: str, start: int = 0, end: int = ...) -> int: ... + def rjust(self, width: int, fillchar: str = ...) -> bytearray: ... + def rpartition(self, sep: str) -> Tuple[bytearray, bytearray, bytearray]: ... + def rsplit(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[bytearray]: ... + def rstrip(self, chars: str = ...) -> bytearray: ... + def split(self, sep: Optional[str] = ..., maxsplit: int = ...) -> List[bytearray]: ... + def splitlines(self, keepends: bool = ...) -> List[bytearray]: ... + def startswith(self, prefix: Union[str, Tuple[str, ...]]) -> bool: ... + def strip(self, chars: str = ...) -> bytearray: ... + def swapcase(self) -> bytearray: ... + def title(self) -> bytearray: ... + def translate(self, table: str) -> bytearray: ... + def upper(self) -> bytearray: ... + def zfill(self, width: int) -> bytearray: ... + @staticmethod + def fromhex(x: str) -> bytearray: ... + + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __str__(self) -> str: ... + def __repr__(self) -> str: ... + def __int__(self) -> int: ... + def __float__(self) -> float: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> int: ... + @overload + def __getitem__(self, s: slice) -> bytearray: ... + def __getslice__(self, start: int, stop: int) -> bytearray: ... + @overload + def __setitem__(self, i: int, x: int) -> None: ... + @overload + def __setitem__(self, s: slice, x: Union[Iterable[int], str]) -> None: ... + def __setslice__(self, start: int, stop: int, x: Union[Sequence[int], str]) -> None: ... + def __delitem__(self, i: Union[int, slice]) -> None: ... + def __delslice__(self, start: int, stop: int) -> None: ... + def __add__(self, s: str) -> bytearray: ... + def __mul__(self, n: int) -> bytearray: ... + def __contains__(self, o: object) -> bool: ... + def __eq__(self, x: object) -> bool: ... + def __ne__(self, x: object) -> bool: ... + def __lt__(self, x: str) -> bool: ... + def __le__(self, x: str) -> bool: ... + def __gt__(self, x: str) -> bool: ... + def __ge__(self, x: str) -> bool: ... + +class bool(int, SupportsInt, SupportsFloat): + def __init__(self, o: object = ...) -> None: ... + +class slice: + start = 0 + step = 0 + stop = 0 + def __init__(self, start: int, stop: int = 0, step: int = 0) -> None: ... + +class tuple(Sequence[_T_co], Generic[_T_co]): + def __init__(self, iterable: Iterable[_T_co] = ...) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, x: object) -> bool: ... + @overload + def __getitem__(self, x: int) -> _T_co: ... + @overload + def __getitem__(self, x: slice) -> Tuple[_T_co, ...]: ... + def __iter__(self) -> Iterator[_T_co]: ... + def __lt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __le__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __gt__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __ge__(self, x: Tuple[_T_co, ...]) -> bool: ... + def __add__(self, x: Tuple[_T_co, ...]) -> Tuple[_T_co, ...]: ... + def __mul__(self, n: int) -> Tuple[_T_co, ...]: ... + def __rmul__(self, n: int) -> Tuple[_T_co, ...]: ... + def count(self, x: Any) -> int: ... + def index(self, x: Any) -> int: ... + +class function: + # TODO name of the class (corresponds to Python 'function' class) + __name__ = ... # type: str + __module__ = ... # type: str + +class list(MutableSequence[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def append(self, object: _T) -> None: ... + def extend(self, iterable: Iterable[_T]) -> None: ... + def pop(self, index: int = -1) -> _T: ... + def index(self, object: _T, start: int = 0, stop: int = ...) -> int: ... + def count(self, object: _T) -> int: ... + def insert(self, index: int, object: _T) -> None: ... + def remove(self, object: _T) -> None: ... + def reverse(self) -> None: ... + def sort(self, cmp: Callable[[_T, _T], Any] = ..., key: Callable[[_T], Any] = ..., reverse: bool = ...) -> None: ... + + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __hash__(self) -> int: ... + @overload + def __getitem__(self, i: int) -> _T: ... + @overload + def __getitem__(self, s: slice) -> List[_T]: ... + def __getslice__(self, start: int, stop: int) -> List[_T]: ... + @overload + def __setitem__(self, i: int, o: _T) -> None: ... + @overload + def __setitem__(self, s: slice, o: Iterable[_T]) -> None: ... + def __setslice__(self, start: int, stop: int, o: Sequence[_T]) -> None: ... + def __delitem__(self, i: Union[int, slice]) -> None: ... + def __delslice__(self, start: int, stop: int) -> None: ... + def __add__(self, x: List[_T]) -> List[_T]: ... + def __iadd__(self, x: Iterable[_T]) -> List[_T]: ... + def __mul__(self, n: int) -> List[_T]: ... + def __rmul__(self, n: int) -> List[_T]: ... + def __contains__(self, o: object) -> bool: ... + def __reversed__(self) -> Iterator[_T]: ... + def __gt__(self, x: List[_T]) -> bool: ... + def __ge__(self, x: List[_T]) -> bool: ... + def __lt__(self, x: List[_T]) -> bool: ... + def __le__(self, x: List[_T]) -> bool: ... + +class dict(MutableMapping[_KT, _VT], Generic[_KT, _VT]): + # NOTE: Keyword arguments are special. If they are used, _KT must include + # str, but we have no way of enforcing it here. + @overload + def __init__(self, **kwargs: _VT) -> None: ... + @overload + def __init__(self, map: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def __init__(self, iterable: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + + def has_key(self, k: _KT) -> bool: ... + def clear(self) -> None: ... + def copy(self) -> Dict[_KT, _VT]: ... + def get(self, k: _KT, default: _VT = None) -> _VT: ... + def pop(self, k: _KT, default: _VT = ...) -> _VT: ... + def popitem(self) -> Tuple[_KT, _VT]: ... + def setdefault(self, k: _KT, default: _VT = ...) -> _VT: ... + @overload + def update(self, m: Mapping[_KT, _VT], **kwargs: _VT) -> None: ... + @overload + def update(self, m: Iterable[Tuple[_KT, _VT]], **kwargs: _VT) -> None: ... + def keys(self) -> List[_KT]: ... + def values(self) -> List[_VT]: ... + def items(self) -> List[Tuple[_KT, _VT]]: ... + def iterkeys(self) -> Iterator[_KT]: ... + def itervalues(self) -> Iterator[_VT]: ... + def iteritems(self) -> Iterator[Tuple[_KT, _VT]]: ... + def viewkeys(self) -> KeysView[_KT]: ... + def viewvalues(self) -> ValuesView[_VT]: ... + def viewitems(self) -> ItemsView[_KT, _VT]: ... + @staticmethod + @overload + def fromkeys(seq: Sequence[_T]) -> Dict[_T, Any]: ... # TODO: Actually a class method (mypy/issues#328) + @staticmethod + @overload + def fromkeys(seq: Sequence[_T], value: _S) -> Dict[_T, _S]: ... + def __len__(self) -> int: ... + def __getitem__(self, k: _KT) -> _VT: ... + def __setitem__(self, k: _KT, v: _VT) -> None: ... + def __delitem__(self, v: _KT) -> None: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_KT]: ... + def __str__(self) -> str: ... + +class set(MutableSet[_T], Generic[_T]): + def __init__(self, iterable: Iterable[_T] = ...) -> None: ... + def add(self, element: _T) -> None: ... + def clear(self) -> None: ... + def copy(self) -> set[_T]: ... + def difference(self, *s: Iterable[Any]) -> set[_T]: ... + def difference_update(self, *s: Iterable[Any]) -> None: ... + def discard(self, element: _T) -> None: ... + def intersection(self, *s: Iterable[Any]) -> set[_T]: ... + def intersection_update(self, *s: Iterable[Any]) -> None: ... + def isdisjoint(self, s: Iterable[Any]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def pop(self) -> _T: ... + def remove(self, element: _T) -> None: ... + def symmetric_difference(self, s: Iterable[_T]) -> set[_T]: ... + def symmetric_difference_update(self, s: Iterable[_T]) -> None: ... + def union(self, *s: Iterable[_T]) -> set[_T]: ... + def update(self, *s: Iterable[_T]) -> None: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[Any]) -> set[_T]: ... + def __iand__(self, s: AbstractSet[Any]) -> set[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> set[Union[_T, _S]]: ... + def __ior__(self, s: AbstractSet[_S]) -> set[Union[_T, _S]]: ... + def __sub__(self, s: AbstractSet[Any]) -> set[_T]: ... + def __isub__(self, s: AbstractSet[Any]) -> set[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> set[Union[_T, _S]]: ... + def __ixor__(self, s: AbstractSet[_S]) -> set[Union[_T, _S]]: ... + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + # TODO more set operations + +class frozenset(FrozenSet[_T], Generic[_T]): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, iterable: Iterable[_T]) -> None: ... + def copy(self) -> frozenset[_T]: ... + def difference(self, *s: Iterable[Any]) -> frozenset[_T]: ... + def intersection(self, *s: Iterable[Any]) -> frozenset[_T]: ... + def isdisjoint(self, s: Iterable[_T]) -> bool: ... + def issubset(self, s: Iterable[Any]) -> bool: ... + def issuperset(self, s: Iterable[Any]) -> bool: ... + def symmetric_difference(self, s: Iterable[_T]) -> frozenset[_T]: ... + def union(self, *s: Iterable[_T]) -> frozenset[_T]: ... + def __len__(self) -> int: ... + def __contains__(self, o: object) -> bool: ... + def __iter__(self) -> Iterator[_T]: ... + def __str__(self) -> str: ... + def __and__(self, s: AbstractSet[_T]) -> frozenset[_T]: ... + def __or__(self, s: AbstractSet[_S]) -> frozenset[Union[_T, _S]]: ... + def __sub__(self, s: AbstractSet[_T]) -> frozenset[_T]: ... + def __xor__(self, s: AbstractSet[_S]) -> frozenset[Union[_T, _S]]: ... + def __le__(self, s: AbstractSet[Any]) -> bool: ... + def __lt__(self, s: AbstractSet[Any]) -> bool: ... + def __ge__(self, s: AbstractSet[Any]) -> bool: ... + def __gt__(self, s: AbstractSet[Any]) -> bool: ... + +class enumerate(Iterator[Tuple[int, _T]], Generic[_T]): + def __init__(self, iterable: Iterable[_T], start: int = 0) -> None: ... + def __iter__(self) -> Iterator[Tuple[int, _T]]: ... + def next(self) -> Tuple[int, _T]: ... + # TODO __getattribute__ + +class xrange(Sized, Iterable[int], Reversible[int]): + @overload + def __init__(self, stop: int) -> None: ... + @overload + def __init__(self, start: int, stop: int, step: int = 1) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[int]: ... + def __getitem__(self, i: int) -> int: ... + def __reversed__(self) -> Iterator[int]: ... + +class module: + __name__ = ... # type: str + __file__ = ... # type: str + __dict__ = ... # type: Dict[unicode, Any] + +class property: + def __init__(self, fget: Callable[[Any], Any] = None, + fset: Callable[[Any, Any], None] = None, + fdel: Callable[[Any], None] = None, doc: str = None) -> None: ... + def getter(self, fget: Callable[[Any], Any]) -> property: ... + def setter(self, fset: Callable[[Any, Any], None]) -> property: ... + def deleter(self, fdel: Callable[[Any], None]) -> property: ... + def __get__(self, obj: Any, type: type=None) -> Any: ... + def __set__(self, obj: Any, value: Any) -> None: ... + def __delete__(self, obj: Any) -> None: ... + +long = int +bytes = str + +NotImplemented = ... # type: Any + +def abs(n: SupportsAbs[_T]) -> _T: ... +def all(i: Iterable) -> bool: ... +def any(i: Iterable) -> bool: ... +def bin(number: int) -> str: ... +def callable(o: object) -> bool: ... +def chr(code: int) -> str: ... +def compile(source: Any, filename: unicode, mode: str, flags: int = 0, + dont_inherit: int = 0) -> Any: ... +def delattr(o: Any, name: unicode) -> None: ... +def dir(o: object = ...) -> List[str]: ... +@overload +def divmod(a: int, b: int) -> Tuple[int, int]: ... +@overload +def divmod(a: float, b: float) -> Tuple[float, float]: ... +def exit(code: int = ...) -> None: ... +@overload +def filter(function: Callable[[_T], Any], + iterable: Iterable[_T]) -> List[_T]: ... +@overload +def filter(function: None, + iterable: Iterable[Optional[_T]]) -> List[_T]: ... +def format(o: object, format_spec: str = '') -> str: ... # TODO unicode +def getattr(o: Any, name: unicode, default: Any = None) -> Any: ... +def hasattr(o: Any, name: unicode) -> bool: ... +def hash(o: object) -> int: ... +def hex(i: int) -> str: ... # TODO __index__ +def id(o: object) -> int: ... +def input(prompt: unicode = ...) -> Any: ... +def intern(string: str) -> str: ... +@overload +def iter(iterable: Iterable[_T]) -> Iterator[_T]: ... +@overload +def iter(function: Callable[[], _T], sentinel: _T) -> Iterator[_T]: ... +def isinstance(o: object, t: Union[type, Tuple[type, ...]]) -> bool: ... +def issubclass(cls: type, classinfo: Union[type, Tuple[type, ...]]) -> bool: ... +def len(o: Sized) -> int: ... +@overload +def map(func: Callable[[_T1], _S], iter1: Iterable[_T1]) -> List[_S]: ... +@overload +def map(func: Callable[[_T1, _T2], _S], + iter1: Iterable[_T1], + iter2: Iterable[_T2]) -> List[_S]: ... # TODO more than two iterables +@overload +def max(arg1: _T, arg2: _T, *args: _T, key: Callable[[_T], Any] = ...) -> _T: ... +@overload +def max(iterable: Iterable[_T], key: Callable[[_T], Any] = ...) -> _T: ... +@overload +def min(arg1: _T, arg2: _T, *args: _T, key: Callable[[_T], Any] = ...) -> _T: ... +@overload +def min(iterable: Iterable[_T], key: Callable[[_T], Any] = ...) -> _T: ... +@overload +def next(i: Iterator[_T]) -> _T: ... +@overload +def next(i: Iterator[_T], default: _T) -> _T: ... +def oct(i: int) -> str: ... # TODO __index__ +@overload +def open(file: str, mode: str = 'r', buffering: int = ...) -> BinaryIO: ... +@overload +def open(file: unicode, mode: str = 'r', buffering: int = ...) -> BinaryIO: ... +@overload +def open(file: int, mode: str = 'r', buffering: int = ...) -> BinaryIO: ... +def ord(c: unicode) -> int: ... +# This is only available after from __future__ import print_function. +def print(*values: Any, sep: unicode = u' ', end: unicode = u'\n', + file: IO[Any] = ...) -> None: ... +@overload +def pow(x: int, y: int) -> Any: ... # The return type can be int or float, depending on y. +@overload +def pow(x: int, y: int, z: int) -> Any: ... +@overload +def pow(x: float, y: float) -> float: ... +@overload +def pow(x: float, y: float, z: float) -> float: ... +def quit(code: int = ...) -> None: ... +def range(x: int, y: int = 0, step: int = 1) -> List[int]: ... +def raw_input(prompt: unicode = ...) -> str: ... + +@overload +def reduce(function: Callable[[_T, _S], _T], iterable: Iterable[_S], initializer: _T) -> _T: ... +@overload +def reduce(function: Callable[[_T, _T], _T], iterable: Iterable[_T]) -> _T: ... + +def reload(module: Any) -> Any: ... +@overload +def reversed(object: Reversible[_T]) -> Iterator[_T]: ... +@overload +def reversed(object: Sequence[_T]) -> Iterator[_T]: ... +def repr(o: object) -> str: ... +@overload +def round(number: float) -> float: ... +@overload +def round(number: float, ndigits: int) -> float: ... # Always return a float if given ndigits. +@overload +def round(number: SupportsRound[_T]) -> _T: ... +@overload +def round(number: SupportsRound[_T], ndigits: int) -> _T: ... +def setattr(object: Any, name: unicode, value: Any) -> None: ... +def sorted(iterable: Iterable[_T], *, + cmp: Callable[[_T, _T], int] = ..., + key: Callable[[_T], Any] = ..., + reverse: bool = ...) -> List[_T]: ... +def sum(iterable: Iterable[_T], start: _T = ...) -> _T: ... +def unichr(i: int) -> unicode: ... +def vars(object: Any = ...) -> Dict[str, Any]: ... +@overload +def zip(iter1: Iterable[_T1]) -> List[Tuple[_T1]]: ... +@overload +def zip(iter1: Iterable[_T1], + iter2: Iterable[_T2]) -> List[Tuple[_T1, _T2]]: ... +@overload +def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], + iter3: Iterable[_T3]) -> List[Tuple[_T1, _T2, _T3]]: ... +@overload +def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], + iter4: Iterable[_T4]) -> List[Tuple[_T1, _T2, + _T3, _T4]]: ... # TODO more than four iterables +def __import__(name: unicode, + globals: Dict[str, Any] = ..., + locals: Dict[str, Any] = ..., + fromlist: List[str] = ..., level: int = ...) -> Any: ... + +def globals() -> Dict[str, Any]: ... +def locals() -> Dict[str, Any]: ... + +# Actually the type of Ellipsis is , but since it's +# not exposed anywhere under that name, we make it private here. +class ellipsis: ... +Ellipsis = ... # type: ellipsis + +# TODO: buffer support is incomplete; e.g. some_string.startswith(some_buffer) doesn't type check. +AnyBuffer = TypeVar('AnyBuffer', str, unicode, bytearray, buffer) + +class buffer(Sized): + def __init__(self, object: AnyBuffer, offset: int = ..., size: int = ...) -> None: ... + def __add__(self, other: AnyBuffer) -> str: ... + def __cmp__(self, other: AnyBuffer) -> bool: ... + def __getitem__(self, key: Union[int, slice]) -> str: ... + def __getslice__(self, i: int, j: int) -> str: ... + def __len__(self) -> int: ... + def __mul__(self, x: int) -> str: ... + +class memoryview(Sized, Container[bytes]): + format = ... # type: str + itemsize = ... # type: int + shape = ... # type: Optional[Tuple[int, ...]] + strides = ... # type: Optional[Tuple[int, ...]] + suboffsets = ... # type: Optional[Tuple[int, ...]] + readonly = ... # type: bool + ndim = ... # type: int + + def __init__(self, obj: Union[str, bytearray, buffer, memoryview]) -> None: ... + + @overload + def __getitem__(self, i: int) -> bytes: ... + @overload + def __getitem__(self, s: slice) -> memoryview: ... + + def __contains__(self, x: object) -> bool: ... + def __iter__(self) -> Iterator[bytes]: ... + def __len__(self) -> int: ... + + @overload + def __setitem__(self, i: int, o: bytes) -> None: ... + @overload + def __setitem__(self, s: slice, o: Sequence[bytes]) -> None: ... + @overload + def __setitem__(self, s: slice, o: memoryview) -> None: ... + + def tobytes(self) -> bytes: ... + def tolist(self) -> List[int]: ... + +class BaseException: + args = ... # type: Tuple[Any, ...] + message = ... # type: str + def __init__(self, *args: Any) -> None: ... +class GeneratorExit(BaseException): ... +class KeyboardInterrupt(BaseException): ... +class SystemExit(BaseException): + code = 0 +class Exception(BaseException): ... +class StopIteration(Exception): ... +class StandardError(Exception): ... +class ArithmeticError(StandardError): ... +class BufferError(StandardError): ... +class EnvironmentError(StandardError): + errno = 0 + strerror = ... # type: str + # TODO can this be unicode? + filename = ... # type: str +class LookupError(StandardError): ... +class RuntimeError(StandardError): ... +class ValueError(StandardError): ... +class AssertionError(StandardError): ... +class AttributeError(StandardError): ... +class EOFError(StandardError): ... +class FloatingPointError(ArithmeticError): ... +class IOError(EnvironmentError): ... +class ImportError(StandardError): ... +class IndexError(LookupError): ... +class KeyError(LookupError): ... +class MemoryError(StandardError): ... +class NameError(StandardError): ... +class NotImplementedError(RuntimeError): ... +class OSError(EnvironmentError): ... +class WindowsError(OSError): + winerror = ... # type: int +class OverflowError(ArithmeticError): ... +class ReferenceError(StandardError): ... +class SyntaxError(StandardError): + msg = ... # type: str + lineno = ... # type: int + offset = ... # type: int + text = ... # type: str +class IndentationError(SyntaxError): ... +class TabError(IndentationError): ... +class SystemError(StandardError): ... +class TypeError(StandardError): ... +class UnboundLocalError(NameError): ... +class UnicodeError(ValueError): ... +class UnicodeDecodeError(UnicodeError): ... +class UnicodeEncodeError(UnicodeError): ... +class UnicodeTranslateError(UnicodeError): ... +class ZeroDivisionError(ArithmeticError): ... + +class Warning(Exception): ... +class UserWarning(Warning): ... +class DeprecationWarning(Warning): ... +class SyntaxWarning(Warning): ... +class RuntimeWarning(Warning): ... +class FutureWarning(Warning): ... +class PendingDeprecationWarning(Warning): ... +class ImportWarning(Warning): ... +class UnicodeWarning(Warning): ... +class BytesWarning(Warning): ... +class ResourceWarning(Warning): ... + +def eval(s: str, globals: Dict[str, Any] = ..., locals: Dict[str, Any] = ...) -> Any: ... +def exec(object: str, + globals: Dict[str, Any] = None, + locals: Dict[str, Any] = None) -> Any: ... # TODO code object as source + +def cmp(x: Any, y: Any) -> int: ... + +def execfile(filename: str, globals: Dict[str, Any] = None, locals: Dict[str, Any] = None) -> None: ... + +class file(BinaryIO): + @overload + def __init__(self, file: str, mode: str = 'r', buffering: int = ...) -> None: ... + @overload + def __init__(self, file: unicode, mode: str = 'r', buffering: int = ...) -> None: ... + @overload + def __init__(self, file: int, mode: str = 'r', buffering: int = ...) -> None: ... + def __iter__(self) -> Iterator[str]: ... + def read(self, n: int = ...) -> str: ... + def __enter__(self) -> BinaryIO: ... + def __exit__(self, t: type = None, exc: BaseException = None, tb: Any = None) -> bool: ... + def flush(self) -> None: ... + def fileno(self) -> int: ... + def isatty(self) -> bool: ... + def close(self) -> None: ... + + def readable(self) -> bool: ... + def writable(self) -> bool: ... + def seekable(self) -> bool: ... + def seek(self, offset: int, whence: int = ...) -> None: ... + def tell(self) -> int: ... + def readline(self, limit: int = ...) -> str: ... + def readlines(self, hint: int = ...) -> List[str]: ... + def write(self, data: str) -> None: ... + def writelines(self, data: Iterable[str]) -> None: ... + def truncate(self, pos: int = ...) -> int: ... + +# Very old builtins +def apply(func: Callable[..., _T], args: Sequence[Any] = None, kwds: Mapping[str, Any] = None) -> _T: ... +_N = TypeVar('_N', bool, int, float, complex) +def coerce(x: _N, y: _N) -> Tuple[_N, _N]: ... diff --git a/stdlib/2/codecs.pyi b/stdlib/2/codecs.pyi index 3ae1b165c26f..0034499fd241 100644 --- a/stdlib/2/codecs.pyi +++ b/stdlib/2/codecs.pyi @@ -24,12 +24,12 @@ _encoded = str # TODO: It is not possible to specify these signatures correctly, because # they have an optional positional or keyword argument for errors=. -_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode -_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode -_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__ -_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__ -_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__ -_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__ +_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode +_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode +_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__ +_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__ +_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__ +_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__ def encode(obj: _decoded, encoding: str = ..., errors: str = ...) -> _encoded: diff --git a/stdlib/2/decimal.pyi b/stdlib/2/decimal.pyi index 63bf63f93278..ce4d586ba901 100644 --- a/stdlib/2/decimal.pyi +++ b/stdlib/2/decimal.pyi @@ -10,7 +10,7 @@ _ComparableNum = Union[Decimal, int, float] DecimalTuple = NamedTuple('DecimalTuple', [('sign', int), - ('digits', Sequence[int]), # TODO: Use Tuple[int, ...] + ('digits', Sequence[int]), # TODO: Use Tuple[int, ...] ('exponent', int)]) ROUND_DOWN = ... # type: str diff --git a/stdlib/2/email/_parseaddr.pyi b/stdlib/2/email/_parseaddr.pyi index dcb59d13c73a..97e859e7130a 100644 --- a/stdlib/2/email/_parseaddr.pyi +++ b/stdlib/2/email/_parseaddr.pyi @@ -10,15 +10,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 = ... # 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 def __init__(self, field): ... def gotonext(self): ... def getaddrlist(self): ... @@ -34,7 +34,7 @@ class AddrlistClass: def getphraselist(self): ... class AddressList(AddrlistClass): - addresslist = ... # type: Any + addresslist = ... # type: Any def __init__(self, field): ... def __len__(self): ... def __add__(self, other): ... diff --git a/stdlib/2/functools.pyi b/stdlib/2/functools.pyi index 8840765785e1..f3bcc905b251 100644 --- a/stdlib/2/functools.pyi +++ b/stdlib/2/functools.pyi @@ -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 = ... # type: Sequence[str] +WRAPPER_UPDATES = ... # type: Sequence[str] def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> None: ... diff --git a/stdlib/2/gc.pyi b/stdlib/2/gc.pyi index 74dc44570be2..d93e996a5862 100644 --- a/stdlib/2/gc.pyi +++ b/stdlib/2/gc.pyi @@ -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 = ... # type: 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 = ... # 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 diff --git a/stdlib/2/getopt.pyi b/stdlib/2/getopt.pyi index 0a8fa0cc2d87..98b27d41f84a 100644 --- a/stdlib/2/getopt.pyi +++ b/stdlib/2/getopt.pyi @@ -1,8 +1,8 @@ from typing import List, Tuple class GetoptError(Exception): - opt = ... # type: str - msg = ... # type: str + opt = ... # type: str + msg = ... # type: str def __init__(self, msg: str, opt: str=...) -> None: ... def __str__(self) -> str: ... diff --git a/stdlib/2/gzip.pyi b/stdlib/2/gzip.pyi index 56caeb8b32d8..30d9e8377b22 100644 --- a/stdlib/2/gzip.pyi +++ b/stdlib/2/gzip.pyi @@ -6,24 +6,24 @@ from typing import Any, IO 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 = ... # 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 def __init__(self, filename: str = ..., mode: str = ..., compresslevel: int = ..., fileobj: IO[str] = ..., mtime: float = ...) -> None: ... @property def filename(self): ... - size = ... # type: Any - crc = ... # type: Any + size = ... # type: Any + crc = ... # type: Any def write(self, data): ... def read(self, size=...): ... @property diff --git a/stdlib/2/htmlentitydefs.pyi b/stdlib/2/htmlentitydefs.pyi index 1b9bddd0c066..c90f3a9e52ef 100644 --- a/stdlib/2/htmlentitydefs.pyi +++ b/stdlib/2/htmlentitydefs.pyi @@ -4,6 +4,6 @@ from typing import Any, Mapping -name2codepoint = ... # type: Mapping[str, int] -codepoint2name = ... # type: Mapping[int, str] -entitydefs = ... # type: Mapping[str, str] +name2codepoint = ... # type: Mapping[str, int] +codepoint2name = ... # type: Mapping[int, str] +entitydefs = ... # type: Mapping[str, str] diff --git a/stdlib/2/httplib.pyi b/stdlib/2/httplib.pyi index 6607954a74b9..9f989ddfdb0c 100644 --- a/stdlib/2/httplib.pyi +++ b/stdlib/2/httplib.pyi @@ -9,25 +9,25 @@ import mimetools class HTTPMessage(mimetools.Message): def addheader(self, key: str, value: str) -> None: ... def addcontinue(self, key: str, more: str) -> None: ... - dict = ... # type: Dict[str, str] - unixfrom = ... # type: str - headers = ... # type: Any - status = ... # type: str - seekable = ... # type: bool + dict = ... # type: Dict[str, str] + unixfrom = ... # type: str + headers = ... # type: Any + status = ... # type: str + seekable = ... # type: 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 = ... # 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 def __init__(self, sock, debuglevel=0, strict=0, method=None, buffering:bool=...) -> None: ... def begin(self): ... def close(self): ... @@ -38,14 +38,14 @@ class HTTPResponse: def getheaders(self): ... 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 = ... # 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 def __init__(self, host, port=None, strict=None, timeout=..., source_address=None) -> None: ... def set_tunnel(self, host, port=None, headers=None): ... def set_debuglevel(self, level): ... @@ -59,26 +59,26 @@ class HTTPConnection: def getresponse(self, buffering:bool=...): ... class HTTP: - debuglevel = ... # type: Any + debuglevel = ... # type: Any def __init__(self, host:str=..., port=None, strict=None) -> None: ... def connect(self, host=None, port=None): ... def getfile(self): ... - file = ... # type: Any - headers = ... # type: Any + file = ... # type: Any + headers = ... # type: 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 = ... # type: Any + key_file = ... # type: Any + cert_file = ... # type: Any def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., source_address=None, context=None) -> None: ... - sock = ... # type: Any + sock = ... # type: Any def connect(self): ... class HTTPS(HTTP): - key_file = ... # type: Any - cert_file = ... # type: Any + key_file = ... # type: Any + cert_file = ... # type: Any def __init__(self, host:str=..., port=None, key_file=None, cert_file=None, strict=None, context=None) -> None: ... class HTTPException(Exception): ... @@ -86,17 +86,17 @@ class NotConnected(HTTPException): ... class InvalidURL(HTTPException): ... class UnknownProtocol(HTTPException): - args = ... # type: Any - version = ... # type: Any + args = ... # type: Any + version = ... # type: 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 = ... # type: Any + partial = ... # type: Any + expected = ... # type: Any def __init__(self, partial, expected=None) -> None: ... class ImproperConnectionState(HTTPException): ... @@ -105,14 +105,14 @@ class CannotSendHeader(ImproperConnectionState): ... class ResponseNotReady(ImproperConnectionState): ... class BadStatusLine(HTTPException): - args = ... # type: Any - line = ... # type: Any + args = ... # type: Any + line = ... # type: Any def __init__(self, line) -> None: ... class LineTooLong(HTTPException): def __init__(self, line_type) -> None: ... -error = ... # type: Any +error = ... # type: Any class LineAndFileWrapper: def __init__(self, line, file) -> None: ... @@ -123,67 +123,67 @@ class LineAndFileWrapper: # Constants -responses = ... # type: Dict[int, str] +responses = ... # type: Dict[int, str] -HTTP_PORT = ... # type: int -HTTPS_PORT = ... # type: int +HTTP_PORT = ... # type: int +HTTPS_PORT = ... # type: int # status codes # informational -CONTINUE = ... # type: int -SWITCHING_PROTOCOLS = ... # type: int -PROCESSING = ... # type: int +CONTINUE = ... # type: int +SWITCHING_PROTOCOLS = ... # type: int +PROCESSING = ... # type: 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 = ... # 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 # 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 = ... # 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 # 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 = ... # 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 # 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 = ... # 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 diff --git a/stdlib/2/io.pyi b/stdlib/2/io.pyi index add0bfbda78c..8724ffd115ac 100644 --- a/stdlib/2/io.pyi +++ b/stdlib/2/io.pyi @@ -49,7 +49,7 @@ class StringIO(TextIO): def __init__(self, initial_value: unicode = ..., newline: unicode = ...) -> None: ... # TODO see comments in BinaryIO for missing functionality - name = ... # type: str + name = ... # type: str def close(self) -> None: ... def closed(self) -> bool: ... def fileno(self) -> int: ... diff --git a/stdlib/2/itertools.pyi b/stdlib/2/itertools.pyi index 2d275e72068c..286d20055eb7 100644 --- a/stdlib/2/itertools.pyi +++ b/stdlib/2/itertools.pyi @@ -9,7 +9,7 @@ _T = TypeVar('_T') _S = TypeVar('_S') def count(start: int = ..., - step: int = ...) -> Iterator[int]: ... # more general types? + step: int = ...) -> Iterator[int]: ... # more general types? def cycle(iterable: Iterable[_T]) -> Iterator[_T]: ... def repeat(object: _T, times: int = ...) -> Iterator[_T]: ... diff --git a/stdlib/2/json.pyi b/stdlib/2/json.pyi index e633855db7d4..c8db45f05739 100644 --- a/stdlib/2/json.pyi +++ b/stdlib/2/json.pyi @@ -70,14 +70,14 @@ class JSONDecoder(object): 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: int + 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: int def __init__(self, skipkeys: bool = ..., diff --git a/stdlib/2/mimetools.pyi b/stdlib/2/mimetools.pyi index 62aa50ba5226..abae2b540b4e 100644 --- a/stdlib/2/mimetools.pyi +++ b/stdlib/2/mimetools.pyi @@ -6,15 +6,15 @@ from typing import Any import rfc822 class Message(rfc822.Message): - encodingheader = ... # type: Any - typeheader = ... # type: Any + encodingheader = ... # type: Any + typeheader = ... # type: Any def __init__(self, fp, seekable=1): ... - plisttext = ... # type: Any - type = ... # type: Any - maintype = ... # type: Any - subtype = ... # type: Any + plisttext = ... # type: Any + type = ... # type: Any + maintype = ... # type: Any + subtype = ... # type: Any def parsetype(self): ... - plist = ... # type: Any + plist = ... # type: Any def parseplist(self): ... def getplist(self): ... def getparam(self, name): ... diff --git a/stdlib/2/multiprocessing/process.pyi b/stdlib/2/multiprocessing/process.pyi index a4650cf57796..8d4af5d06d4c 100644 --- a/stdlib/2/multiprocessing/process.pyi +++ b/stdlib/2/multiprocessing/process.pyi @@ -30,7 +30,7 @@ class Process: def exitcode(self): ... @property def ident(self): ... - pid = ... # type: Any + pid = ... # type: Any class AuthenticationString(bytes): def __reduce__(self): ... diff --git a/stdlib/2/multiprocessing/util.pyi b/stdlib/2/multiprocessing/util.pyi index d52860c83bb8..e660fab0ceab 100644 --- a/stdlib/2/multiprocessing/util.pyi +++ b/stdlib/2/multiprocessing/util.pyi @@ -5,8 +5,8 @@ from typing import Any import threading -SUBDEBUG = ... # type: Any -SUBWARNING = ... # type: Any +SUBDEBUG = ... # type: Any +SUBWARNING = ... # type: Any def sub_debug(msg, *args): ... def debug(msg, *args): ... diff --git a/stdlib/2/os/__init__.pyi b/stdlib/2/os/__init__.pyi index 8b81870bfec4..eebcfe987f5b 100644 --- a/stdlib/2/os/__init__.pyi +++ b/stdlib/2/os/__init__.pyi @@ -7,12 +7,12 @@ from typing import ( from . import path error = OSError -name = ... # type: str +name = ... # type: str class _Environ(MutableMapping[str, str]): def copy(self) -> Dict[str, str]: ... -environ = ... # type: _Environ +environ = ... # type: _Environ def chdir(path: unicode) -> None: ... def fchdir(fd: int) -> None: ... @@ -129,7 +129,7 @@ def mkdir(path: unicode, mode: int = ...) -> None: ... def makedirs(path: unicode, mode: int = ...) -> None: ... def pathconf(path: unicode, name: str) -> str: ... -pathconf_names = ... # type: Mapping[str, int] +pathconf_names = ... # type: Mapping[str, int] def readlink(path: AnyStr) -> AnyStr: ... def remove(path: unicode) -> None: ... @@ -169,7 +169,7 @@ EX_UNAVAILABLE = 0 # Unix only EX_SOFTWARE = 0 # Unix only EX_OSERR = 0 # Unix only EX_OSFILE = 0 # Unix only -EX_CANTCREAT = 0 # Unix only +EX_CANTCREAT = 0 # Unix only EX_IOERR = 0 # Unix only EX_TEMPFAIL = 0 # Unix only EX_PROTOCOL = 0 # Unix only @@ -198,11 +198,11 @@ def nice(increment: int) -> int: ... def spawnl(mode: int, path: AnyStr, arg0: AnyStr, *args: AnyStr) -> int: ... def spawnle(mode: int, path: AnyStr, arg0: AnyStr, - *args: Any) -> int: ... # Imprecise sig + *args: Any) -> int: ... # Imprecise sig def spawnlp(mode: int, file: AnyStr, arg0: AnyStr, *args: AnyStr) -> int: ... # Unix only TODO def spawnlpe(mode: int, file: AnyStr, arg0: AnyStr, *args: Any) -> int: - ... # Imprecise signature; Unix only TODO + ... # Imprecise signature; Unix only TODO def spawnv(mode: int, path: AnyStr, args: List[AnyStr]) -> int: ... def spawnve(mode: int, path: AnyStr, args: List[AnyStr], env: Mapping[str, str]) -> int: ... @@ -210,31 +210,31 @@ def spawnvp(mode: int, file: AnyStr, args: List[AnyStr]) -> int: ... # Unix onl def spawnvpe(mode: int, file: AnyStr, args: List[AnyStr], env: Mapping[str, str]) -> int: ... # Unix only -def startfile(path: unicode, operation: str = ...) -> None: ... # Windows only +def startfile(path: unicode, operation: str = ...) -> None: ... # Windows only def system(command: unicode) -> int: ... def times() -> Tuple[float, float, float, float, float]: ... -def wait() -> Tuple[int, int]: ... # Unix only -def wait3(options: int) -> Tuple[int, int, Any]: ... # Unix only -def wait4(pid: int, options: int) -> Tuple[int, int, Any]: ... # Unix only +def wait() -> Tuple[int, int]: ... # Unix only +def wait3(options: int) -> Tuple[int, int, Any]: ... # Unix only +def wait4(pid: int, options: int) -> Tuple[int, int, Any]: ... # Unix only def waitpid(pid: int, options: int) -> Tuple[int, int]: ... def confstr(name: Union[str, int]) -> Optional[str]: ... -confstr_names = ... # type: Mapping[str, int] +confstr_names = ... # type: Mapping[str, int] def getloadavg() -> Tuple[float, float, float]: ... def sysconf(name: Union[str, int]) -> int: ... -sysconf_names = ... # type: Mapping[str, int] - -curdir = ... # type: str -pardir = ... # type: str -sep = ... # type: str -altsep = ... # type: str -extsep = ... # type: str -pathsep = ... # type: str -defpath = ... # type: str -linesep = ... # type: str -devnull = ... # type: str +sysconf_names = ... # type: Mapping[str, int] + +curdir = ... # type: str +pardir = ... # type: str +sep = ... # type: str +altsep = ... # type: str +extsep = ... # type: str +pathsep = ... # type: str +defpath = ... # type: str +linesep = ... # type: str +devnull = ... # type: str def urandom(n: int) -> str: ... @@ -251,16 +251,16 @@ O_DSYNC = 0 # Unix only O_RSYNC = 0 # Unix only O_SYNC = 0 # Unix only O_NDELAY = 0 # Unix only -O_NONBLOCK = 0 # Unix only +O_NONBLOCK = 0 # Unix only O_NOCTTY = 0 # Unix only O_SHLOCK = 0 # Unix only O_EXLOCK = 0 # Unix only O_BINARY = 0 # Windows only O_NOINHERIT = 0 # Windows only -O_SHORT_LIVED = 0# Windows only +O_SHORT_LIVED = 0 # Windows only O_TEMPORARY = 0 # Windows only O_RANDOM = 0 # Windows only -O_SEQUENTIAL = 0 # Windows only +O_SEQUENTIAL = 0 # Windows only O_TEXT = 0 # Windows only O_ASYNC = 0 # Gnu extension if in C library O_DIRECT = 0 # Gnu extension if in C library diff --git a/stdlib/2/platform.pyi b/stdlib/2/platform.pyi index a8c66936ec92..75125f876065 100644 --- a/stdlib/2/platform.pyi +++ b/stdlib/2/platform.pyi @@ -4,23 +4,23 @@ from typing import Any -__copyright__ = ... # type: Any -DEV_NULL = ... # type: Any +__copyright__ = ... # type: Any +DEV_NULL = ... # type: Any def libc_ver(executable=..., lib=..., version=..., chunksize=2048): ... def linux_distribution(distname=..., version=..., id=..., supported_dists=..., full_distribution_name=1): ... def dist(distname=..., version=..., id=..., supported_dists=...): ... class _popen: - tmpfile = ... # type: Any - pipe = ... # type: Any - bufsize = ... # type: Any - mode = ... # type: Any + tmpfile = ... # type: Any + pipe = ... # type: Any + bufsize = ... # type: Any + mode = ... # type: Any def __init__(self, cmd, mode=..., bufsize=None): ... def read(self): ... def readlines(self): ... def close(self, remove=..., error=...): ... - __del__ = ... # type: Any + __del__ = ... # type: Any def popen(cmd, mode=..., bufsize=None): ... def win32_ver(release=..., version=..., csd=..., ptype=...): ... diff --git a/stdlib/2/posixpath.pyi b/stdlib/2/posixpath.pyi index 933f504c731a..413958b4b61c 100644 --- a/stdlib/2/posixpath.pyi +++ b/stdlib/2/posixpath.pyi @@ -5,14 +5,14 @@ from typing import Any, AnyStr, List from genericpath import * -curdir = ... # type: Any -pardir = ... # type: Any -extsep = ... # type: Any -sep = ... # type: Any -pathsep = ... # type: Any -defpath = ... # type: Any -altsep = ... # type: Any -devnull = ... # type: Any +curdir = ... # type: Any +pardir = ... # type: Any +extsep = ... # type: Any +sep = ... # type: Any +pathsep = ... # type: Any +defpath = ... # type: Any +altsep = ... # type: Any +devnull = ... # type: Any def normcase(s): ... def isabs(s): ... @@ -35,7 +35,7 @@ def normpath(path): ... def abspath(path): ... def realpath(filename): ... -supports_unicode_filenames = ... # type: Any +supports_unicode_filenames = ... # type: Any def relpath(path, start=...): ... diff --git a/stdlib/2/resource.pyi b/stdlib/2/resource.pyi index 8d094efefdb6..c4e9cdda4c3b 100644 --- a/stdlib/2/resource.pyi +++ b/stdlib/2/resource.pyi @@ -2,22 +2,22 @@ from typing import Tuple, NamedTuple class error(Exception): ... -RLIM_INFINITY = ... # type: int +RLIM_INFINITY = ... # type: 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 = ... # 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 _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 = ... # type: int +RUSAGE_CHILDREN = ... # type: int +RUSAGE_BOTH = ... # type: int diff --git a/stdlib/2/rfc822.pyi b/stdlib/2/rfc822.pyi index 636a985ec385..28ba75942f15 100644 --- a/stdlib/2/rfc822.pyi +++ b/stdlib/2/rfc822.pyi @@ -5,16 +5,16 @@ from typing import Any class Message: - fp = ... # type: Any - seekable = ... # type: Any - startofheaders = ... # type: Any - startofbody = ... # type: Any + fp = ... # type: Any + seekable = ... # type: Any + startofheaders = ... # type: Any + startofbody = ... # type: Any def __init__(self, fp, seekable=1): ... def rewindbody(self): ... - dict = ... # type: Any - unixfrom = ... # type: Any - headers = ... # type: Any - status = ... # type: Any + dict = ... # type: Any + unixfrom = ... # type: Any + headers = ... # type: Any + status = ... # type: 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=None): ... - get = ... # type: Any + get = ... # type: 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 = ... # type: Any + pos = ... # type: Any + LWS = ... # type: Any + CR = ... # type: Any + atomends = ... # type: Any + phraseends = ... # type: Any + field = ... # type: Any + commentlist = ... # type: 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 = ... # type: Any def __init__(self, field): ... def __len__(self): ... def __add__(self, other): ... diff --git a/stdlib/2/runpy.pyi b/stdlib/2/runpy.pyi index ecc7f47c9474..0d24e7e7528f 100644 --- a/stdlib/2/runpy.pyi +++ b/stdlib/2/runpy.pyi @@ -5,14 +5,14 @@ from typing import Any class _TempModule: - mod_name = ... # type: Any - module = ... # type: Any + mod_name = ... # type: Any + module = ... # type: Any def __init__(self, mod_name): ... def __enter__(self): ... def __exit__(self, *args): ... class _ModifiedArgv0: - value = ... # type: Any + value = ... # type: Any def __init__(self, value): ... def __enter__(self): ... def __exit__(self, *args): ... diff --git a/stdlib/2/select.pyi b/stdlib/2/select.pyi index 32c3cae3d379..a88311e971e2 100644 --- a/stdlib/2/select.pyi +++ b/stdlib/2/select.pyi @@ -71,16 +71,16 @@ def select(rlist, wlist, xlist, timeout: float = None) -> Tuple[List, List, List class error(Exception): ... class kevent(object): - data = ... # type: Any - fflags = ... # type: int - filter = ... # type: int - flags = ... # type: int - ident = ... # type: Any - udata = ... # type: Any + data = ... # type: Any + fflags = ... # type: int + filter = ... # type: int + flags = ... # type: int + ident = ... # type: Any + udata = ... # type: Any def __init__(self, *args, **kwargs) -> None: ... class kqueue(object): - closed = ... # type: bool + closed = ... # type: bool def __init__(self) -> None: ... def close(self) -> None: ... def control(self, changelist: Optional[Iterable[kevent]], max_events: int, timeout: int = ...) -> List[kevent]: ... diff --git a/stdlib/2/shlex.pyi b/stdlib/2/shlex.pyi index 81300900eaec..4b80fb641ccf 100644 --- a/stdlib/2/shlex.pyi +++ b/stdlib/2/shlex.pyi @@ -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 = ... # 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] diff --git a/stdlib/2/smtplib.pyi b/stdlib/2/smtplib.pyi index 5bf994bb55b8..cb5f893e7c0b 100644 --- a/stdlib/2/smtplib.pyi +++ b/stdlib/2/smtplib.pyi @@ -8,21 +8,21 @@ class SMTPException(Exception): ... class SMTPServerDisconnected(SMTPException): ... class SMTPResponseException(SMTPException): - smtp_code = ... # type: Any - smtp_error = ... # type: Any - args = ... # type: Any + smtp_code = ... # type: Any + smtp_error = ... # type: Any + args = ... # type: Any def __init__(self, code, msg) -> None: ... class SMTPSenderRefused(SMTPResponseException): - smtp_code = ... # type: Any - smtp_error = ... # type: Any - sender = ... # type: Any - args = ... # type: Any + smtp_code = ... # type: Any + smtp_error = ... # type: Any + sender = ... # type: Any + args = ... # type: Any def __init__(self, code, msg, sender) -> None: ... class SMTPRecipientsRefused(SMTPException): - recipients = ... # type: Any - args = ... # type: Any + recipients = ... # type: Any + args = ... # type: Any def __init__(self, recipients) -> None: ... class SMTPDataError(SMTPResponseException): ... @@ -34,25 +34,25 @@ def quoteaddr(addr): ... def quotedata(data): ... class SSLFakeFile: - sslobj = ... # type: Any + sslobj = ... # type: 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 = ... # 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 def __init__(self, host: str = ..., port: int = ..., local_hostname=..., timeout=...) -> None: ... def set_debuglevel(self, debuglevel): ... - sock = ... # type: Any + sock = ... # type: Any def connect(self, host=..., port=...): ... def send(self, str): ... def putcmd(self, cmd, args=...): ... @@ -68,7 +68,7 @@ class SMTP: def rcpt(self, recip, options=...): ... def data(self, msg): ... def verify(self, address): ... - vrfy = ... # type: Any + vrfy = ... # type: Any def expn(self, address): ... def ehlo_or_helo_if_needed(self): ... def login(self, user, password): ... @@ -78,13 +78,13 @@ class SMTP: def quit(self): ... class SMTP_SSL(SMTP): - default_port = ... # type: Any - keyfile = ... # type: Any - certfile = ... # type: Any + default_port = ... # type: Any + keyfile = ... # type: Any + certfile = ... # type: Any def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=...) -> None: ... class LMTP(SMTP): - ehlo_msg = ... # type: Any + ehlo_msg = ... # type: Any def __init__(self, host=..., port=..., local_hostname=...) -> None: ... - sock = ... # type: Any + sock = ... # type: Any def connect(self, host=..., port=...): ... diff --git a/stdlib/2/socket.pyi b/stdlib/2/socket.pyi index 4975c85ca6f4..cbc3573d9402 100644 --- a/stdlib/2/socket.pyi +++ b/stdlib/2/socket.pyi @@ -318,7 +318,7 @@ class socket: flags: int = ...) -> Any: ... def send(self, data: str, flags: int = ...) -> int: ... def sendall(self, data: str, flags: int = ...) -> None: - ... # return type: None on success + ... # return type: None on success def sendto(self, data: str, address: Union[tuple, str], flags: int = ...) -> int: ... def setblocking(self, flag: bool) -> None: ... def settimeout(self, value: Union[float, None]) -> None: ... diff --git a/stdlib/2/sqlite3/dbapi2.pyi b/stdlib/2/sqlite3/dbapi2.pyi index ec2a3915583f..59bf7be953e7 100644 --- a/stdlib/2/sqlite3/dbapi2.pyi +++ b/stdlib/2/sqlite3/dbapi2.pyi @@ -6,62 +6,62 @@ from numbers import Integral from datetime import time, datetime from collections import Iterable -paramstyle = ... # type: str -threadsafety = ... # type: int -apilevel = ... # type: str -Date = ... # type: datetime -Time = ... # type: time -Timestamp = ... # type: datetime +paramstyle = ... # type: str +threadsafety = ... # type: int +apilevel = ... # type: str +Date = ... # type: datetime +Time = ... # type: time +Timestamp = ... # type: datetime def DateFromTicks(ticks): ... def TimeFromTicks(ticks): ... def TimestampFromTicks(ticks): ... -version_info = ... # type: Any -sqlite_version_info = ... # type: Any -Binary = ... # type: Any +version_info = ... # type: Any +sqlite_version_info = ... # type: Any +Binary = ... # type: Any def register_adapters_and_converters(): ... # The remaining definitions are imported from _sqlite3. -PARSE_COLNAMES = ... # type: int -PARSE_DECLTYPES = ... # type: int -SQLITE_ALTER_TABLE = ... # type: int -SQLITE_ANALYZE = ... # type: int -SQLITE_ATTACH = ... # type: int -SQLITE_CREATE_INDEX = ... # type: int -SQLITE_CREATE_TABLE = ... # type: int -SQLITE_CREATE_TEMP_INDEX = ... # type: int -SQLITE_CREATE_TEMP_TABLE = ... # type: int -SQLITE_CREATE_TEMP_TRIGGER = ... # type: int -SQLITE_CREATE_TEMP_VIEW = ... # type: int -SQLITE_CREATE_TRIGGER = ... # type: int -SQLITE_CREATE_VIEW = ... # type: int -SQLITE_DELETE = ... # type: int -SQLITE_DENY = ... # type: int -SQLITE_DETACH = ... # type: int -SQLITE_DROP_INDEX = ... # type: int -SQLITE_DROP_TABLE = ... # type: int -SQLITE_DROP_TEMP_INDEX = ... # type: int -SQLITE_DROP_TEMP_TABLE = ... # type: int -SQLITE_DROP_TEMP_TRIGGER = ... # type: int -SQLITE_DROP_TEMP_VIEW = ... # type: int -SQLITE_DROP_TRIGGER = ... # type: int -SQLITE_DROP_VIEW = ... # type: int -SQLITE_IGNORE = ... # type: int -SQLITE_INSERT = ... # type: int -SQLITE_OK = ... # type: int -SQLITE_PRAGMA = ... # type: int -SQLITE_READ = ... # type: int -SQLITE_REINDEX = ... # type: int -SQLITE_SELECT = ... # type: int -SQLITE_TRANSACTION = ... # type: int -SQLITE_UPDATE = ... # type: int -adapters = ... # type: Any -converters = ... # type: Any -sqlite_version = ... # type: str -version = ... # type: str +PARSE_COLNAMES = ... # type: int +PARSE_DECLTYPES = ... # type: int +SQLITE_ALTER_TABLE = ... # type: int +SQLITE_ANALYZE = ... # type: int +SQLITE_ATTACH = ... # type: int +SQLITE_CREATE_INDEX = ... # type: int +SQLITE_CREATE_TABLE = ... # type: int +SQLITE_CREATE_TEMP_INDEX = ... # type: int +SQLITE_CREATE_TEMP_TABLE = ... # type: int +SQLITE_CREATE_TEMP_TRIGGER = ... # type: int +SQLITE_CREATE_TEMP_VIEW = ... # type: int +SQLITE_CREATE_TRIGGER = ... # type: int +SQLITE_CREATE_VIEW = ... # type: int +SQLITE_DELETE = ... # type: int +SQLITE_DENY = ... # type: int +SQLITE_DETACH = ... # type: int +SQLITE_DROP_INDEX = ... # type: int +SQLITE_DROP_TABLE = ... # type: int +SQLITE_DROP_TEMP_INDEX = ... # type: int +SQLITE_DROP_TEMP_TABLE = ... # type: int +SQLITE_DROP_TEMP_TRIGGER = ... # type: int +SQLITE_DROP_TEMP_VIEW = ... # type: int +SQLITE_DROP_TRIGGER = ... # type: int +SQLITE_DROP_VIEW = ... # type: int +SQLITE_IGNORE = ... # type: int +SQLITE_INSERT = ... # type: int +SQLITE_OK = ... # type: int +SQLITE_PRAGMA = ... # type: int +SQLITE_READ = ... # type: int +SQLITE_REINDEX = ... # type: int +SQLITE_SELECT = ... # type: int +SQLITE_TRANSACTION = ... # type: int +SQLITE_UPDATE = ... # type: int +adapters = ... # type: Any +converters = ... # type: Any +sqlite_version = ... # type: str +version = ... # type: str # TODO: adapt needs to get probed def adapt(obj, protocol, alternate): ... @@ -85,21 +85,21 @@ class Cache: def get(self, *args, **kwargs) -> None: ... class Connection: - DataError = ... # type: Any - DatabaseError = ... # type: Any - Error = ... # type: Any - IntegrityError = ... # type: Any - InterfaceError = ... # type: Any - InternalError = ... # type: Any - NotSupportedError = ... # type: Any - OperationalError = ... # type: Any - ProgrammingError = ... # type: Any - Warning = ... # type: Any - in_transaction = ... # type: Any - isolation_level = ... # type: Any - row_factory = ... # type: Any - text_factory = ... # type: Any - total_changes = ... # type: Any + DataError = ... # type: Any + DatabaseError = ... # type: Any + Error = ... # type: Any + IntegrityError = ... # type: Any + InterfaceError = ... # type: Any + InternalError = ... # type: Any + NotSupportedError = ... # type: Any + OperationalError = ... # type: Any + ProgrammingError = ... # type: Any + Warning = ... # type: Any + in_transaction = ... # type: Any + isolation_level = ... # type: Any + row_factory = ... # type: Any + text_factory = ... # type: Any + total_changes = ... # type: Any def __init__(self, *args, **kwargs): ... def close(self) -> None: ... def commit(self) -> None: ... @@ -126,12 +126,12 @@ class Connection: def __exit__(self, *args, **kwargs): ... class Cursor(Iterator[Any]): - arraysize = ... # type: Any - connection = ... # type: Any - description = ... # type: Any - lastrowid = ... # type: Any - row_factory = ... # type: Any - rowcount = ... # type: Any + arraysize = ... # type: Any + connection = ... # type: Any + description = ... # type: Any + lastrowid = ... # type: Any + row_factory = ... # type: Any + rowcount = ... # type: Any # TODO: Cursor class accepts exactly 1 argument # required type is sqlite3.Connection (which is imported as _Connection) # however, the name of the __init__ variable is unknown @@ -166,7 +166,7 @@ class NotSupportedError(DatabaseError): ... class OperationalError(DatabaseError): ... class OptimizedUnicode: - maketrans = ... # type: Any + maketrans = ... # type: Any def __init__(self, *args, **kwargs): ... def capitalize(self, *args, **kwargs): ... def casefold(self, *args, **kwargs): ... diff --git a/stdlib/2/ssl.pyi b/stdlib/2/ssl.pyi index c9fafbaa58cb..3c07549a57bd 100644 --- a/stdlib/2/ssl.pyi +++ b/stdlib/2/ssl.pyi @@ -64,46 +64,46 @@ if sys.platform == 'win32': def enum_crls(store_name: str) -> _EnumRetType: ... -CERT_NONE = ... # type: int -CERT_OPTIONAL = ... # type: int -CERT_REQUIRED = ... # type: int - -VERIFY_DEFAULT = ... # type: int -VERIFY_CRL_CHECK_LEAF = ... # type: int -VERIFY_CRL_CHECK_CHAIN = ... # type: int -VERIFY_X509_STRICT = ... # type: int -VERIFY_X509_TRUSTED_FIRST = ... # type: int - -PROTOCOL_SSLv23 = ... # type: int -PROTOCOL_SSLv2 = ... # type: int -PROTOCOL_SSLv3 = ... # type: int -PROTOCOL_TLSv1 = ... # type: int -PROTOCOL_TLSv1_1 = ... # type: int -PROTOCOL_TLSv1_2 = ... # type: int - -OP_ALL = ... # type: int -OP_NO_SSLv2 = ... # type: int -OP_NO_SSLv3 = ... # type: int -OP_NO_TLSv1 = ... # type: int -OP_NO_TLSv1_1 = ... # type: int -OP_NO_TLSv1_2 = ... # type: int -OP_CIPHER_SERVER_PREFERENCE = ... # type: int -OP_SINGLE_DH_USE = ... # type: int -OP_SINGLE_ECDH_USE = ... # type: int -OP_NO_COMPRESSION = ... # type: int +CERT_NONE = ... # type: int +CERT_OPTIONAL = ... # type: int +CERT_REQUIRED = ... # type: int + +VERIFY_DEFAULT = ... # type: int +VERIFY_CRL_CHECK_LEAF = ... # type: int +VERIFY_CRL_CHECK_CHAIN = ... # type: int +VERIFY_X509_STRICT = ... # type: int +VERIFY_X509_TRUSTED_FIRST = ... # type: int + +PROTOCOL_SSLv23 = ... # type: int +PROTOCOL_SSLv2 = ... # type: int +PROTOCOL_SSLv3 = ... # type: int +PROTOCOL_TLSv1 = ... # type: int +PROTOCOL_TLSv1_1 = ... # type: int +PROTOCOL_TLSv1_2 = ... # type: int + +OP_ALL = ... # type: int +OP_NO_SSLv2 = ... # type: int +OP_NO_SSLv3 = ... # type: int +OP_NO_TLSv1 = ... # type: int +OP_NO_TLSv1_1 = ... # type: int +OP_NO_TLSv1_2 = ... # type: int +OP_CIPHER_SERVER_PREFERENCE = ... # type: int +OP_SINGLE_DH_USE = ... # type: int +OP_SINGLE_ECDH_USE = ... # type: int +OP_NO_COMPRESSION = ... # type: int HAS_ALPN = ... # type: int -HAS_ECDH = ... # type: bool -HAS_SNI = ... # type: bool -HAS_NPN = ... # type: bool -CHANNEL_BINDING_TYPES = ... # type: List[str] +HAS_ECDH = ... # type: bool +HAS_SNI = ... # type: bool +HAS_NPN = ... # type: bool +CHANNEL_BINDING_TYPES = ... # type: List[str] -OPENSSL_VERSION = ... # type: str -OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int] -OPENSSL_VERSION_NUMBER = ... # type: int +OPENSSL_VERSION = ... # type: str +OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int] +OPENSSL_VERSION_NUMBER = ... # type: int -ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int -ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int +ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int +ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int ALERT_DESCRIPTION_ACCESS_DENIED = ... # type: int ALERT_DESCRIPTION_BAD_CERTIFICATE = ... # type: int ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE = ... # type: int @@ -134,8 +134,8 @@ _PurposeType = NamedTuple('_PurposeType', [('nid', int), ('shortname', str), ('longname', str), ('oid', str)]) class Purpose: - SERVER_AUTH = ... # type: _PurposeType - CLIENT_AUTH = ... # type: _PurposeType + SERVER_AUTH = ... # type: _PurposeType + CLIENT_AUTH = ... # type: _PurposeType class SSLSocket(socket.socket): @@ -151,12 +151,12 @@ class SSLSocket(socket.socket): class SSLContext: - check_hostname = ... # type: bool - options = ... # type: int + check_hostname = ... # type: bool + options = ... # type: int @property def protocol(self) -> int: ... - verify_flags = ... # type: int - verify_mode = ... # type: int + verify_flags = ... # type: int + verify_mode = ... # type: int def __init__(self, protocol: int) -> None: ... def cert_store_stats(self) -> Dict[str, int]: ... def load_cert_chain(self, certfile: str, keyfile: Optional[str] = ..., diff --git a/stdlib/2/struct.pyi b/stdlib/2/struct.pyi index c1b328322e90..213b61855914 100644 --- a/stdlib/2/struct.pyi +++ b/stdlib/2/struct.pyi @@ -16,8 +16,8 @@ def unpack_from(fmt: str, buffer: Any, offset: int = ...) -> Tuple[Any, ...]: .. def calcsize(fmt: str) -> int: ... class Struct: - format = ... # type: str - size = ... # type: int + format = ... # type: str + size = ... # type: int def __init__(self, format: str) -> None: ... diff --git a/stdlib/2/subprocess.pyi b/stdlib/2/subprocess.pyi index e8ec596b79e8..288e82b1a89c 100644 --- a/stdlib/2/subprocess.pyi +++ b/stdlib/2/subprocess.pyi @@ -52,20 +52,20 @@ def check_output(args: Union[str, Sequence[str]], startupinfo: Any = ..., creationflags: int = ...) -> str: ... -PIPE = ... # type: int -STDOUT = ... # type: int +PIPE = ... # type: int +STDOUT = ... # type: int class CalledProcessError(Exception): returncode = 0 cmd = ... # type: str - output = ... # type: str # May be None + output = ... # type: str # May be None def __init__(self, returncode: int, cmd: str, output: Optional[str] = ...) -> None: ... class Popen: - stdin = ... # type: Optional[IO[Any]] - stdout = ... # type: Optional[IO[Any]] - stderr = ... # type: Optional[IO[Any]] + stdin = ... # type: Optional[IO[Any]] + stdout = ... # type: Optional[IO[Any]] + stderr = ... # type: Optional[IO[Any]] pid = 0 returncode = 0 @@ -99,11 +99,11 @@ def getoutput(cmd: str) -> str: ... # 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 = ... # 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 diff --git a/stdlib/2/sys.pyi b/stdlib/2/sys.pyi index e37332898db9..02e766548330 100644 --- a/stdlib/2/sys.pyi +++ b/stdlib/2/sys.pyi @@ -131,6 +131,6 @@ def getprofile() -> None: ... def gettrace() -> None: ... def setcheckinterval(interval: int) -> None: ... # deprecated def setdlopenflags(n: int) -> None: ... -def setprofile(profilefunc: Any) -> None: ... # TODO type +def setprofile(profilefunc: Any) -> None: ... # TODO type def setrecursionlimit(limit: int) -> None: ... -def settrace(tracefunc: Any) -> None: ... # TODO type +def settrace(tracefunc: Any) -> None: ... # TODO type diff --git a/stdlib/2/textwrap.pyi b/stdlib/2/textwrap.pyi index 6ed63560fb71..7d1a6d387e5e 100644 --- a/stdlib/2/textwrap.pyi +++ b/stdlib/2/textwrap.pyi @@ -7,23 +7,23 @@ from typing import Any class _unicode: ... class TextWrapper: - whitespace_trans = ... # type: Any - unicode_whitespace_trans = ... # type: Any - uspace = ... # type: Any - wordsep_re = ... # type: Any - wordsep_simple_re = ... # type: Any - sentence_end_re = ... # type: Any - width = ... # type: Any - initial_indent = ... # type: Any - subsequent_indent = ... # type: Any - expand_tabs = ... # type: Any - replace_whitespace = ... # type: Any - fix_sentence_endings = ... # type: Any - break_long_words = ... # type: Any - drop_whitespace = ... # type: Any - break_on_hyphens = ... # type: Any - wordsep_re_uni = ... # type: Any - wordsep_simple_re_uni = ... # type: Any + whitespace_trans = ... # type: Any + unicode_whitespace_trans = ... # type: Any + uspace = ... # type: Any + wordsep_re = ... # type: Any + wordsep_simple_re = ... # type: Any + sentence_end_re = ... # type: Any + width = ... # type: Any + initial_indent = ... # type: Any + subsequent_indent = ... # type: Any + expand_tabs = ... # type: Any + replace_whitespace = ... # type: Any + fix_sentence_endings = ... # type: Any + break_long_words = ... # type: Any + drop_whitespace = ... # type: Any + break_on_hyphens = ... # type: Any + wordsep_re_uni = ... # type: Any + wordsep_simple_re_uni = ... # type: Any def __init__(self, width=..., initial_indent=..., subsequent_indent=..., expand_tabs=..., replace_whitespace=..., fix_sentence_endings=..., break_long_words=..., drop_whitespace=..., break_on_hyphens=...) -> None: ... def wrap(self, text): ... def fill(self, text): ... diff --git a/stdlib/2/time.pyi b/stdlib/2/time.pyi index 6f234f2a22bb..6bea2093f68c 100644 --- a/stdlib/2/time.pyi +++ b/stdlib/2/time.pyi @@ -8,7 +8,7 @@ accept2dyear = False altzone = 0 daylight = 0 timezone = 0 -tzname = ... # type: Tuple[str, str] +tzname = ... # type: Tuple[str, str] class struct_time(NamedTuple('_struct_time', [('tm_year', int), ('tm_mon', int), ('tm_mday', int), diff --git a/stdlib/2/types.pyi b/stdlib/2/types.pyi index c3b66f40e95f..f1e288b50529 100644 --- a/stdlib/2/types.pyi +++ b/stdlib/2/types.pyi @@ -103,24 +103,24 @@ FileType = file XRangeType = xrange class TracebackType: - tb_frame = ... # type: FrameType - tb_lasti = ... # type: int - tb_lineno = ... # type: int - tb_next = ... # type: TracebackType + tb_frame = ... # type: FrameType + tb_lasti = ... # type: int + tb_lineno = ... # type: int + tb_next = ... # type: TracebackType class FrameType: - f_back = ... # type: FrameType - f_builtins = ... # type: Dict[str, Any] - f_code = ... # type: CodeType - f_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 = ... # 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] def clear(self) -> None: pass diff --git a/stdlib/2/typing.pyi b/stdlib/2/typing.pyi index deb12e7e244e..59c9cffc5b8d 100644 --- a/stdlib/2/typing.pyi +++ b/stdlib/2/typing.pyi @@ -281,7 +281,7 @@ class TextIO(IO[unicode]): @property def line_buffering(self) -> bool: ... @property - def newlines(self) -> Any: ... # None, str or tuple + def newlines(self) -> Any: ... # None, str or tuple @abstractmethod def __enter__(self) -> TextIO: ... diff --git a/stdlib/2/unicodedata.pyi b/stdlib/2/unicodedata.pyi index 196f1428af32..1faf16a02a4b 100644 --- a/stdlib/2/unicodedata.pyi +++ b/stdlib/2/unicodedata.pyi @@ -2,10 +2,10 @@ from typing import Any, TypeVar, Union -ucd_3_2_0 = ... # type: UCD -unidata_version = ... # type: str +ucd_3_2_0 = ... # type: UCD +unidata_version = ... # type: str # PyCapsule -ucnhash_CAPI = ... # type: Any +ucnhash_CAPI = ... # type: Any _default = TypeVar("_default") @@ -23,7 +23,7 @@ def normalize(form: str, unistr: unicode) -> unicode: ... def numeric(chr, default: _default = ...) -> Union[float, _default]: ... class UCD(object): - unidata_version = ... # type: str + unidata_version = ... # type: str # The methods below are constructed from the same array in C # (unicodedata_functions) and hence identical to the methods above. def bidirectional(self, unichr: unicode) -> str: ... diff --git a/stdlib/2/unittest.pyi b/stdlib/2/unittest.pyi index 7de3be2f137f..38b7485641bb 100644 --- a/stdlib/2/unittest.pyi +++ b/stdlib/2/unittest.pyi @@ -24,29 +24,29 @@ class Testable(metaclass=ABCMeta): # TODO ABC for test runners? class TestResult: - errors = ... # type: List[Tuple[Testable, str]] - failures = ... # type: List[Tuple[Testable, str]] + errors = ... # type: List[Tuple[Testable, str]] + failures = ... # type: List[Tuple[Testable, str]] testsRun = 0 - shouldStop = ... # type: bool + shouldStop = ... # type: bool def wasSuccessful(self) -> bool: ... def stop(self) -> None: ... def startTest(self, test: Testable) -> None: ... def stopTest(self, test: Testable) -> None: ... def addError(self, test: Testable, - err: Tuple[type, Any, Any]) -> None: ... # TODO + err: Tuple[type, Any, Any]) -> None: ... # TODO def addFailure(self, test: Testable, - err: Tuple[type, Any, Any]) -> None: ... # TODO + err: Tuple[type, Any, Any]) -> None: ... # TODO def addSuccess(self, test: Testable) -> None: ... class _AssertRaisesBaseContext: - expected = ... # type: Any - failureException = ... # type: type + expected = ... # type: Any + failureException = ... # type: type obj_name = ... # type: str - expected_regex = ... # type: Pattern[str] + expected_regex = ... # type: Pattern[str] class _AssertRaisesContext(_AssertRaisesBaseContext): - exception = ... # type: Any # TODO precise type + exception = ... # type: Any # TODO precise type def __enter__(self) -> _AssertRaisesContext: ... def __exit__(self, exc_type, exc_value, tb) -> bool: ... @@ -131,7 +131,7 @@ class TestCase(Testable): def countTestCases(self) -> int: ... def defaultTestResult(self) -> TestResult: ... def id(self) -> str: ... - def shortDescription(self) -> str: ... # May return None + def shortDescription(self) -> str: ... # May return None def addCleanup(function: Any, *args: Any, **kwargs: Any) -> None: ... def skipTest(self, reason: Any) -> None: ... @@ -170,7 +170,7 @@ def skip(reason: str) -> Any: ... def main(module: str = ..., defaultTest: str = ..., argv: List[str] = ..., testRunner: Any = ..., - testLoader: Any = ...) -> None: ... # TODO types + testLoader: Any = ...) -> None: ... # TODO types # private but occasionally used util = ... # type: module diff --git a/stdlib/2/urllib.pyi b/stdlib/2/urllib.pyi index 8b129cf0c99e..0882926ba65c 100644 --- a/stdlib/2/urllib.pyi +++ b/stdlib/2/urllib.pyi @@ -10,24 +10,24 @@ def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ... def urlcleanup() -> None: ... class ContentTooShortError(IOError): - content = ... # type: Any + content = ... # type: 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 = ... # 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 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 = ... # type: Any def open(self, fullurl: str, data=...): ... def open_unknown(self, fullurl, data=...): ... def open_unknown_proxy(self, proxy, fullurl, data=...): ... @@ -42,9 +42,9 @@ class URLopener: def open_data(self, url, data=...): ... class FancyURLopener(URLopener): - auth_cache = ... # type: Any - tries = ... # type: Any - maxtries = ... # type: Any + auth_cache = ... # type: Any + tries = ... # type: Any + maxtries = ... # type: 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=...): ... @@ -62,17 +62,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 = ... # type: Any + passwd = ... # type: Any + host = ... # type: Any + port = ... # type: Any + dirs = ... # type: Any + timeout = ... # type: Any + refcount = ... # type: Any + keepalive = ... # type: Any def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=...) -> None: ... - busy = ... # type: Any - ftp = ... # type: Any + busy = ... # type: Any + ftp = ... # type: Any def init(self): ... def retrfile(self, file, type): ... def endtransfer(self): ... @@ -81,31 +81,31 @@ class ftpwrapper: def real_close(self): ... class addbase: - fp = ... # type: Any - read = ... # type: Any - readline = ... # type: Any - readlines = ... # type: Any - fileno = ... # type: Any - __iter__ = ... # type: Any - next = ... # type: Any + fp = ... # type: Any + read = ... # type: Any + readline = ... # type: Any + readlines = ... # type: Any + fileno = ... # type: Any + __iter__ = ... # type: Any + next = ... # type: Any def __init__(self, fp) -> None: ... def close(self): ... class addclosehook(addbase): - closehook = ... # type: Any - hookargs = ... # type: Any + closehook = ... # type: Any + hookargs = ... # type: Any def __init__(self, fp, closehook, *hookargs) -> None: ... def close(self): ... class addinfo(addbase): - headers = ... # type: Any + headers = ... # type: Any def __init__(self, fp, headers) -> None: ... def info(self): ... class addinfourl(addbase): - headers = ... # type: Any - url = ... # type: Any - code = ... # type: Any + headers = ... # type: Any + url = ... # type: Any + code = ... # type: Any def __init__(self, fp, headers, url, code=...) -> None: ... def info(self): ... def getcode(self): ... diff --git a/stdlib/2/urllib2.pyi b/stdlib/2/urllib2.pyi index 0ce8a7a9c6fb..98e2d9c61195 100644 --- a/stdlib/2/urllib2.pyi +++ b/stdlib/2/urllib2.pyi @@ -10,11 +10,11 @@ class HTTPError(URLError, addinfourl): headers = ... # type: Dict[str, str] class Request(object): - host = ... # type: str - port = ... # type: str - data = ... # type: str - headers = ... # type: Dict[str, str] - unverifiable = ... # type: bool + host = ... # type: str + port = ... # type: str + data = ... # type: str + headers = ... # type: Dict[str, str] + unverifiable = ... # type: bool type = ... origin_req_host= ... unredirected_hdrs = ... @@ -48,7 +48,7 @@ def install_opener(opener): ... def build_opener(*handlers): ... class BaseHandler: - handler_order = ... # int + handler_order = ... # int def add_parent(self, parent) -> None: ... def close(self) -> None: ... @@ -61,14 +61,14 @@ class HTTPDefaultErrorHandler(BaseHandler): def http_error_default(self, req, fp, code, msg, hdrs): ... class HTTPRedirectHandler(BaseHandler): - max_repeats = ... # int - max_redirections = ... # int + max_repeats = ... # int + max_redirections = ... # int def redirect_request(self, req, fp, code, msg, headers, newurl): ... def http_error_301(self, req, fp, code, msg, headers): ... def http_error_302(self, req, fp, code, msg, headers): ... def http_error_303(self, req, fp, code, msg, headers): ... def http_error_307(self, req, fp, code, msg, headers): ... - inf_msg = ... # type: str + inf_msg = ... # type: str class ProxyHandler(BaseHandler): @@ -91,11 +91,11 @@ class AbstractBasicAuthHandler: def retry_http_basic_auth(self, host, req, realm): ... class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler): - auth_header = ... # type: str + auth_header = ... # type: str def http_error_401(self, req, fp, code, msg, headers): ... class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler): - auth_header = ... # type: str + auth_header = ... # type: str def http_error_407(self, req, fp, code, msg, headers): ... class AbstractDigestAuthHandler: @@ -109,13 +109,13 @@ class AbstractDigestAuthHandler: def get_entity_digest(self, data, chal): ... class HTTPDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler): - auth_header = ... # str - handler_order = ... # int + auth_header = ... # str + handler_order = ... # int def http_error_401(self, req, fp, code, msg, headers): ... class ProxyDigestAuthHandler(BaseHandler, AbstractDigestAuthHandler): - auth_header = ... # str - handler_order = ... # int + auth_header = ... # str + handler_order = ... # int def http_error_407(self, req, fp, code, msg, headers): ... class AbstractHTTPHandler(BaseHandler): diff --git a/stdlib/2/uuid.pyi b/stdlib/2/uuid.pyi index ed3db1ce6245..ce8a2a4c806d 100644 --- a/stdlib/2/uuid.pyi +++ b/stdlib/2/uuid.pyi @@ -4,25 +4,25 @@ _int_type = int class _UUIDFields(NamedTuple('_UUIDFields', [('time_low', int), ('time_mid', int), ('time_hi_version', int), ('clock_seq_hi_variant', int), ('clock_seq_low', int), ('node', int)])): - time = ... # type: int - clock_seq = ... # type: int + time = ... # type: int + clock_seq = ... # type: int class UUID: def __init__(self, hex: str = ..., bytes: str = ..., bytes_le: str = ..., fields: Tuple[int, int, int, int, int, int] = ..., int: int = ..., version: Any = ...) -> None: ... - bytes = ... # type: str - bytes_le = ... # type: str - fields = ... # type: _UUIDFields - hex = ... # type: str - int = ... # type: _int_type - urn = ... # type: str - variant = ... # type: _int_type - version = ... # type: _int_type + bytes = ... # type: str + bytes_le = ... # type: str + fields = ... # type: _UUIDFields + hex = ... # type: str + int = ... # type: _int_type + urn = ... # type: str + variant = ... # type: _int_type + version = ... # type: _int_type -RESERVED_NCS = ... # type: int -RFC_4122 = ... # type: int -RESERVED_MICROSOFT = ... # type: int -RESERVED_FUTURE = ... # type: int +RESERVED_NCS = ... # type: int +RFC_4122 = ... # type: int +RESERVED_MICROSOFT = ... # type: int +RESERVED_FUTURE = ... # type: int def getnode() -> int: ... def uuid1(node: int = ..., clock_seq: int = ...) -> UUID: ... @@ -30,7 +30,7 @@ def uuid3(namespace: UUID, name: str) -> UUID: ... def uuid4() -> UUID: ... def uuid5(namespace: UUID, name: str) -> UUID: ... -NAMESPACE_DNS = ... # type: UUID -NAMESPACE_URL = ... # type: UUID -NAMESPACE_OID = ... # type: UUID -NAMESPACE_X500 = ... # type: UUID +NAMESPACE_DNS = ... # type: UUID +NAMESPACE_URL = ... # type: UUID +NAMESPACE_OID = ... # type: UUID +NAMESPACE_X500 = ... # type: UUID diff --git a/stdlib/2/weakref.pyi b/stdlib/2/weakref.pyi index a68242b49d6d..b040e25ad8b7 100644 --- a/stdlib/2/weakref.pyi +++ b/stdlib/2/weakref.pyi @@ -7,7 +7,7 @@ from _weakref import (getweakrefcount, getweakrefs, ref, proxy, CallableProxyType, ProxyType, ReferenceType) from _weakrefset import WeakSet -ProxyTypes = ... # type: Any +ProxyTypes = ... # type: Any _KT = TypeVar('_KT') _VT = TypeVar('_VT') @@ -42,6 +42,6 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT], Generic[_KT, _VT]): # TODO: make generic class KeyedRef(ReferenceType): - key = ... # type: Any + key = ... # type: Any def __new__(type, ob, callback, key): ... def __init__(self, ob, callback, key): ... diff --git a/stdlib/2/wsgiref/validate.pyi b/stdlib/2/wsgiref/validate.pyi index 1fb10b43cdd5..490889c8f58c 100644 --- a/stdlib/2/wsgiref/validate.pyi +++ b/stdlib/2/wsgiref/validate.pyi @@ -9,7 +9,7 @@ class WSGIWarning(Warning): ... def validator(application): ... class InputWrapper: - input = ... # type: Any + input = ... # type: Any def __init__(self, wsgi_input): ... def read(self, *args): ... def readline(self): ... @@ -18,7 +18,7 @@ class InputWrapper: def close(self): ... class ErrorWrapper: - errors = ... # type: Any + errors = ... # type: Any def __init__(self, wsgi_errors): ... def write(self, s): ... def flush(self): ... @@ -26,20 +26,20 @@ class ErrorWrapper: def close(self): ... class WriteWrapper: - writer = ... # type: Any + writer = ... # type: Any def __init__(self, wsgi_writer): ... def __call__(self, s): ... class PartialIteratorWrapper: - iterator = ... # type: Any + iterator = ... # type: Any def __init__(self, wsgi_iterator): ... def __iter__(self): ... class IteratorWrapper: - original_iterator = ... # type: Any - iterator = ... # type: Any - closed = ... # type: Any - check_start_response = ... # type: Any + original_iterator = ... # type: Any + iterator = ... # type: Any + closed = ... # type: Any + check_start_response = ... # type: Any def __init__(self, wsgi_iterator, check_start_response): ... def __iter__(self): ... def next(self): ... diff --git a/stdlib/2/xml/etree/ElementInclude.pyi b/stdlib/2/xml/etree/ElementInclude.pyi index 09acc8f640f4..290ee09cd737 100644 --- a/stdlib/2/xml/etree/ElementInclude.pyi +++ b/stdlib/2/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from xml.etree.ElementTree import Element -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/2/xml/etree/ElementPath.pyi b/stdlib/2/xml/etree/ElementPath.pyi index e057b88cd52b..d0095e3cc7e4 100644 --- a/stdlib/2/xml/etree/ElementPath.pyi +++ b/stdlib/2/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional from xml.etree.ElementTree import Element -xpath_tokenizer_re = ... # type: Pattern +xpath_tokenizer_re = ... # type: Pattern _token = Tuple[str, str] _next = Callable[[], _token] @@ -20,11 +20,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ... def prepare_parent(next: _next, token: _token) -> _callback: ... def prepare_predicate(next: _next, token: _token) -> _callback: ... -ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] +ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] class _SelectorContext: - parent_map = ... # type: Dict[Element, Element] - root = ... # type: Element + parent_map = ... # type: Dict[Element, Element] + root = ... # type: Element def __init__(self, root: Element) -> None: ... _T = TypeVar('_T') diff --git a/stdlib/2/xml/etree/ElementTree.pyi b/stdlib/2/xml/etree/ElementTree.pyi index d7c68acb67f1..89e61f62ba52 100644 --- a/stdlib/2/xml/etree/ElementTree.pyi +++ b/stdlib/2/xml/etree/ElementTree.pyi @@ -5,7 +5,7 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') @@ -22,10 +22,10 @@ class ParseError(SyntaxError): ... def iselement(element: 'Element') -> bool: ... class Element(Sequence['Element']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ... def append(self, element: 'Element') -> None: ... def clear(self) -> None: ... @@ -56,10 +56,10 @@ def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., * def Comment(text: _str_or_bytes=...) -> Element: ... def ProcessingInstruction(target: str, text: str=...) -> Element: ... -PI = ... # type: Callable[..., Element] +PI = ... # type: Callable[..., Element] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -86,7 +86,7 @@ def parse(source: _file_or_filename, parser: 'XMLParser'=...) -> ElementTree: .. def iterparse(source: _file_or_filename, events: Sequence[str]=..., parser: 'XMLParser'=...) -> Iterator[Tuple[str, Element]]: ... class _IterParseIterator: - root = ... # type: Any + root = ... # type: Any def __init__(self, source: _file_or_filename, events: Sequence[str], parser: 'XMLParser', close_source: bool=...) -> None: ... def next(self) -> Tuple[str, Element]: ... def __iter__(self) -> _IterParseIterator: ... @@ -94,7 +94,7 @@ class _IterParseIterator: def XML(text: AnyStr, parser: 'XMLParser'=...) -> Element: ... def XMLID(text: AnyStr, parser: 'XMLParser'=...) -> Tuple[Element, Dict[str, Element]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., Element] +fromstring = ... # type: Callable[..., Element] def fromstringlist(sequence: Sequence[AnyStr], parser: 'XMLParser'=...) -> Element: ... class TreeBuilder: @@ -105,11 +105,11 @@ class TreeBuilder: def end(self, tag: AnyStr) -> Element: ... class XMLParser: - parser = ... # type: Any - target = ... # type: TreeBuilder + parser = ... # type: Any + target = ... # type: TreeBuilder # TODO-what is entity used for??? - entity = ... # type: Any - version = ... # type: str + entity = ... # type: Any + version = ... # type: str def __init__(self, html: int=..., target: TreeBuilder=..., encoding: str=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/2/zlib.pyi b/stdlib/2/zlib.pyi index d3c479e27f81..a232cc541ddf 100644 --- a/stdlib/2/zlib.pyi +++ b/stdlib/2/zlib.pyi @@ -1,19 +1,19 @@ # Stubs for zlib (Python 2.7) -DEFLATED = ... # type: int -DEF_MEM_LEVEL = ... # type: int -MAX_WBITS = ... # type: int -ZLIB_VERSION = ... # type: str -Z_BEST_COMPRESSION = ... # type: int -Z_BEST_SPEED = ... # type: int -Z_DEFAULT_COMPRESSION = ... # type: int -Z_DEFAULT_STRATEGY = ... # type: int -Z_FILTERED = ... # type: int -Z_FINISH = ... # type: int -Z_FULL_FLUSH = ... # type: int -Z_HUFFMAN_ONLY = ... # type: int -Z_NO_FLUSH = ... # type: int -Z_SYNC_FLUSH = ... # type: int +DEFLATED = ... # type: int +DEF_MEM_LEVEL = ... # type: int +MAX_WBITS = ... # type: int +ZLIB_VERSION = ... # type: str +Z_BEST_COMPRESSION = ... # type: int +Z_BEST_SPEED = ... # type: int +Z_DEFAULT_COMPRESSION = ... # type: int +Z_DEFAULT_STRATEGY = ... # type: int +Z_FILTERED = ... # type: int +Z_FINISH = ... # type: int +Z_FULL_FLUSH = ... # type: int +Z_HUFFMAN_ONLY = ... # type: int +Z_NO_FLUSH = ... # type: int +Z_SYNC_FLUSH = ... # type: int class error(Exception): ... diff --git a/stdlib/2and3/errno.pyi b/stdlib/2and3/errno.pyi index 8f6ce183ec20..d24f2e435ab7 100644 --- a/stdlib/2and3/errno.pyi +++ b/stdlib/2and3/errno.pyi @@ -3,7 +3,7 @@ from typing import Mapping import sys -errorcode = ... # type: Mapping[int, str] +errorcode = ... # type: Mapping[int, str] EPERM = ... # type: int ENOENT = ... # type: int diff --git a/stdlib/2and3/logging/__init__.pyi b/stdlib/2and3/logging/__init__.pyi index dcc15f5ce0dc..1dd74d8dc0a2 100644 --- a/stdlib/2and3/logging/__init__.pyi +++ b/stdlib/2and3/logging/__init__.pyi @@ -25,8 +25,8 @@ class Logger: level = ... # type: int parent = ... # type: Union[Logger, PlaceHolder] propagate = ... # type: bool - handlers = ... # type: List[Handler] - disabled = ... # type: int + handlers = ... # type: List[Handler] + disabled = ... # type: int def setLevel(self, lvl: Union[int, str]) -> None: ... def isEnabledFor(self, lvl: int) -> bool: ... def getEffectiveLevel(self) -> int: ... diff --git a/stdlib/2and3/mmap.pyi b/stdlib/2and3/mmap.pyi index de5b402081bd..5050dac74e44 100644 --- a/stdlib/2and3/mmap.pyi +++ b/stdlib/2and3/mmap.pyi @@ -18,19 +18,19 @@ class _ContextManager(Generic[_C]): exc_tb: Optional[TracebackType]) -> bool: ... -ACCESS_READ = ... # type: int -ACCESS_WRITE = ... # type: int -ACCESS_COPY = ... # type: int +ACCESS_READ = ... # type: int +ACCESS_WRITE = ... # type: int +ACCESS_COPY = ... # type: int -ALLOCATIONGRANULARITY = ... # type: int +ALLOCATIONGRANULARITY = ... # type: int if sys.platform != 'win32': - MAP_PRIVATE = ... # type: int - MAP_SHARED = ... # type: int - PROT_READ = ... # type: int - PROT_WRITE = ... # type: int + MAP_PRIVATE = ... # type: int + MAP_SHARED = ... # type: int + PROT_READ = ... # type: int + PROT_WRITE = ... # type: int - PAGESIZE = ... # type: int + PAGESIZE = ... # type: int class _mmap(Generic[_T]): if sys.platform == 'win32': @@ -61,7 +61,7 @@ class _mmap(Generic[_T]): if sys.version_info >= (3,): class mmap(_mmap, _ContextManager[mmap], Iterable[bytes], Container[bytes], Sized, Reversible[bytes]): - closed = ... # type: bool + closed = ... # type: bool def rfind(self, sub: bytes, start: int = ..., stop: int = ...) -> int: ... @overload def __getitem__(self, index: int) -> int: ... diff --git a/stdlib/2and3/termios.pyi b/stdlib/2and3/termios.pyi index aff13b58f061..2e800d4fd363 100644 --- a/stdlib/2and3/termios.pyi +++ b/stdlib/2and3/termios.pyi @@ -6,237 +6,237 @@ _FD = Union[int, IO[str]] _Attr = List[Union[int, List[bytes]]] # TODO constants not really documented -B0 = ... # type: int -B1000000 = ... # type: int -B110 = ... # type: int -B115200 = ... # type: int -B1152000 = ... # type: int -B1200 = ... # type: int -B134 = ... # type: int -B150 = ... # type: int -B1500000 = ... # type: int -B1800 = ... # type: int -B19200 = ... # type: int -B200 = ... # type: int -B2000000 = ... # type: int -B230400 = ... # type: int -B2400 = ... # type: int -B2500000 = ... # type: int -B300 = ... # type: int -B3000000 = ... # type: int -B3500000 = ... # type: int -B38400 = ... # type: int -B4000000 = ... # type: int -B460800 = ... # type: int -B4800 = ... # type: int -B50 = ... # type: int -B500000 = ... # type: int -B57600 = ... # type: int -B576000 = ... # type: int -B600 = ... # type: int -B75 = ... # type: int -B921600 = ... # type: int -B9600 = ... # type: int -BRKINT = ... # type: int -BS0 = ... # type: int -BS1 = ... # type: int -BSDLY = ... # type: int -CBAUD = ... # type: int -CBAUDEX = ... # type: int -CDSUSP = ... # type: int -CEOF = ... # type: int -CEOL = ... # type: int -CEOT = ... # type: int -CERASE = ... # type: int -CFLUSH = ... # type: int -CIBAUD = ... # type: int -CINTR = ... # type: int -CKILL = ... # type: int -CLNEXT = ... # type: int -CLOCAL = ... # type: int -CQUIT = ... # type: int -CR0 = ... # type: int -CR1 = ... # type: int -CR2 = ... # type: int -CR3 = ... # type: int -CRDLY = ... # type: int -CREAD = ... # type: int -CRPRNT = ... # type: int -CRTSCTS = ... # type: int -CS5 = ... # type: int -CS6 = ... # type: int -CS7 = ... # type: int -CS8 = ... # type: int -CSIZE = ... # type: int -CSTART = ... # type: int -CSTOP = ... # type: int -CSTOPB = ... # type: int -CSUSP = ... # type: int -CWERASE = ... # type: int -ECHO = ... # type: int -ECHOCTL = ... # type: int -ECHOE = ... # type: int -ECHOK = ... # type: int -ECHOKE = ... # type: int -ECHONL = ... # type: int -ECHOPRT = ... # type: int -EXTA = ... # type: int -EXTB = ... # type: int -FF0 = ... # type: int -FF1 = ... # type: int -FFDLY = ... # type: int -FIOASYNC = ... # type: int -FIOCLEX = ... # type: int -FIONBIO = ... # type: int -FIONCLEX = ... # type: int -FIONREAD = ... # type: int -FLUSHO = ... # type: int -HUPCL = ... # type: int -ICANON = ... # type: int -ICRNL = ... # type: int -IEXTEN = ... # type: int -IGNBRK = ... # type: int -IGNCR = ... # type: int -IGNPAR = ... # type: int -IMAXBEL = ... # type: int -INLCR = ... # type: int -INPCK = ... # type: int -IOCSIZE_MASK = ... # type: int -IOCSIZE_SHIFT = ... # type: int -ISIG = ... # type: int -ISTRIP = ... # type: int -IUCLC = ... # type: int -IXANY = ... # type: int -IXOFF = ... # type: int -IXON = ... # type: int -NCC = ... # type: int -NCCS = ... # type: int -NL0 = ... # type: int -NL1 = ... # type: int -NLDLY = ... # type: int -NOFLSH = ... # type: int -N_MOUSE = ... # type: int -N_PPP = ... # type: int -N_SLIP = ... # type: int -N_STRIP = ... # type: int -N_TTY = ... # type: int -OCRNL = ... # type: int -OFDEL = ... # type: int -OFILL = ... # type: int -OLCUC = ... # type: int -ONLCR = ... # type: int -ONLRET = ... # type: int -ONOCR = ... # type: int -OPOST = ... # type: int -PARENB = ... # type: int -PARMRK = ... # type: int -PARODD = ... # type: int -PENDIN = ... # type: int -TAB0 = ... # type: int -TAB1 = ... # type: int -TAB2 = ... # type: int -TAB3 = ... # type: int -TABDLY = ... # type: int -TCFLSH = ... # type: int -TCGETA = ... # type: int -TCGETS = ... # type: int -TCIFLUSH = ... # type: int -TCIOFF = ... # type: int -TCIOFLUSH = ... # type: int -TCION = ... # type: int -TCOFLUSH = ... # type: int -TCOOFF = ... # type: int -TCOON = ... # type: int -TCSADRAIN = ... # type: int -TCSAFLUSH = ... # type: int -TCSANOW = ... # type: int -TCSBRK = ... # type: int -TCSBRKP = ... # type: int -TCSETA = ... # type: int -TCSETAF = ... # type: int -TCSETAW = ... # type: int -TCSETS = ... # type: int -TCSETSF = ... # type: int -TCSETSW = ... # type: int -TCXONC = ... # type: int -TIOCCONS = ... # type: int -TIOCEXCL = ... # type: int -TIOCGETD = ... # type: int -TIOCGICOUNT = ... # type: int -TIOCGLCKTRMIOS = ... # type: int -TIOCGPGRP = ... # type: int -TIOCGSERIAL = ... # type: int -TIOCGSOFTCAR = ... # type: int -TIOCGWINSZ = ... # type: int -TIOCINQ = ... # type: int -TIOCLINUX = ... # type: int -TIOCMBIC = ... # type: int -TIOCMBIS = ... # type: int -TIOCMGET = ... # type: int -TIOCMIWAIT = ... # type: int -TIOCMSET = ... # type: int -TIOCM_CAR = ... # type: int -TIOCM_CD = ... # type: int -TIOCM_CTS = ... # type: int -TIOCM_DSR = ... # type: int -TIOCM_DTR = ... # type: int -TIOCM_LE = ... # type: int -TIOCM_RI = ... # type: int -TIOCM_RNG = ... # type: int -TIOCM_RTS = ... # type: int -TIOCM_SR = ... # type: int -TIOCM_ST = ... # type: int -TIOCNOTTY = ... # type: int -TIOCNXCL = ... # type: int -TIOCOUTQ = ... # type: int -TIOCPKT = ... # type: int -TIOCPKT_DATA = ... # type: int -TIOCPKT_DOSTOP = ... # type: int -TIOCPKT_FLUSHREAD = ... # type: int -TIOCPKT_FLUSHWRITE = ... # type: int -TIOCPKT_NOSTOP = ... # type: int -TIOCPKT_START = ... # type: int -TIOCPKT_STOP = ... # type: int -TIOCSCTTY = ... # type: int -TIOCSERCONFIG = ... # type: int -TIOCSERGETLSR = ... # type: int -TIOCSERGETMULTI = ... # type: int -TIOCSERGSTRUCT = ... # type: int -TIOCSERGWILD = ... # type: int -TIOCSERSETMULTI = ... # type: int -TIOCSERSWILD = ... # type: int -TIOCSER_TEMT = ... # type: int -TIOCSETD = ... # type: int -TIOCSLCKTRMIOS = ... # type: int -TIOCSPGRP = ... # type: int -TIOCSSERIAL = ... # type: int -TIOCSSOFTCAR = ... # type: int -TIOCSTI = ... # type: int -TIOCSWINSZ = ... # type: int -TOSTOP = ... # type: int -VDISCARD = ... # type: int -VEOF = ... # type: int -VEOL = ... # type: int -VEOL2 = ... # type: int -VERASE = ... # type: int -VINTR = ... # type: int -VKILL = ... # type: int -VLNEXT = ... # type: int -VMIN = ... # type: int -VQUIT = ... # type: int -VREPRINT = ... # type: int -VSTART = ... # type: int -VSTOP = ... # type: int -VSUSP = ... # type: int -VSWTC = ... # type: int -VSWTCH = ... # type: int -VT0 = ... # type: int -VT1 = ... # type: int -VTDLY = ... # type: int -VTIME = ... # type: int -VWERASE = ... # type: int -XCASE = ... # type: int -XTABS = ... # type: int +B0 = ... # type: int +B1000000 = ... # type: int +B110 = ... # type: int +B115200 = ... # type: int +B1152000 = ... # type: int +B1200 = ... # type: int +B134 = ... # type: int +B150 = ... # type: int +B1500000 = ... # type: int +B1800 = ... # type: int +B19200 = ... # type: int +B200 = ... # type: int +B2000000 = ... # type: int +B230400 = ... # type: int +B2400 = ... # type: int +B2500000 = ... # type: int +B300 = ... # type: int +B3000000 = ... # type: int +B3500000 = ... # type: int +B38400 = ... # type: int +B4000000 = ... # type: int +B460800 = ... # type: int +B4800 = ... # type: int +B50 = ... # type: int +B500000 = ... # type: int +B57600 = ... # type: int +B576000 = ... # type: int +B600 = ... # type: int +B75 = ... # type: int +B921600 = ... # type: int +B9600 = ... # type: int +BRKINT = ... # type: int +BS0 = ... # type: int +BS1 = ... # type: int +BSDLY = ... # type: int +CBAUD = ... # type: int +CBAUDEX = ... # type: int +CDSUSP = ... # type: int +CEOF = ... # type: int +CEOL = ... # type: int +CEOT = ... # type: int +CERASE = ... # type: int +CFLUSH = ... # type: int +CIBAUD = ... # type: int +CINTR = ... # type: int +CKILL = ... # type: int +CLNEXT = ... # type: int +CLOCAL = ... # type: int +CQUIT = ... # type: int +CR0 = ... # type: int +CR1 = ... # type: int +CR2 = ... # type: int +CR3 = ... # type: int +CRDLY = ... # type: int +CREAD = ... # type: int +CRPRNT = ... # type: int +CRTSCTS = ... # type: int +CS5 = ... # type: int +CS6 = ... # type: int +CS7 = ... # type: int +CS8 = ... # type: int +CSIZE = ... # type: int +CSTART = ... # type: int +CSTOP = ... # type: int +CSTOPB = ... # type: int +CSUSP = ... # type: int +CWERASE = ... # type: int +ECHO = ... # type: int +ECHOCTL = ... # type: int +ECHOE = ... # type: int +ECHOK = ... # type: int +ECHOKE = ... # type: int +ECHONL = ... # type: int +ECHOPRT = ... # type: int +EXTA = ... # type: int +EXTB = ... # type: int +FF0 = ... # type: int +FF1 = ... # type: int +FFDLY = ... # type: int +FIOASYNC = ... # type: int +FIOCLEX = ... # type: int +FIONBIO = ... # type: int +FIONCLEX = ... # type: int +FIONREAD = ... # type: int +FLUSHO = ... # type: int +HUPCL = ... # type: int +ICANON = ... # type: int +ICRNL = ... # type: int +IEXTEN = ... # type: int +IGNBRK = ... # type: int +IGNCR = ... # type: int +IGNPAR = ... # type: int +IMAXBEL = ... # type: int +INLCR = ... # type: int +INPCK = ... # type: int +IOCSIZE_MASK = ... # type: int +IOCSIZE_SHIFT = ... # type: int +ISIG = ... # type: int +ISTRIP = ... # type: int +IUCLC = ... # type: int +IXANY = ... # type: int +IXOFF = ... # type: int +IXON = ... # type: int +NCC = ... # type: int +NCCS = ... # type: int +NL0 = ... # type: int +NL1 = ... # type: int +NLDLY = ... # type: int +NOFLSH = ... # type: int +N_MOUSE = ... # type: int +N_PPP = ... # type: int +N_SLIP = ... # type: int +N_STRIP = ... # type: int +N_TTY = ... # type: int +OCRNL = ... # type: int +OFDEL = ... # type: int +OFILL = ... # type: int +OLCUC = ... # type: int +ONLCR = ... # type: int +ONLRET = ... # type: int +ONOCR = ... # type: int +OPOST = ... # type: int +PARENB = ... # type: int +PARMRK = ... # type: int +PARODD = ... # type: int +PENDIN = ... # type: int +TAB0 = ... # type: int +TAB1 = ... # type: int +TAB2 = ... # type: int +TAB3 = ... # type: int +TABDLY = ... # type: int +TCFLSH = ... # type: int +TCGETA = ... # type: int +TCGETS = ... # type: int +TCIFLUSH = ... # type: int +TCIOFF = ... # type: int +TCIOFLUSH = ... # type: int +TCION = ... # type: int +TCOFLUSH = ... # type: int +TCOOFF = ... # type: int +TCOON = ... # type: int +TCSADRAIN = ... # type: int +TCSAFLUSH = ... # type: int +TCSANOW = ... # type: int +TCSBRK = ... # type: int +TCSBRKP = ... # type: int +TCSETA = ... # type: int +TCSETAF = ... # type: int +TCSETAW = ... # type: int +TCSETS = ... # type: int +TCSETSF = ... # type: int +TCSETSW = ... # type: int +TCXONC = ... # type: int +TIOCCONS = ... # type: int +TIOCEXCL = ... # type: int +TIOCGETD = ... # type: int +TIOCGICOUNT = ... # type: int +TIOCGLCKTRMIOS = ... # type: int +TIOCGPGRP = ... # type: int +TIOCGSERIAL = ... # type: int +TIOCGSOFTCAR = ... # type: int +TIOCGWINSZ = ... # type: int +TIOCINQ = ... # type: int +TIOCLINUX = ... # type: int +TIOCMBIC = ... # type: int +TIOCMBIS = ... # type: int +TIOCMGET = ... # type: int +TIOCMIWAIT = ... # type: int +TIOCMSET = ... # type: int +TIOCM_CAR = ... # type: int +TIOCM_CD = ... # type: int +TIOCM_CTS = ... # type: int +TIOCM_DSR = ... # type: int +TIOCM_DTR = ... # type: int +TIOCM_LE = ... # type: int +TIOCM_RI = ... # type: int +TIOCM_RNG = ... # type: int +TIOCM_RTS = ... # type: int +TIOCM_SR = ... # type: int +TIOCM_ST = ... # type: int +TIOCNOTTY = ... # type: int +TIOCNXCL = ... # type: int +TIOCOUTQ = ... # type: int +TIOCPKT = ... # type: int +TIOCPKT_DATA = ... # type: int +TIOCPKT_DOSTOP = ... # type: int +TIOCPKT_FLUSHREAD = ... # type: int +TIOCPKT_FLUSHWRITE = ... # type: int +TIOCPKT_NOSTOP = ... # type: int +TIOCPKT_START = ... # type: int +TIOCPKT_STOP = ... # type: int +TIOCSCTTY = ... # type: int +TIOCSERCONFIG = ... # type: int +TIOCSERGETLSR = ... # type: int +TIOCSERGETMULTI = ... # type: int +TIOCSERGSTRUCT = ... # type: int +TIOCSERGWILD = ... # type: int +TIOCSERSETMULTI = ... # type: int +TIOCSERSWILD = ... # type: int +TIOCSER_TEMT = ... # type: int +TIOCSETD = ... # type: int +TIOCSLCKTRMIOS = ... # type: int +TIOCSPGRP = ... # type: int +TIOCSSERIAL = ... # type: int +TIOCSSOFTCAR = ... # type: int +TIOCSTI = ... # type: int +TIOCSWINSZ = ... # type: int +TOSTOP = ... # type: int +VDISCARD = ... # type: int +VEOF = ... # type: int +VEOL = ... # type: int +VEOL2 = ... # type: int +VERASE = ... # type: int +VINTR = ... # type: int +VKILL = ... # type: int +VLNEXT = ... # type: int +VMIN = ... # type: int +VQUIT = ... # type: int +VREPRINT = ... # type: int +VSTART = ... # type: int +VSTOP = ... # type: int +VSUSP = ... # type: int +VSWTC = ... # type: int +VSWTCH = ... # type: int +VT0 = ... # type: int +VT1 = ... # type: int +VTDLY = ... # type: int +VTIME = ... # type: int +VWERASE = ... # type: int +XCASE = ... # type: int +XTABS = ... # type: int def tcgetattr(fd: _FD) -> _Attr: ... def tcsetattr(fd: _FD, when: int, attributes: _Attr) -> None: ... diff --git a/stdlib/2and3/webbrowser.pyi b/stdlib/2and3/webbrowser.pyi index 93cbaca59cf2..a478edfd06c9 100644 --- a/stdlib/2and3/webbrowser.pyi +++ b/stdlib/2and3/webbrowser.pyi @@ -14,18 +14,18 @@ def open_new(url: str) -> bool: ... def open_new_tab(url: str) -> bool: ... class BaseBrowser: - args = ... # type: List[str] - name = ... # type: str - basename = ... # type: str + args = ... # type: List[str] + name = ... # type: str + basename = ... # type: str def __init__(self, name: str=...) -> None: ... def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... def open_new(self, url: str) -> bool: ... def open_new_tab(self, url: str) -> bool: ... class GenericBrowser(BaseBrowser): - args = ... # type: List[str] - name = ... # type: str - basename = ... # type: str + args = ... # type: List[str] + name = ... # type: str + basename = ... # type: str def __init__(self, name: str) -> None: ... def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... @@ -33,53 +33,53 @@ class BackgroundBrowser(GenericBrowser): def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class UnixBrowser(BaseBrowser): - raise_opts = ... # type: List[str] - background = ... # type: bool - redirect_stdout = ... # type: bool - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str + raise_opts = ... # type: List[str] + background = ... # type: bool + redirect_stdout = ... # type: bool + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class Mozilla(UnixBrowser): - raise_opts = ... # type: List[str] - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str - background = ... # type: bool + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Galeon(UnixBrowser): - raise_opts = ... # type: List[str] - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - background = ... # type: bool + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + background = ... # type: bool if sys.version_info[:2] == (2, 7) or sys.version_info >= (3, 3): class Chrome(UnixBrowser): - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str - background = ... # type: bool + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Opera(UnixBrowser): - raise_opts = ... # type: List[str] - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str - background = ... # type: bool + raise_opts = ... # type: List[str] + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool class Elinks(UnixBrowser): - remote_args = ... # type: List[str] - remote_action = ... # type: str - remote_action_newwin = ... # type: str - remote_action_newtab = ... # type: str - background = ... # type: bool - redirect_stdout = ... # type: bool + remote_args = ... # type: List[str] + remote_action = ... # type: str + remote_action_newwin = ... # type: str + remote_action_newtab = ... # type: str + background = ... # type: bool + redirect_stdout = ... # type: bool class Konqueror(BaseBrowser): def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... @@ -91,7 +91,7 @@ class WindowsDefault(BaseBrowser): def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... class MacOSX(BaseBrowser): - name = ... # type: str + name = ... # type: str def __init__(self, name: str) -> None: ... def open(self, url: str, new: int=..., autoraise: bool=...) -> bool: ... diff --git a/stdlib/2and3/xml/sax/handler.pyi b/stdlib/2and3/xml/sax/handler.pyi index 935a5a324204..f3221b50103f 100644 --- a/stdlib/2and3/xml/sax/handler.pyi +++ b/stdlib/2and3/xml/sax/handler.pyi @@ -4,7 +4,7 @@ from typing import Any -version = ... # type: Any +version = ... # type: Any class ErrorHandler: def error(self, exception): ... @@ -34,17 +34,17 @@ class DTDHandler: class EntityResolver: def resolveEntity(self, publicId, systemId): ... -feature_namespaces = ... # type: Any -feature_namespace_prefixes = ... # type: Any -feature_string_interning = ... # type: Any -feature_validation = ... # type: Any -feature_external_ges = ... # type: Any -feature_external_pes = ... # type: Any -all_features = ... # type: Any -property_lexical_handler = ... # type: Any -property_declaration_handler = ... # type: Any -property_dom_node = ... # type: Any -property_xml_string = ... # type: Any -property_encoding = ... # type: Any -property_interning_dict = ... # type: Any -all_properties = ... # type: Any +feature_namespaces = ... # type: Any +feature_namespace_prefixes = ... # type: Any +feature_string_interning = ... # type: Any +feature_validation = ... # type: Any +feature_external_ges = ... # type: Any +feature_external_pes = ... # type: Any +all_features = ... # type: Any +property_lexical_handler = ... # type: Any +property_declaration_handler = ... # type: Any +property_dom_node = ... # type: Any +property_xml_string = ... # type: Any +property_encoding = ... # type: Any +property_interning_dict = ... # type: Any +all_properties = ... # type: Any diff --git a/stdlib/3.2/xml/etree/ElementInclude.pyi b/stdlib/3.2/xml/etree/ElementInclude.pyi index a9e04f256c4a..bbe3fb3ed057 100644 --- a/stdlib/3.2/xml/etree/ElementInclude.pyi +++ b/stdlib/3.2/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from .ElementTree import Element -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/3.2/xml/etree/ElementPath.pyi b/stdlib/3.2/xml/etree/ElementPath.pyi index e17e5bb3a9b4..b1ea50e68cf0 100644 --- a/stdlib/3.2/xml/etree/ElementPath.pyi +++ b/stdlib/3.2/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional from .ElementTree import Element -xpath_tokenizer_re = ... # type: Pattern +xpath_tokenizer_re = ... # type: Pattern _token = Tuple[str, str] _next = Callable[[], _token] @@ -20,11 +20,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ... def prepare_parent(next: _next, token: _token) -> _callback: ... def prepare_predicate(next: _next, token: _token) -> _callback: ... -ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] +ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] class _SelectorContext: - parent_map = ... # type: Dict[Element, Element] - root = ... # type: Element + parent_map = ... # type: Dict[Element, Element] + root = ... # type: Element def __init__(self, root: Element) -> None: ... _T = TypeVar('_T') diff --git a/stdlib/3.2/xml/etree/ElementTree.pyi b/stdlib/3.2/xml/etree/ElementTree.pyi index 19675b924d38..0ae1e3f6a42b 100644 --- a/stdlib/3.2/xml/etree/ElementTree.pyi +++ b/stdlib/3.2/xml/etree/ElementTree.pyi @@ -5,7 +5,7 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') @@ -22,10 +22,10 @@ class ParseError(SyntaxError): ... def iselement(element: 'Element') -> bool: ... class Element(Sequence['Element']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ... def append(self, subelement: 'Element') -> None: ... def clear(self) -> None: ... @@ -56,10 +56,10 @@ def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., * def Comment(text: _str_or_bytes=...) -> Element: ... def ProcessingInstruction(target: str, text: str=...) -> Element: ... -PI = ... # type: Callable[..., Element] +PI = ... # type: Callable[..., Element] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -88,7 +88,7 @@ def iterparse(source: _file_or_filename, events: Sequence[str]=..., parser: 'XML class _IterParseIterator: - root = ... # type: Any + root = ... # type: Any def __init__(self, source: _file_or_filename, events: Sequence[str], parser: 'XMLParser', close_source: bool=...) -> None: ... def __next__(self) -> Tuple[str, Element]: ... def __iter__(self) -> _IterParseIterator: ... @@ -97,7 +97,7 @@ def XML(text: AnyStr, parser: 'XMLParser'=...) -> Element: ... def XMLID(text: AnyStr, parser: 'XMLParser'=...) -> Tuple[Element, Dict[str, Element]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., Element] +fromstring = ... # type: Callable[..., Element] def fromstringlist(sequence: Sequence[AnyStr], parser: 'XMLParser'=...) -> Element: ... @@ -109,11 +109,11 @@ class TreeBuilder: def end(self, tag: AnyStr) -> Element: ... class XMLParser: - parser = ... # type: Any - target = ... # type: TreeBuilder + parser = ... # type: Any + target = ... # type: TreeBuilder # TODO-what is entity used for??? - entity = ... # type: Any - version = ... # type: str + entity = ... # type: Any + version = ... # type: str def __init__(self, html: int=..., target: TreeBuilder=..., encoding: str=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/3.3/ipaddress.pyi b/stdlib/3.3/ipaddress.pyi index e56803261327..69c2454fdfed 100644 --- a/stdlib/3.3/ipaddress.pyi +++ b/stdlib/3.3/ipaddress.pyi @@ -4,8 +4,8 @@ from typing import Any -IPV4LENGTH = ... # type: Any -IPV6LENGTH = ... # type: Any +IPV4LENGTH = ... # type: Any +IPV6LENGTH = ... # type: Any class AddressValueError(ValueError): ... class NetmaskValueError(ValueError): ... @@ -112,9 +112,9 @@ class IPv4Address(_BaseV4, _BaseAddress): def is_link_local(self): ... class IPv4Interface(IPv4Address): - network = ... # type: Any - netmask = ... # type: Any - hostmask = ... # type: Any + network = ... # type: Any + netmask = ... # type: Any + hostmask = ... # type: Any def __init__(self, address) -> None: ... def __eq__(self, other): ... def __lt__(self, other): ... @@ -129,9 +129,9 @@ class IPv4Interface(IPv4Address): def with_hostmask(self): ... class IPv4Network(_BaseV4, _BaseNetwork): - network_address = ... # type: Any - netmask = ... # type: Any - hosts = ... # type: Any + network_address = ... # type: Any + netmask = ... # type: Any + hosts = ... # type: Any def __init__(self, address, strict=...) -> None: ... @property def is_global(self): ... @@ -171,9 +171,9 @@ class IPv6Address(_BaseV6, _BaseAddress): def sixtofour(self): ... class IPv6Interface(IPv6Address): - network = ... # type: Any - netmask = ... # type: Any - hostmask = ... # type: Any + network = ... # type: Any + netmask = ... # type: Any + hostmask = ... # type: Any def __init__(self, address) -> None: ... def __eq__(self, other): ... def __lt__(self, other): ... @@ -192,8 +192,8 @@ class IPv6Interface(IPv6Address): def is_loopback(self): ... class IPv6Network(_BaseV6, _BaseNetwork): - network_address = ... # type: Any - netmask = ... # type: Any + network_address = ... # type: Any + netmask = ... # type: Any def __init__(self, address, strict=...) -> None: ... def hosts(self): ... @property diff --git a/stdlib/3.3/xml/etree/ElementInclude.pyi b/stdlib/3.3/xml/etree/ElementInclude.pyi index a9e04f256c4a..bbe3fb3ed057 100644 --- a/stdlib/3.3/xml/etree/ElementInclude.pyi +++ b/stdlib/3.3/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from .ElementTree import Element -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/3.3/xml/etree/ElementPath.pyi b/stdlib/3.3/xml/etree/ElementPath.pyi index e17e5bb3a9b4..b1ea50e68cf0 100644 --- a/stdlib/3.3/xml/etree/ElementPath.pyi +++ b/stdlib/3.3/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional from .ElementTree import Element -xpath_tokenizer_re = ... # type: Pattern +xpath_tokenizer_re = ... # type: Pattern _token = Tuple[str, str] _next = Callable[[], _token] @@ -20,11 +20,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ... def prepare_parent(next: _next, token: _token) -> _callback: ... def prepare_predicate(next: _next, token: _token) -> _callback: ... -ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] +ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] class _SelectorContext: - parent_map = ... # type: Dict[Element, Element] - root = ... # type: Element + parent_map = ... # type: Dict[Element, Element] + root = ... # type: Element def __init__(self, root: Element) -> None: ... _T = TypeVar('_T') diff --git a/stdlib/3.3/xml/etree/ElementTree.pyi b/stdlib/3.3/xml/etree/ElementTree.pyi index cccf4934d3d7..148b89e55f0a 100644 --- a/stdlib/3.3/xml/etree/ElementTree.pyi +++ b/stdlib/3.3/xml/etree/ElementTree.pyi @@ -5,7 +5,7 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str class ParseError(SyntaxError): ... @@ -16,10 +16,10 @@ _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] class Element(Sequence['Element']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ... def append(self, subelement: 'Element') -> None: ... def clear(self) -> None: ... @@ -50,10 +50,10 @@ def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., * def Comment(text: _str_or_bytes=...) -> Element: ... def ProcessingInstruction(target: str, text: str=...) -> Element: ... -PI = ... # type: Callable[..., Element] +PI = ... # type: Callable[..., Element] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -81,7 +81,7 @@ def iterparse(source: _file_or_filename, events: Sequence[str]=..., parser: 'XML class _IterParseIterator: - root = ... # type: Any + root = ... # type: Any def __init__(self, source: _file_or_filename, events: Sequence[str], parser: 'XMLParser', close_source: bool=...) -> None: ... def __next__(self) -> Tuple[str, Element]: ... def __iter__(self) -> _IterParseIterator: ... @@ -90,7 +90,7 @@ def XML(text: AnyStr, parser: 'XMLParser'=...) -> Element: ... def XMLID(text: AnyStr, parser: 'XMLParser'=...) -> Tuple[Element, Dict[str, Element]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., Element] +fromstring = ... # type: Callable[..., Element] def fromstringlist(sequence: Sequence[AnyStr], parser: 'XMLParser'=...) -> Element: ... @@ -102,11 +102,11 @@ class TreeBuilder: def end(self, tag: AnyStr) -> Element: ... class XMLParser: - parser = ... # type: Any - target = ... # type: TreeBuilder + parser = ... # type: Any + target = ... # type: TreeBuilder # TODO-what is entity used for??? - entity = ... # type: Any - version = ... # type: str + entity = ... # type: Any + version = ... # type: str def __init__(self, html: int=..., target: TreeBuilder=..., encoding: str=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/3.4/asyncio/__init__.pyi b/stdlib/3.4/asyncio/__init__.pyi index 7eb6e883e7a5..5f83bc6cf80b 100644 --- a/stdlib/3.4/asyncio/__init__.pyi +++ b/stdlib/3.4/asyncio/__init__.pyi @@ -94,4 +94,4 @@ DefaultEventLoopPolicy = ... # type: Type[AbstractEventLoopPolicy] # TODO: AbstractChildWatcher (UNIX only) -__all__ = ... # type: str +__all__ = ... # type: str diff --git a/stdlib/3.4/asyncio/coroutines.pyi b/stdlib/3.4/asyncio/coroutines.pyi index 668c83b716b5..9072dd7f8544 100644 --- a/stdlib/3.4/asyncio/coroutines.pyi +++ b/stdlib/3.4/asyncio/coroutines.pyi @@ -1,6 +1,6 @@ from typing import Any, Callable, Generator, TypeVar -__all__ = ... # type: str +__all__ = ... # type: str _F = TypeVar('_F', bound=Callable[..., Any]) diff --git a/stdlib/3.4/asyncio/events.pyi b/stdlib/3.4/asyncio/events.pyi index 15328e5324f2..dffae34676ae 100644 --- a/stdlib/3.4/asyncio/events.pyi +++ b/stdlib/3.4/asyncio/events.pyi @@ -3,7 +3,7 @@ from abc import ABCMeta, abstractmethod from asyncio.futures import Future from asyncio.coroutines import coroutine -__all__ = ... # type: str +__all__ = ... # type: str _T = TypeVar('_T') @@ -14,7 +14,7 @@ AI_PASSIVE = 0 class Handle: _cancelled = False - _args = ... # type: List[Any] + _args = ... # type: List[Any] def __init__(self, callback: Callable[..., Any], args: List[Any], loop: AbstractEventLoop) -> None: ... def __repr__(self) -> str: ... @@ -30,7 +30,7 @@ class AbstractEventLoop(metaclass=ABCMeta): @abstractmethod def run_forever(self) -> None: ... - # Can't use a union, see mypy issue #1873. + # Can't use a union, see mypy issue #1873. @overload @abstractmethod def run_until_complete(self, future: Generator[Any, Any, _T]) -> _T: ... @@ -127,11 +127,11 @@ class AbstractEventLoop(metaclass=ABCMeta): def remove_writer(self, fd: int) -> None: ... # Completion based I/O methods returning Futures. @abstractmethod - def sock_recv(self, sock: Any, nbytes: int) -> Any: ... #TODO + def sock_recv(self, sock: Any, nbytes: int) -> Any: ... #TODO @abstractmethod - def sock_sendall(self, sock: Any, data: bytes) -> None: ... #TODO + def sock_sendall(self, sock: Any, data: bytes) -> None: ... #TODO @abstractmethod - def sock_connect(self, sock: Any, address: str) -> Any: ... #TODO + def sock_connect(self, sock: Any, address: str) -> Any: ... #TODO @abstractmethod def sock_accept(self, sock: Any) -> Any: ... # Signal handling. @@ -163,7 +163,7 @@ class AbstractEventLoopPolicy(metaclass=ABCMeta): @abstractmethod def get_child_watcher(self) -> Any: ... # TODO: unix_events.AbstractChildWatcher @abstractmethod - def set_child_watcher(self, watcher: Any) -> None: ... # TODO: unix_events.AbstractChildWatcher + def set_child_watcher(self, watcher: Any) -> None: ... # TODO: unix_events.AbstractChildWatcher class BaseDefaultEventLoopPolicy(AbstractEventLoopPolicy): def __init__(self) -> None: ... @@ -179,4 +179,4 @@ def set_event_loop(loop: AbstractEventLoop) -> None: ... def new_event_loop() -> AbstractEventLoop: ... def get_child_watcher() -> Any: ... # TODO: unix_events.AbstractChildWatcher -def set_child_watcher(watcher: Any) -> None: ... # TODO: unix_events.AbstractChildWatcher +def set_child_watcher(watcher: Any) -> None: ... # TODO: unix_events.AbstractChildWatcher diff --git a/stdlib/3.4/asyncio/futures.pyi b/stdlib/3.4/asyncio/futures.pyi index 1ce31976431d..1376cb331aee 100644 --- a/stdlib/3.4/asyncio/futures.pyi +++ b/stdlib/3.4/asyncio/futures.pyi @@ -1,7 +1,7 @@ from typing import Any, Union, Callable, TypeVar, List, Generic, Iterable, Generator, Awaitable from .events import AbstractEventLoop -__all__ = ... # type: str +__all__ = ... # type: str _T = TypeVar('_T') @@ -16,7 +16,7 @@ class InvalidStateError(Error): ... class _TracebackLogger: exc = ... # type: BaseException - tb = ... # type: List[str] + tb = ... # type: List[str] def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ... def activate(self) -> None: ... def clear(self) -> None: ... @@ -24,7 +24,7 @@ class _TracebackLogger: class Future(Iterable[_T], Awaitable[_T], Generic[_T]): _state = ... # type: str - _exception = ... # type: BaseException + _exception = ... # type: BaseException _blocking = False _log_traceback = False _tb_logger = _TracebackLogger diff --git a/stdlib/3.4/asyncio/protocols.pyi b/stdlib/3.4/asyncio/protocols.pyi index 9ad7e4ea1814..d20313c23a91 100644 --- a/stdlib/3.4/asyncio/protocols.pyi +++ b/stdlib/3.4/asyncio/protocols.pyi @@ -1,6 +1,6 @@ from typing import AnyStr -__all__ = ... # type: str +__all__ = ... # type: str from asyncio import transports diff --git a/stdlib/3.4/asyncio/queues.pyi b/stdlib/3.4/asyncio/queues.pyi index edbb18318b60..f08a545d5419 100644 --- a/stdlib/3.4/asyncio/queues.pyi +++ b/stdlib/3.4/asyncio/queues.pyi @@ -1,6 +1,6 @@ from typing import TypeVar, Generic -__all__ = ... # type: str +__all__ = ... # type: str from asyncio.events import AbstractEventLoop from .coroutines import coroutine diff --git a/stdlib/3.4/asyncio/streams.pyi b/stdlib/3.4/asyncio/streams.pyi index 00fe38e504b8..ebc4bcf296ff 100644 --- a/stdlib/3.4/asyncio/streams.pyi +++ b/stdlib/3.4/asyncio/streams.pyi @@ -8,7 +8,7 @@ from . import events from . import protocols from . import transports -__all__ = ... # type: str +__all__ = ... # type: str class IncompleteReadError(EOFError): def __init__(self, partial: str, expected: int) -> None: ... diff --git a/stdlib/3.4/asyncio/subprocess.pyi b/stdlib/3.4/asyncio/subprocess.pyi index 4ea6deb13270..5f4553f74a3c 100644 --- a/stdlib/3.4/asyncio/subprocess.pyi +++ b/stdlib/3.4/asyncio/subprocess.pyi @@ -1,6 +1,6 @@ from typing import Any, AnyStr, Tuple, Union -__all__ = ... # type: str +__all__ = ... # type: str from asyncio import events from asyncio import protocols @@ -9,9 +9,9 @@ from asyncio import transports from asyncio.coroutines import coroutine -PIPE = ... # type: int -STDOUT = ... # type: int -DEVNULL = ... # type: int +PIPE = ... # type: int +STDOUT = ... # type: int +DEVNULL = ... # type: int class SubprocessStreamProtocol(streams.FlowControlMixin, protocols.SubprocessProtocol): @@ -40,7 +40,7 @@ class Process: @coroutine def create_subprocess_shell( - *Args: Union[str, bytes], # Union used instead of AnyStr due to mypy issue #1236 + *Args: Union[str, bytes], # Union used instead of AnyStr due to mypy issue #1236 stdin: int = ..., stdout: int = ..., stderr: int = ..., @@ -50,7 +50,7 @@ def create_subprocess_shell( @coroutine def create_subprocess_exec( - program: Union[str, bytes], # Union used instead of AnyStr due to mypy issue #1236 + program: Union[str, bytes], # Union used instead of AnyStr due to mypy issue #1236 *args: Any, stdin: int = ..., stdout: int = ..., diff --git a/stdlib/3.4/asyncio/tasks.pyi b/stdlib/3.4/asyncio/tasks.pyi index c67518f79697..ebf0a72124c4 100644 --- a/stdlib/3.4/asyncio/tasks.pyi +++ b/stdlib/3.4/asyncio/tasks.pyi @@ -3,7 +3,7 @@ from typing import (Any, TypeVar, Set, Dict, List, TextIO, Union, Tuple, Generic Optional) import concurrent.futures -__all__ = ... # type: str +__all__ = ... # type: str from .events import AbstractEventLoop from .futures import Future @@ -41,7 +41,7 @@ class Task(Future[_T], Generic[_T]): @classmethod def all_tasks(cls, loop: AbstractEventLoop = ...) -> Set[Task]: ... - # Can't use a union, see mypy issue #1873. + # Can't use a union, see mypy issue #1873. @overload def __init__(self, coro: Generator[Any, None, _T], *, loop: AbstractEventLoop = ...) -> None: ... diff --git a/stdlib/3.4/asyncio/transports.pyi b/stdlib/3.4/asyncio/transports.pyi index b2f2191329ac..acbb5a30b5eb 100644 --- a/stdlib/3.4/asyncio/transports.pyi +++ b/stdlib/3.4/asyncio/transports.pyi @@ -1,6 +1,6 @@ from typing import Dict, Any, TypeVar, Mapping, List -__all__ = ... # type: str +__all__ = ... # type: str class BaseTransport: def __init__(self, extra: Mapping[Any, Any] = ...) -> None: ... diff --git a/stdlib/3.4/xml/etree/ElementInclude.pyi b/stdlib/3.4/xml/etree/ElementInclude.pyi index a9e04f256c4a..bbe3fb3ed057 100644 --- a/stdlib/3.4/xml/etree/ElementInclude.pyi +++ b/stdlib/3.4/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from .ElementTree import Element -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/3.4/xml/etree/ElementPath.pyi b/stdlib/3.4/xml/etree/ElementPath.pyi index e17e5bb3a9b4..b1ea50e68cf0 100644 --- a/stdlib/3.4/xml/etree/ElementPath.pyi +++ b/stdlib/3.4/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional from .ElementTree import Element -xpath_tokenizer_re = ... # type: Pattern +xpath_tokenizer_re = ... # type: Pattern _token = Tuple[str, str] _next = Callable[[], _token] @@ -20,11 +20,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ... def prepare_parent(next: _next, token: _token) -> _callback: ... def prepare_predicate(next: _next, token: _token) -> _callback: ... -ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] +ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] class _SelectorContext: - parent_map = ... # type: Dict[Element, Element] - root = ... # type: Element + parent_map = ... # type: Dict[Element, Element] + root = ... # type: Element def __init__(self, root: Element) -> None: ... _T = TypeVar('_T') diff --git a/stdlib/3.4/xml/etree/ElementTree.pyi b/stdlib/3.4/xml/etree/ElementTree.pyi index 74e80844b5eb..0592be78ed24 100644 --- a/stdlib/3.4/xml/etree/ElementTree.pyi +++ b/stdlib/3.4/xml/etree/ElementTree.pyi @@ -5,7 +5,7 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str class ParseError(SyntaxError): ... @@ -16,10 +16,10 @@ _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] class Element(Sequence['Element']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ... def append(self, subelement: 'Element') -> None: ... def clear(self) -> None: ... @@ -50,10 +50,10 @@ def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., * def Comment(text: _str_or_bytes=...) -> Element: ... def ProcessingInstruction(target: str, text: str=...) -> Element: ... -PI = ... # type: Callable[..., Element] +PI = ... # type: Callable[..., Element] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -86,7 +86,7 @@ class XMLPullParser: def read_events(self) -> Iterator[Tuple[str, Element]]: ... class _IterParseIterator: - root = ... # type: Any + root = ... # type: Any def __init__(self, source: _file_or_filename, events: Sequence[str], parser: 'XMLParser', close_source: bool=...) -> None: ... def __next__(self) -> Tuple[str, Element]: ... def __iter__(self) -> _IterParseIterator: ... @@ -95,7 +95,7 @@ def XML(text: AnyStr, parser: 'XMLParser'=...) -> Element: ... def XMLID(text: AnyStr, parser: 'XMLParser'=...) -> Tuple[Element, Dict[str, Element]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., Element] +fromstring = ... # type: Callable[..., Element] def fromstringlist(sequence: Sequence[AnyStr], parser: 'XMLParser'=...) -> Element: ... @@ -107,11 +107,11 @@ class TreeBuilder: def end(self, tag: AnyStr) -> Element: ... class XMLParser: - parser = ... # type: Any - target = ... # type: TreeBuilder + parser = ... # type: Any + target = ... # type: TreeBuilder # TODO-what is entity used for??? - entity = ... # type: Any - version = ... # type: str + entity = ... # type: Any + version = ... # type: str def __init__(self, html: int=..., target: TreeBuilder=..., encoding: str=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/3.5/xml/etree/ElementInclude.pyi b/stdlib/3.5/xml/etree/ElementInclude.pyi index a9e04f256c4a..bbe3fb3ed057 100644 --- a/stdlib/3.5/xml/etree/ElementInclude.pyi +++ b/stdlib/3.5/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from .ElementTree import Element -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/3.5/xml/etree/ElementPath.pyi b/stdlib/3.5/xml/etree/ElementPath.pyi index e17e5bb3a9b4..b1ea50e68cf0 100644 --- a/stdlib/3.5/xml/etree/ElementPath.pyi +++ b/stdlib/3.5/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional from .ElementTree import Element -xpath_tokenizer_re = ... # type: Pattern +xpath_tokenizer_re = ... # type: Pattern _token = Tuple[str, str] _next = Callable[[], _token] @@ -20,11 +20,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ... def prepare_parent(next: _next, token: _token) -> _callback: ... def prepare_predicate(next: _next, token: _token) -> _callback: ... -ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] +ops = ... # type: Dict[str, Callable[[_next, _token], _callback]] class _SelectorContext: - parent_map = ... # type: Dict[Element, Element] - root = ... # type: Element + parent_map = ... # type: Dict[Element, Element] + root = ... # type: Element def __init__(self, root: Element) -> None: ... _T = TypeVar('_T') diff --git a/stdlib/3.5/xml/etree/ElementTree.pyi b/stdlib/3.5/xml/etree/ElementTree.pyi index 74e80844b5eb..0592be78ed24 100644 --- a/stdlib/3.5/xml/etree/ElementTree.pyi +++ b/stdlib/3.5/xml/etree/ElementTree.pyi @@ -5,7 +5,7 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str class ParseError(SyntaxError): ... @@ -16,10 +16,10 @@ _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] class Element(Sequence['Element']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., 'Element']], attrib: Dict[AnyStr, AnyStr]=..., **extra: AnyStr) -> None: ... def append(self, subelement: 'Element') -> None: ... def clear(self) -> None: ... @@ -50,10 +50,10 @@ def SubElement(parent: Element, tag: AnyStr, attrib: Dict[AnyStr, AnyStr]=..., * def Comment(text: _str_or_bytes=...) -> Element: ... def ProcessingInstruction(target: str, text: str=...) -> Element: ... -PI = ... # type: Callable[..., Element] +PI = ... # type: Callable[..., Element] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -86,7 +86,7 @@ class XMLPullParser: def read_events(self) -> Iterator[Tuple[str, Element]]: ... class _IterParseIterator: - root = ... # type: Any + root = ... # type: Any def __init__(self, source: _file_or_filename, events: Sequence[str], parser: 'XMLParser', close_source: bool=...) -> None: ... def __next__(self) -> Tuple[str, Element]: ... def __iter__(self) -> _IterParseIterator: ... @@ -95,7 +95,7 @@ def XML(text: AnyStr, parser: 'XMLParser'=...) -> Element: ... def XMLID(text: AnyStr, parser: 'XMLParser'=...) -> Tuple[Element, Dict[str, Element]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., Element] +fromstring = ... # type: Callable[..., Element] def fromstringlist(sequence: Sequence[AnyStr], parser: 'XMLParser'=...) -> Element: ... @@ -107,11 +107,11 @@ class TreeBuilder: def end(self, tag: AnyStr) -> Element: ... class XMLParser: - parser = ... # type: Any - target = ... # type: TreeBuilder + parser = ... # type: Any + target = ... # type: TreeBuilder # TODO-what is entity used for??? - entity = ... # type: Any - version = ... # type: str + entity = ... # type: Any + version = ... # type: str def __init__(self, html: int=..., target: TreeBuilder=..., encoding: str=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/3/_ast.pyi b/stdlib/3/_ast.pyi index 0c391563687a..67361810e157 100644 --- a/stdlib/3/_ast.pyi +++ b/stdlib/3/_ast.pyi @@ -2,13 +2,13 @@ import typing from typing import Any, Optional, Union -PyCF_ONLY_AST = ... # type: int +PyCF_ONLY_AST = ... # type: int identifier = str class AST: - _attributes = ... # type: typing.Tuple[str, ...] - _fields = ... # type: typing.Tuple[str, ...] + _attributes = ... # type: typing.Tuple[str, ...] + _fields = ... # type: typing.Tuple[str, ...] def __init__(self, *args: Any, **kwargs: Any) -> None: ... class mod(AST): diff --git a/stdlib/3/_compression.pyi b/stdlib/3/_compression.pyi index 16893b9147f5..527d7952c403 100644 --- a/stdlib/3/_compression.pyi +++ b/stdlib/3/_compression.pyi @@ -5,7 +5,7 @@ from typing import Any import io -BUFFER_SIZE = ... # type: Any +BUFFER_SIZE = ... # type: Any class BaseStream(io.BufferedIOBase): ... diff --git a/stdlib/3/_curses.pyi b/stdlib/3/_curses.pyi index 11f3a7c290d9..8f1ffff216f7 100644 --- a/stdlib/3/_curses.pyi +++ b/stdlib/3/_curses.pyi @@ -4,218 +4,218 @@ from typing import Any -ALL_MOUSE_EVENTS = ... # type: int -A_ALTCHARSET = ... # type: int -A_ATTRIBUTES = ... # type: int -A_BLINK = ... # type: int -A_BOLD = ... # type: int -A_CHARTEXT = ... # type: int -A_COLOR = ... # type: int -A_DIM = ... # type: int -A_HORIZONTAL = ... # type: int -A_INVIS = ... # type: int -A_LEFT = ... # type: int -A_LOW = ... # type: int -A_NORMAL = ... # type: int -A_PROTECT = ... # type: int -A_REVERSE = ... # type: int -A_RIGHT = ... # type: int -A_STANDOUT = ... # type: int -A_TOP = ... # type: int -A_UNDERLINE = ... # type: int -A_VERTICAL = ... # type: int -BUTTON1_CLICKED = ... # type: int -BUTTON1_DOUBLE_CLICKED = ... # type: int -BUTTON1_PRESSED = ... # type: int -BUTTON1_RELEASED = ... # type: int -BUTTON1_TRIPLE_CLICKED = ... # type: int -BUTTON2_CLICKED = ... # type: int -BUTTON2_DOUBLE_CLICKED = ... # type: int -BUTTON2_PRESSED = ... # type: int -BUTTON2_RELEASED = ... # type: int -BUTTON2_TRIPLE_CLICKED = ... # type: int -BUTTON3_CLICKED = ... # type: int -BUTTON3_DOUBLE_CLICKED = ... # type: int -BUTTON3_PRESSED = ... # type: int -BUTTON3_RELEASED = ... # type: int -BUTTON3_TRIPLE_CLICKED = ... # type: int -BUTTON4_CLICKED = ... # type: int -BUTTON4_DOUBLE_CLICKED = ... # type: int -BUTTON4_PRESSED = ... # type: int -BUTTON4_RELEASED = ... # type: int -BUTTON4_TRIPLE_CLICKED = ... # type: int -BUTTON_ALT = ... # type: int -BUTTON_CTRL = ... # type: int -BUTTON_SHIFT = ... # type: int -COLOR_BLACK = ... # type: int -COLOR_BLUE = ... # type: int -COLOR_CYAN = ... # type: int -COLOR_GREEN = ... # type: int -COLOR_MAGENTA = ... # type: int -COLOR_RED = ... # type: int -COLOR_WHITE = ... # type: int -COLOR_YELLOW = ... # type: int -ERR = ... # type: int -KEY_A1 = ... # type: int -KEY_A3 = ... # type: int -KEY_B2 = ... # type: int -KEY_BACKSPACE = ... # type: int -KEY_BEG = ... # type: int -KEY_BREAK = ... # type: int -KEY_BTAB = ... # type: int -KEY_C1 = ... # type: int -KEY_C3 = ... # type: int -KEY_CANCEL = ... # type: int -KEY_CATAB = ... # type: int -KEY_CLEAR = ... # type: int -KEY_CLOSE = ... # type: int -KEY_COMMAND = ... # type: int -KEY_COPY = ... # type: int -KEY_CREATE = ... # type: int -KEY_CTAB = ... # type: int -KEY_DC = ... # type: int -KEY_DL = ... # type: int -KEY_DOWN = ... # type: int -KEY_EIC = ... # type: int -KEY_END = ... # type: int -KEY_ENTER = ... # type: int -KEY_EOL = ... # type: int -KEY_EOS = ... # type: int -KEY_EXIT = ... # type: int -KEY_F0 = ... # type: int -KEY_F1 = ... # type: int -KEY_F10 = ... # type: int -KEY_F11 = ... # type: int -KEY_F12 = ... # type: int -KEY_F13 = ... # type: int -KEY_F14 = ... # type: int -KEY_F15 = ... # type: int -KEY_F16 = ... # type: int -KEY_F17 = ... # type: int -KEY_F18 = ... # type: int -KEY_F19 = ... # type: int -KEY_F2 = ... # type: int -KEY_F20 = ... # type: int -KEY_F21 = ... # type: int -KEY_F22 = ... # type: int -KEY_F23 = ... # type: int -KEY_F24 = ... # type: int -KEY_F25 = ... # type: int -KEY_F26 = ... # type: int -KEY_F27 = ... # type: int -KEY_F28 = ... # type: int -KEY_F29 = ... # type: int -KEY_F3 = ... # type: int -KEY_F30 = ... # type: int -KEY_F31 = ... # type: int -KEY_F32 = ... # type: int -KEY_F33 = ... # type: int -KEY_F34 = ... # type: int -KEY_F35 = ... # type: int -KEY_F36 = ... # type: int -KEY_F37 = ... # type: int -KEY_F38 = ... # type: int -KEY_F39 = ... # type: int -KEY_F4 = ... # type: int -KEY_F40 = ... # type: int -KEY_F41 = ... # type: int -KEY_F42 = ... # type: int -KEY_F43 = ... # type: int -KEY_F44 = ... # type: int -KEY_F45 = ... # type: int -KEY_F46 = ... # type: int -KEY_F47 = ... # type: int -KEY_F48 = ... # type: int -KEY_F49 = ... # type: int -KEY_F5 = ... # type: int -KEY_F50 = ... # type: int -KEY_F51 = ... # type: int -KEY_F52 = ... # type: int -KEY_F53 = ... # type: int -KEY_F54 = ... # type: int -KEY_F55 = ... # type: int -KEY_F56 = ... # type: int -KEY_F57 = ... # type: int -KEY_F58 = ... # type: int -KEY_F59 = ... # type: int -KEY_F6 = ... # type: int -KEY_F60 = ... # type: int -KEY_F61 = ... # type: int -KEY_F62 = ... # type: int -KEY_F63 = ... # type: int -KEY_F7 = ... # type: int -KEY_F8 = ... # type: int -KEY_F9 = ... # type: int -KEY_FIND = ... # type: int -KEY_HELP = ... # type: int -KEY_HOME = ... # type: int -KEY_IC = ... # type: int -KEY_IL = ... # type: int -KEY_LEFT = ... # type: int -KEY_LL = ... # type: int -KEY_MARK = ... # type: int -KEY_MAX = ... # type: int -KEY_MESSAGE = ... # type: int -KEY_MIN = ... # type: int -KEY_MOUSE = ... # type: int -KEY_MOVE = ... # type: int -KEY_NEXT = ... # type: int -KEY_NPAGE = ... # type: int -KEY_OPEN = ... # type: int -KEY_OPTIONS = ... # type: int -KEY_PPAGE = ... # type: int -KEY_PREVIOUS = ... # type: int -KEY_PRINT = ... # type: int -KEY_REDO = ... # type: int -KEY_REFERENCE = ... # type: int -KEY_REFRESH = ... # type: int -KEY_REPLACE = ... # type: int -KEY_RESET = ... # type: int -KEY_RESIZE = ... # type: int -KEY_RESTART = ... # type: int -KEY_RESUME = ... # type: int -KEY_RIGHT = ... # type: int -KEY_SAVE = ... # type: int -KEY_SBEG = ... # type: int -KEY_SCANCEL = ... # type: int -KEY_SCOMMAND = ... # type: int -KEY_SCOPY = ... # type: int -KEY_SCREATE = ... # type: int -KEY_SDC = ... # type: int -KEY_SDL = ... # type: int -KEY_SELECT = ... # type: int -KEY_SEND = ... # type: int -KEY_SEOL = ... # type: int -KEY_SEXIT = ... # type: int -KEY_SF = ... # type: int -KEY_SFIND = ... # type: int -KEY_SHELP = ... # type: int -KEY_SHOME = ... # type: int -KEY_SIC = ... # type: int -KEY_SLEFT = ... # type: int -KEY_SMESSAGE = ... # type: int -KEY_SMOVE = ... # type: int -KEY_SNEXT = ... # type: int -KEY_SOPTIONS = ... # type: int -KEY_SPREVIOUS = ... # type: int -KEY_SPRINT = ... # type: int -KEY_SR = ... # type: int -KEY_SREDO = ... # type: int -KEY_SREPLACE = ... # type: int -KEY_SRESET = ... # type: int -KEY_SRIGHT = ... # type: int -KEY_SRSUME = ... # type: int -KEY_SSAVE = ... # type: int -KEY_SSUSPEND = ... # type: int -KEY_STAB = ... # type: int -KEY_SUNDO = ... # type: int -KEY_SUSPEND = ... # type: int -KEY_UNDO = ... # type: int -KEY_UP = ... # type: int -OK = ... # type: int -REPORT_MOUSE_POSITION = ... # type: int -_C_API = ... # type: Any -version = ... # type: bytes +ALL_MOUSE_EVENTS = ... # type: int +A_ALTCHARSET = ... # type: int +A_ATTRIBUTES = ... # type: int +A_BLINK = ... # type: int +A_BOLD = ... # type: int +A_CHARTEXT = ... # type: int +A_COLOR = ... # type: int +A_DIM = ... # type: int +A_HORIZONTAL = ... # type: int +A_INVIS = ... # type: int +A_LEFT = ... # type: int +A_LOW = ... # type: int +A_NORMAL = ... # type: int +A_PROTECT = ... # type: int +A_REVERSE = ... # type: int +A_RIGHT = ... # type: int +A_STANDOUT = ... # type: int +A_TOP = ... # type: int +A_UNDERLINE = ... # type: int +A_VERTICAL = ... # type: int +BUTTON1_CLICKED = ... # type: int +BUTTON1_DOUBLE_CLICKED = ... # type: int +BUTTON1_PRESSED = ... # type: int +BUTTON1_RELEASED = ... # type: int +BUTTON1_TRIPLE_CLICKED = ... # type: int +BUTTON2_CLICKED = ... # type: int +BUTTON2_DOUBLE_CLICKED = ... # type: int +BUTTON2_PRESSED = ... # type: int +BUTTON2_RELEASED = ... # type: int +BUTTON2_TRIPLE_CLICKED = ... # type: int +BUTTON3_CLICKED = ... # type: int +BUTTON3_DOUBLE_CLICKED = ... # type: int +BUTTON3_PRESSED = ... # type: int +BUTTON3_RELEASED = ... # type: int +BUTTON3_TRIPLE_CLICKED = ... # type: int +BUTTON4_CLICKED = ... # type: int +BUTTON4_DOUBLE_CLICKED = ... # type: int +BUTTON4_PRESSED = ... # type: int +BUTTON4_RELEASED = ... # type: int +BUTTON4_TRIPLE_CLICKED = ... # type: int +BUTTON_ALT = ... # type: int +BUTTON_CTRL = ... # type: int +BUTTON_SHIFT = ... # type: int +COLOR_BLACK = ... # type: int +COLOR_BLUE = ... # type: int +COLOR_CYAN = ... # type: int +COLOR_GREEN = ... # type: int +COLOR_MAGENTA = ... # type: int +COLOR_RED = ... # type: int +COLOR_WHITE = ... # type: int +COLOR_YELLOW = ... # type: int +ERR = ... # type: int +KEY_A1 = ... # type: int +KEY_A3 = ... # type: int +KEY_B2 = ... # type: int +KEY_BACKSPACE = ... # type: int +KEY_BEG = ... # type: int +KEY_BREAK = ... # type: int +KEY_BTAB = ... # type: int +KEY_C1 = ... # type: int +KEY_C3 = ... # type: int +KEY_CANCEL = ... # type: int +KEY_CATAB = ... # type: int +KEY_CLEAR = ... # type: int +KEY_CLOSE = ... # type: int +KEY_COMMAND = ... # type: int +KEY_COPY = ... # type: int +KEY_CREATE = ... # type: int +KEY_CTAB = ... # type: int +KEY_DC = ... # type: int +KEY_DL = ... # type: int +KEY_DOWN = ... # type: int +KEY_EIC = ... # type: int +KEY_END = ... # type: int +KEY_ENTER = ... # type: int +KEY_EOL = ... # type: int +KEY_EOS = ... # type: int +KEY_EXIT = ... # type: int +KEY_F0 = ... # type: int +KEY_F1 = ... # type: int +KEY_F10 = ... # type: int +KEY_F11 = ... # type: int +KEY_F12 = ... # type: int +KEY_F13 = ... # type: int +KEY_F14 = ... # type: int +KEY_F15 = ... # type: int +KEY_F16 = ... # type: int +KEY_F17 = ... # type: int +KEY_F18 = ... # type: int +KEY_F19 = ... # type: int +KEY_F2 = ... # type: int +KEY_F20 = ... # type: int +KEY_F21 = ... # type: int +KEY_F22 = ... # type: int +KEY_F23 = ... # type: int +KEY_F24 = ... # type: int +KEY_F25 = ... # type: int +KEY_F26 = ... # type: int +KEY_F27 = ... # type: int +KEY_F28 = ... # type: int +KEY_F29 = ... # type: int +KEY_F3 = ... # type: int +KEY_F30 = ... # type: int +KEY_F31 = ... # type: int +KEY_F32 = ... # type: int +KEY_F33 = ... # type: int +KEY_F34 = ... # type: int +KEY_F35 = ... # type: int +KEY_F36 = ... # type: int +KEY_F37 = ... # type: int +KEY_F38 = ... # type: int +KEY_F39 = ... # type: int +KEY_F4 = ... # type: int +KEY_F40 = ... # type: int +KEY_F41 = ... # type: int +KEY_F42 = ... # type: int +KEY_F43 = ... # type: int +KEY_F44 = ... # type: int +KEY_F45 = ... # type: int +KEY_F46 = ... # type: int +KEY_F47 = ... # type: int +KEY_F48 = ... # type: int +KEY_F49 = ... # type: int +KEY_F5 = ... # type: int +KEY_F50 = ... # type: int +KEY_F51 = ... # type: int +KEY_F52 = ... # type: int +KEY_F53 = ... # type: int +KEY_F54 = ... # type: int +KEY_F55 = ... # type: int +KEY_F56 = ... # type: int +KEY_F57 = ... # type: int +KEY_F58 = ... # type: int +KEY_F59 = ... # type: int +KEY_F6 = ... # type: int +KEY_F60 = ... # type: int +KEY_F61 = ... # type: int +KEY_F62 = ... # type: int +KEY_F63 = ... # type: int +KEY_F7 = ... # type: int +KEY_F8 = ... # type: int +KEY_F9 = ... # type: int +KEY_FIND = ... # type: int +KEY_HELP = ... # type: int +KEY_HOME = ... # type: int +KEY_IC = ... # type: int +KEY_IL = ... # type: int +KEY_LEFT = ... # type: int +KEY_LL = ... # type: int +KEY_MARK = ... # type: int +KEY_MAX = ... # type: int +KEY_MESSAGE = ... # type: int +KEY_MIN = ... # type: int +KEY_MOUSE = ... # type: int +KEY_MOVE = ... # type: int +KEY_NEXT = ... # type: int +KEY_NPAGE = ... # type: int +KEY_OPEN = ... # type: int +KEY_OPTIONS = ... # type: int +KEY_PPAGE = ... # type: int +KEY_PREVIOUS = ... # type: int +KEY_PRINT = ... # type: int +KEY_REDO = ... # type: int +KEY_REFERENCE = ... # type: int +KEY_REFRESH = ... # type: int +KEY_REPLACE = ... # type: int +KEY_RESET = ... # type: int +KEY_RESIZE = ... # type: int +KEY_RESTART = ... # type: int +KEY_RESUME = ... # type: int +KEY_RIGHT = ... # type: int +KEY_SAVE = ... # type: int +KEY_SBEG = ... # type: int +KEY_SCANCEL = ... # type: int +KEY_SCOMMAND = ... # type: int +KEY_SCOPY = ... # type: int +KEY_SCREATE = ... # type: int +KEY_SDC = ... # type: int +KEY_SDL = ... # type: int +KEY_SELECT = ... # type: int +KEY_SEND = ... # type: int +KEY_SEOL = ... # type: int +KEY_SEXIT = ... # type: int +KEY_SF = ... # type: int +KEY_SFIND = ... # type: int +KEY_SHELP = ... # type: int +KEY_SHOME = ... # type: int +KEY_SIC = ... # type: int +KEY_SLEFT = ... # type: int +KEY_SMESSAGE = ... # type: int +KEY_SMOVE = ... # type: int +KEY_SNEXT = ... # type: int +KEY_SOPTIONS = ... # type: int +KEY_SPREVIOUS = ... # type: int +KEY_SPRINT = ... # type: int +KEY_SR = ... # type: int +KEY_SREDO = ... # type: int +KEY_SREPLACE = ... # type: int +KEY_SRESET = ... # type: int +KEY_SRIGHT = ... # type: int +KEY_SRSUME = ... # type: int +KEY_SSAVE = ... # type: int +KEY_SSUSPEND = ... # type: int +KEY_STAB = ... # type: int +KEY_SUNDO = ... # type: int +KEY_SUSPEND = ... # type: int +KEY_UNDO = ... # type: int +KEY_UP = ... # type: int +OK = ... # type: int +REPORT_MOUSE_POSITION = ... # type: int +_C_API = ... # type: Any +version = ... # type: bytes def baudrate(*args, **kwargs): ... def beep(*args, **kwargs): ... diff --git a/stdlib/3/_importlib_modulespec.pyi b/stdlib/3/_importlib_modulespec.pyi index d0b4e26a2422..1acd9f124619 100644 --- a/stdlib/3/_importlib_modulespec.pyi +++ b/stdlib/3/_importlib_modulespec.pyi @@ -14,22 +14,22 @@ if sys.version_info >= (3, 4): def __init__(self, name: str, loader: Optional['Loader'], *, origin: str = None, loader_state: Any = None, is_package: bool = None) -> None: ... - name = ... # type: str - loader = ... # type: Optional[Loader] - origin = ... # type: Optional[str] - submodule_search_locations = ... # type: Optional[List[str]] - loader_state = ... # type: Any - cached = ... # type: Optional[str] - parent = ... # type: Optional[str] - has_location = ... # type: bool + name = ... # type: str + loader = ... # type: Optional[Loader] + origin = ... # type: Optional[str] + submodule_search_locations = ... # type: Optional[List[str]] + loader_state = ... # type: Any + cached = ... # type: Optional[str] + parent = ... # type: Optional[str] + has_location = ... # type: bool class ModuleType: - __name__ = ... # type: str + __name__ = ... # type: str __file__ = ... # type: str if sys.version_info >= (3, 4): - __loader__ = ... # type: Optional[Loader] - __package__ = ... # type: Optional[str] - __spec__ = ... # type: Optional[ModuleSpec] + __loader__ = ... # type: Optional[Loader] + __package__ = ... # type: Optional[str] + __spec__ = ... # type: Optional[ModuleSpec] def __init__(self, name: str, doc: str) -> None: ... class Loader(metaclass=ABCMeta): diff --git a/stdlib/3/ast.pyi b/stdlib/3/ast.pyi index 966cc391d7f1..f9488c90814d 100644 --- a/stdlib/3/ast.pyi +++ b/stdlib/3/ast.pyi @@ -36,4 +36,4 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ... def literal_eval(node_or_string: Union[str, AST]) -> Any: ... def walk(node: AST) -> Iterator[AST]: ... -PyCF_ONLY_AST = ... # type: int +PyCF_ONLY_AST = ... # type: int diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index ca83395a8c87..335dd44e9bd3 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -426,13 +426,13 @@ class bytearray(MutableSequence[int], ByteString): class memoryview(Sized, Container[bytes]): - format = ... # type: str - itemsize = ... # type: int - shape = ... # type: Optional[Tuple[int, ...]] - strides = ... # type: Optional[Tuple[int, ...]] - suboffsets = ... # type: Optional[Tuple[int, ...]] - readonly = ... # type: bool - ndim = ... # type: int + format = ... # type: str + itemsize = ... # type: int + shape = ... # type: Optional[Tuple[int, ...]] + strides = ... # type: Optional[Tuple[int, ...]] + suboffsets = ... # type: Optional[Tuple[int, ...]] + readonly = ... # type: bool + ndim = ... # type: int def __init__(self, obj: Union[str, bytes, bytearray, memoryview]) -> None: ... @@ -495,7 +495,7 @@ class function: __name__ = ... # type: str __qualname__ = ... # type: str __module__ = ... # type: str - __code__ = ... # type: Any + __code__ = ... # type: Any class list(MutableSequence[_T], Generic[_T]): @overload @@ -786,7 +786,7 @@ def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], @overload def zip(iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], iter4: Iterable[_T4]) -> Iterator[Tuple[_T1, _T2, - _T3, _T4]]: ... # TODO more than four iterables + _T3, _T4]]: ... # TODO more than four iterables def __import__(name: str, globals: Dict[str, Any] = {}, locals: Dict[str, Any] = {}, fromlist: List[str] = [], level: int = -1) -> Any: ... @@ -801,9 +801,9 @@ Ellipsis = ... # type: ellipsis class BaseException: args = ... # type: Tuple[Any, ...] - __cause__ = ... # type: BaseException - __context__ = ... # type: BaseException - __traceback__ = ... # type: TracebackType + __cause__ = ... # type: BaseException + __context__ = ... # type: BaseException + __traceback__ = ... # type: TracebackType def __init__(self, *args: Any) -> None: ... def with_traceback(self, tb: Any) -> BaseException: ... @@ -872,19 +872,19 @@ class TypeError(Exception): ... class UnboundLocalError(NameError): ... class UnicodeError(ValueError): ... class UnicodeDecodeError(UnicodeError): - encoding = ... # type: str - object = ... # type: bytes - start = ... # type: int - end = ... # type: int - reason = ... # type: str + encoding = ... # type: str + object = ... # type: bytes + start = ... # type: int + end = ... # type: int + reason = ... # type: str def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ... class UnicodeEncodeError(UnicodeError): - encoding = ... # type: str - object = ... # type: str - start = ... # type: int - end = ... # type: int - reason = ... # type: str + encoding = ... # type: str + object = ... # type: str + start = ... # type: int + end = ... # type: int + reason = ... # type: str def __init__(self, __encoding: str, __object: str, __start: int, __end: int, __reason: str) -> None: ... class UnicodeTranslateError(UnicodeError): ... diff --git a/stdlib/3/codecs.pyi b/stdlib/3/codecs.pyi index 3f1a54696fbe..a7253cda4c7f 100644 --- a/stdlib/3/codecs.pyi +++ b/stdlib/3/codecs.pyi @@ -24,12 +24,12 @@ _encoded = bytes # TODO: It is not possible to specify these signatures correctly, because # they have an optional positional or keyword argument for errors=. -_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode -_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode -_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__ -_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__ -_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__ -_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__ +_encode_type = Callable[[_decoded], _encoded] # signature of Codec().encode +_decode_type = Callable[[_encoded], _decoded] # signature of Codec().decode +_stream_reader_type = Callable[[BinaryIO], 'StreamReader'] # signature of StreamReader __init__ +_stream_writer_type = Callable[[BinaryIO], 'StreamWriter'] # signature of StreamWriter __init__ +_incremental_encoder_type = Callable[[], 'IncrementalEncoder'] # signature of IncrementalEncoder __init__ +_incremental_decode_type = Callable[[], 'IncrementalDecoder'] # signature of IncrementalDecoder __init__ def encode(obj: _decoded, encoding: str = ..., errors: str = ...) -> _encoded: diff --git a/stdlib/3/collections/__init__.pyi b/stdlib/3/collections/__init__.pyi index f9bd4023a072..b8a29797e1f6 100644 --- a/stdlib/3/collections/__init__.pyi +++ b/stdlib/3/collections/__init__.pyi @@ -38,7 +38,7 @@ class MutableString(UserString, MutableSequence): ... # Technically, deque only derives from MutableSequence in 3.5. # But in practice it's not worth losing sleep over. class deque(MutableSequence[_T], Generic[_T]): - maxlen = ... # type: Optional[int] # TODO readonly + maxlen = ... # type: Optional[int] # TODO readonly def __init__(self, iterable: Iterable[_T] = ..., maxlen: int = ...) -> None: ... def append(self, x: _T) -> None: ... diff --git a/stdlib/3/concurrent/futures/_base.pyi b/stdlib/3/concurrent/futures/_base.pyi index 461c56a94e50..27c2711feb98 100644 --- a/stdlib/3/concurrent/futures/_base.pyi +++ b/stdlib/3/concurrent/futures/_base.pyi @@ -1,15 +1,15 @@ from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, Optional, Set from collections import namedtuple -FIRST_COMPLETED = ... # type: Any -FIRST_EXCEPTION = ... # type: Any -ALL_COMPLETED = ... # type: Any -PENDING = ... # type: Any -RUNNING = ... # type: Any -CANCELLED = ... # type: Any -CANCELLED_AND_NOTIFIED = ... # type: Any -FINISHED = ... # type: Any -LOGGER = ... # type: Any +FIRST_COMPLETED = ... # type: Any +FIRST_EXCEPTION = ... # type: Any +ALL_COMPLETED = ... # type: Any +PENDING = ... # type: Any +RUNNING = ... # type: Any +CANCELLED = ... # type: Any +CANCELLED_AND_NOTIFIED = ... # type: Any +FINISHED = ... # type: Any +LOGGER = ... # type: Any class Error(Exception): ... class CancelledError(Error): ... diff --git a/stdlib/3/concurrent/futures/process.pyi b/stdlib/3/concurrent/futures/process.pyi index 1e40a51463fb..b157d2b3388e 100644 --- a/stdlib/3/concurrent/futures/process.pyi +++ b/stdlib/3/concurrent/futures/process.pyi @@ -1,7 +1,7 @@ from typing import Any, Callable, TypeVar, Iterable, Optional from ._base import Future, Executor -EXTRA_QUEUED_CALLS = ... # type: Any +EXTRA_QUEUED_CALLS = ... # type: Any class BrokenProcessPool(RuntimeError): ... diff --git a/stdlib/3/datetime.pyi b/stdlib/3/datetime.pyi index c204bedcafd7..7925226f41b7 100644 --- a/stdlib/3/datetime.pyi +++ b/stdlib/3/datetime.pyi @@ -51,7 +51,7 @@ class date: def strftime(self, fmt: str) -> str: ... def __format__(self, fmt: str) -> str: ... def isoformat(self) -> str: ... - def timetuple(self) -> tuple: ... # TODO return type + def timetuple(self) -> tuple: ... # TODO return type def toordinal(self) -> int: ... def replace(self, year: int = ..., month: int = ..., day: int = ...) -> date: ... def __le__(self, other: date) -> bool: ... @@ -191,9 +191,9 @@ class datetime: def strftime(self, fmt: str) -> str: ... def __format__(self, fmt: str) -> str: ... def toordinal(self) -> int: ... - def timetuple(self) -> TimeTuple: ... # TODO return type + def timetuple(self) -> TimeTuple: ... # TODO return type def timestamp(self) -> float: ... - def utctimetuple(self) -> TimeTuple: ... # TODO return type + def utctimetuple(self) -> TimeTuple: ... # TODO return type def date(self) -> _date: ... def time(self) -> _time: ... def timetz(self) -> _time: ... diff --git a/stdlib/3/decimal.pyi b/stdlib/3/decimal.pyi index a7d88afe9881..5106e465d65e 100644 --- a/stdlib/3/decimal.pyi +++ b/stdlib/3/decimal.pyi @@ -31,7 +31,7 @@ def setcontext(c: Context) -> None: ... DecimalTuple = NamedTuple('DecimalTuple', [('sign', int), - ('digits', Sequence[int]), # TODO: Use Tuple[int, ...] + ('digits', Sequence[int]), # TODO: Use Tuple[int, ...] ('exponent', int)]) class _ContextManager: diff --git a/stdlib/3/functools.pyi b/stdlib/3/functools.pyi index 29866a18c65f..e000ba2ee106 100644 --- a/stdlib/3/functools.pyi +++ b/stdlib/3/functools.pyi @@ -24,7 +24,7 @@ class CacheInfo(NamedTuple('CacheInfo', [ pass class _lru_cache_wrapper(Generic[_T]): - __wrapped__ = ... # type: Callable[..., _T] + __wrapped__ = ... # type: Callable[..., _T] def __call__(self, *args: Any, **kwargs: Any) -> _T: ... def cache_info(self) -> CacheInfo: ... @@ -34,8 +34,8 @@ class lru_cache(): def __call__(self, f: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ... -WRAPPER_ASSIGNMENTS = ... # type: Sequence[str] -WRAPPER_UPDATES = ... # type: Sequence[str] +WRAPPER_ASSIGNMENTS = ... # type: Sequence[str] +WRAPPER_UPDATES = ... # type: Sequence[str] def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> None: ... diff --git a/stdlib/3/gc.pyi b/stdlib/3/gc.pyi index 4d00dbe0f3e2..e9bb4ebdfad6 100644 --- a/stdlib/3/gc.pyi +++ b/stdlib/3/gc.pyi @@ -3,13 +3,13 @@ from typing import Any, List, Tuple -DEBUG_COLLECTABLE = ... # type: int -DEBUG_LEAK = ... # type: int -DEBUG_SAVEALL = ... # type: int -DEBUG_STATS = ... # type: int -DEBUG_UNCOLLECTABLE = ... # type: int -callbacks = ... # type: List[Any] -garbage = ... # type: List[Any] +DEBUG_COLLECTABLE = ... # type: int +DEBUG_LEAK = ... # type: int +DEBUG_SAVEALL = ... # type: int +DEBUG_STATS = ... # type: int +DEBUG_UNCOLLECTABLE = ... # type: int +callbacks = ... # type: List[Any] +garbage = ... # type: List[Any] def collect(generations: int = ...) -> int: ... def disable() -> None: ... diff --git a/stdlib/3/gzip.pyi b/stdlib/3/gzip.pyi index 9d771fc63520..44d806424c86 100644 --- a/stdlib/3/gzip.pyi +++ b/stdlib/3/gzip.pyi @@ -8,7 +8,7 @@ import _compression def open(filename, mode='', compresslevel=9, encoding=None, errors=None, newline=None): ... class _PaddedFile: - file = ... # type: Any + file = ... # type: Any def __init__(self, f, prepend=b''): ... def read(self, size): ... def prepend(self, prepend=b''): ... @@ -16,17 +16,17 @@ class _PaddedFile: def seekable(self): ... class GzipFile(_compression.BaseStream): - myfileobj = ... # type: Any - mode = ... # type: Any - name = ... # type: Any - compress = ... # type: Any - fileobj = ... # type: Any + myfileobj = ... # type: Any + mode = ... # type: Any + name = ... # type: Any + compress = ... # type: Any + fileobj = ... # type: Any def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None): ... @property def filename(self): ... @property def mtime(self): ... - crc = ... # type: Any + crc = ... # type: Any def write(self, data): ... def read(self, size=-1): ... def read1(self, size=-1): ... diff --git a/stdlib/3/html/entities.pyi b/stdlib/3/html/entities.pyi index 7cc90b4503ab..b3fa66bc9421 100644 --- a/stdlib/3/html/entities.pyi +++ b/stdlib/3/html/entities.pyi @@ -4,7 +4,7 @@ from typing import Any -name2codepoint = ... # type: Any -html5 = ... # type: Any -codepoint2name = ... # type: Any -entitydefs = ... # type: Any +name2codepoint = ... # type: Any +html5 = ... # type: Any +codepoint2name = ... # type: Any +entitydefs = ... # type: Any diff --git a/stdlib/3/imp.pyi b/stdlib/3/imp.pyi index 678b0c19e8eb..3abe628cdb03 100644 --- a/stdlib/3/imp.pyi +++ b/stdlib/3/imp.pyi @@ -7,4 +7,4 @@ from typing import TypeVar _T = TypeVar('_T') def cache_from_source(path: str, debug_override: bool = ...) -> str: ... -def reload(module: _T) -> _T: ... # TODO imprecise signature +def reload(module: _T) -> _T: ... # TODO imprecise signature diff --git a/stdlib/3/importlib/abc.pyi b/stdlib/3/importlib/abc.pyi index 33184174966d..4c49aeb1a9f9 100644 --- a/stdlib/3/importlib/abc.pyi +++ b/stdlib/3/importlib/abc.pyi @@ -78,8 +78,8 @@ if sys.version_info >= (3, 3): ... class FileLoader(ResourceLoader, ExecutionLoader): - name = ... # type: str - path = ... # type: _Path + name = ... # type: str + path = ... # type: _Path def __init__(self, fullname: str, path: _Path) -> None: ... def get_data(self, path: _Path) -> bytes: ... def get_filename(self, fullname: str) -> _Path: ... diff --git a/stdlib/3/importlib/machinery.pyi b/stdlib/3/importlib/machinery.pyi index 2305e36f53f2..d4012394862f 100644 --- a/stdlib/3/importlib/machinery.pyi +++ b/stdlib/3/importlib/machinery.pyi @@ -148,16 +148,16 @@ else: class PathFinder: ... if sys.version_info >= (3, 3): - SOURCE_SUFFIXES = ... # type: List[str] - DEBUG_BYTECODE_SUFFIXES = ... # type: List[str] - OPTIMIZED_BYTECODE_SUFFIXES = ... # type: List[str] - BYTECODE_SUFFIXES = ... # type: List[str] - EXTENSION_SUFFIXES = ... # type: List[str] + SOURCE_SUFFIXES = ... # type: List[str] + DEBUG_BYTECODE_SUFFIXES = ... # type: List[str] + OPTIMIZED_BYTECODE_SUFFIXES = ... # type: List[str] + BYTECODE_SUFFIXES = ... # type: List[str] + EXTENSION_SUFFIXES = ... # type: List[str] def all_suffixes() -> List[str]: ... class FileFinder(importlib.abc.PathEntryFinder): - path = ... # type: str + path = ... # type: str def __init__(self, path: str, *loader_details: Tuple[importlib.abc.Loader, List[str]] ) -> None: ... diff --git a/stdlib/3/importlib/util.pyi b/stdlib/3/importlib/util.pyi index 6928035b039f..36cff4b8716d 100644 --- a/stdlib/3/importlib/util.pyi +++ b/stdlib/3/importlib/util.pyi @@ -15,7 +15,7 @@ if sys.version_info >= (3, 3): def resolve_name(name: str, package: str) -> str: ... if sys.version_info >= (3, 4): - MAGIC_NUMBER = ... # type: bytes + MAGIC_NUMBER = ... # type: bytes def cache_from_source(path: str, debug_override: bool = None, *, optimization: Any = None) -> str: ... diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index b9c9833d7517..746ad94eabb1 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -246,7 +246,7 @@ class TextIOWrapper(TextIO): class StringIO(TextIOWrapper): def __init__(self, initial_value: str = ..., newline: Optional[str] = ...) -> None: ... - name = ... # type: str + name = ... # type: str def getvalue(self) -> str: ... class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ... diff --git a/stdlib/3/itertools.pyi b/stdlib/3/itertools.pyi index 54324700b1c5..8296d62827e3 100644 --- a/stdlib/3/itertools.pyi +++ b/stdlib/3/itertools.pyi @@ -9,7 +9,7 @@ _T = TypeVar('_T') _S = TypeVar('_S') def count(start: int = ..., - step: int = ...) -> Iterator[int]: ... # more general types? + step: int = ...) -> Iterator[int]: ... # more general types? def cycle(iterable: Iterable[_T]) -> Iterator[_T]: ... @overload diff --git a/stdlib/3/json.pyi b/stdlib/3/json.pyi index 63592c338f46..368cae4746c9 100644 --- a/stdlib/3/json.pyi +++ b/stdlib/3/json.pyi @@ -32,7 +32,7 @@ def dump(obj: Any, **kwds: Any) -> None: ... def loads(s: str, - encoding: Any = ..., # ignored and deprecated + encoding: Any = ..., # ignored and deprecated cls: Any = ..., object_hook: Optional[Callable[[Dict], Any]] = ..., parse_float: Optional[Callable[[str], Any]] = ..., diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 4e8ee9e172e4..e65588a2cf11 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -30,16 +30,16 @@ O_DSYNC = 0 # Unix only O_RSYNC = 0 # Unix only O_SYNC = 0 # Unix only O_NDELAY = 0 # Unix only -O_NONBLOCK = 0 # Unix only +O_NONBLOCK = 0 # Unix only O_NOCTTY = 0 # Unix only O_SHLOCK = 0 # Unix only O_EXLOCK = 0 # Unix only O_BINARY = 0 # Windows only O_NOINHERIT = 0 # Windows only -O_SHORT_LIVED = 0# Windows only +O_SHORT_LIVED = 0 # Windows only O_TEMPORARY = 0 # Windows only O_RANDOM = 0 # Windows only -O_SEQUENTIAL = 0 # Windows only +O_SEQUENTIAL = 0 # Windows only O_TEXT = 0 # Windows only O_ASYNC = 0 # Gnu extension if in C library O_DIRECT = 0 # Gnu extension if in C library @@ -56,7 +56,7 @@ pathsep = ... # type: str defpath = ... # type: str linesep = ... # type: str devnull = ... # type: str -name = ... # type: str +name = ... # type: str F_OK = 0 R_OK = 0 @@ -70,7 +70,7 @@ environ = ... # type: _Environ[str] environb = ... # type: _Environ[bytes] confstr_names = ... # type: Dict[str, int] # Unix only -pathconf_names = ... # type: Dict[str, int] # Unix only +pathconf_names = ... # type: Dict[str, int] # Unix only sysconf_names = ... # type: Dict[str, int] # Unix only EX_OK = 0 # Unix only @@ -83,7 +83,7 @@ EX_UNAVAILABLE = 0 # Unix only EX_SOFTWARE = 0 # Unix only EX_OSERR = 0 # Unix only EX_OSFILE = 0 # Unix only -EX_CANTCREAT = 0 # Unix only +EX_CANTCREAT = 0 # Unix only EX_IOERR = 0 # Unix only EX_TEMPFAIL = 0 # Unix only EX_PROTOCOL = 0 # Unix only @@ -131,22 +131,22 @@ class stat_result: # st_ino, st_dev, st_nlink, st_uid, st_gid, st_size, st_atime, st_mtime, # st_ctime. More items may be added at the end by some implementations. - st_mode = 0 # protection bits, - st_ino = 0 # inode number, - st_dev = 0 # device, - st_nlink = 0 # number of hard links, - st_uid = 0 # user id of owner, - st_gid = 0 # group id of owner, - st_size = 0 # size of file, in bytes, - st_atime = 0.0 # time of most recent access, - st_mtime = 0.0 # time of most recent content modification, - st_ctime = 0.0 # platform dependent (time of most recent metadata change + st_mode = 0 # protection bits, + st_ino = 0 # inode number, + st_dev = 0 # device, + st_nlink = 0 # number of hard links, + st_uid = 0 # user id of owner, + st_gid = 0 # group id of owner, + st_size = 0 # size of file, in bytes, + st_atime = 0.0 # time of most recent access, + st_mtime = 0.0 # time of most recent content modification, + st_ctime = 0.0 # platform dependent (time of most recent metadata change # on Unix, or the time of creation on Windows) if sys.version_info >= (3, 3): - st_atime_ns = 0 # time of most recent access, in nanoseconds - st_mtime_ns = 0 # time of most recent content modification in nanoseconds - st_ctime_ns = 0 # platform dependent (time of most recent metadata change + st_atime_ns = 0 # time of most recent access, in nanoseconds + st_mtime_ns = 0 # time of most recent content modification in nanoseconds + st_ctime_ns = 0 # platform dependent (time of most recent metadata change # on Unix, or the time of creation on Windows) in nanoseconds # not documented @@ -154,15 +154,15 @@ class stat_result: # On some Unix systems (such as Linux), the following attributes may also # be available: - st_blocks = 0 # number of blocks allocated for file - st_blksize = 0 # filesystem blocksize - st_rdev = 0 # type of device if an inode device - st_flags = 0 # user defined flags for file + st_blocks = 0 # number of blocks allocated for file + st_blksize = 0 # filesystem blocksize + st_rdev = 0 # type of device if an inode device + st_flags = 0 # user defined flags for file # On other Unix systems (such as FreeBSD), the following attributes may be # available (but may be only filled out if root tries to use them): - st_gen = 0 # file generation number - st_birthtime = 0 # time of file creation + st_gen = 0 # file generation number + st_birthtime = 0 # time of file creation # On Mac OS systems, the following attributes may also be available: st_rsize = 0 @@ -291,7 +291,7 @@ if sys.version_info >= (3, 5): def scandir(path: bytes) -> Iterator[DirEntry]: ... def stat(path: AnyStr) -> stat_result: ... def stat_float_times(newvalue: Union[bool, None] = ...) -> bool: ... -def statvfs(path: str) -> statvfs_result: ... # Unix only +def statvfs(path: str) -> statvfs_result: ... # Unix only def symlink(source: AnyStr, link_name: AnyStr, target_is_directory: bool = ...) -> None: ... # final argument in Windows only @@ -306,10 +306,10 @@ def walk(top: AnyStr, topdown: bool = ..., onerror: Any = ..., def abort() -> 'None': ... def execl(path: AnyStr, arg0: AnyStr, *args: AnyStr) -> None: ... def execle(path: AnyStr, arg0: AnyStr, - *args: Any) -> None: ... # Imprecise signature + *args: Any) -> None: ... # Imprecise signature def execlp(path: AnyStr, arg0: AnyStr, *args: AnyStr) -> None: ... def execlpe(path: AnyStr, arg0: AnyStr, - *args: Any) -> None: ... # Imprecise signature + *args: Any) -> None: ... # Imprecise signature def execv(path: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]]) -> None: ... def execve(path: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]], env: Mapping[AnyStr, AnyStr]) -> None: ... def execvp(file: AnyStr, args: Union[Tuple[AnyStr], List[AnyStr]]) -> None: ... @@ -328,15 +328,15 @@ class popen(_TextIOWrapper): # TODO 'b' modes or bytes command not accepted? def __init__(self, command: str, mode: str = ..., bufsize: int = ...) -> None: ... - def close(self) -> Any: ... # may return int + def close(self) -> Any: ... # may return int def spawnl(mode: int, path: AnyStr, arg0: AnyStr, *args: AnyStr) -> int: ... def spawnle(mode: int, path: AnyStr, arg0: AnyStr, - *args: Any) -> int: ... # Imprecise sig + *args: Any) -> int: ... # Imprecise sig def spawnlp(mode: int, file: AnyStr, arg0: AnyStr, *args: AnyStr) -> int: ... # Unix only TODO def spawnlpe(mode: int, file: AnyStr, arg0: AnyStr, *args: Any) -> int: - ... # Imprecise signature; Unix only TODO + ... # Imprecise signature; Unix only TODO def spawnv(mode: int, path: AnyStr, args: List[AnyStr]) -> int: ... def spawnve(mode: int, path: AnyStr, args: List[AnyStr], env: Mapping[str, str]) -> int: ... diff --git a/stdlib/3/posixpath.pyi b/stdlib/3/posixpath.pyi index 5d6285c8abe9..34b3e3640541 100644 --- a/stdlib/3/posixpath.pyi +++ b/stdlib/3/posixpath.pyi @@ -18,11 +18,11 @@ def lexists(path: str) -> bool: ... def expanduser(path: str) -> str: ... def expandvars(path: str) -> str: ... def getatime(path: str) -> int: - ... # return float if os.stat_float_times() returns True + ... # return float if os.stat_float_times() returns True def getmtime(path: str) -> int: - ... # return float if os.stat_float_times() returns True + ... # return float if os.stat_float_times() returns True def getctime(path: str) -> int: - ... # return float if os.stat_float_times() returns True + ... # return float if os.stat_float_times() returns True def getsize(path: str) -> int: ... def isabs(path: str) -> bool: ... def isfile(path: str) -> bool: ... diff --git a/stdlib/3/resource.pyi b/stdlib/3/resource.pyi index bde5498f29d8..2dcb9137e05c 100644 --- a/stdlib/3/resource.pyi +++ b/stdlib/3/resource.pyi @@ -4,26 +4,26 @@ from typing import Tuple -RLIMIT_AS = ... # type: int -RLIMIT_CORE = ... # type: int -RLIMIT_CPU = ... # type: int -RLIMIT_DATA = ... # type: int -RLIMIT_FSIZE = ... # type: int -RLIMIT_MEMLOCK = ... # type: int -RLIMIT_MSGQUEUE = ... # type: int -RLIMIT_NICE = ... # type: int -RLIMIT_NOFILE = ... # type: int -RLIMIT_NPROC = ... # type: int -RLIMIT_OFILE = ... # type: int -RLIMIT_RSS = ... # type: int -RLIMIT_RTPRIO = ... # type: int -RLIMIT_RTTIME = ... # type: int -RLIMIT_SIGPENDING = ... # type: int -RLIMIT_STACK = ... # type: int -RLIM_INFINITY = ... # type: int -RUSAGE_CHILDREN = ... # type: int -RUSAGE_SELF = ... # type: int -RUSAGE_THREAD = ... # type: int +RLIMIT_AS = ... # type: int +RLIMIT_CORE = ... # type: int +RLIMIT_CPU = ... # type: int +RLIMIT_DATA = ... # type: int +RLIMIT_FSIZE = ... # type: int +RLIMIT_MEMLOCK = ... # type: int +RLIMIT_MSGQUEUE = ... # type: int +RLIMIT_NICE = ... # type: int +RLIMIT_NOFILE = ... # type: int +RLIMIT_NPROC = ... # type: int +RLIMIT_OFILE = ... # type: int +RLIMIT_RSS = ... # type: int +RLIMIT_RTPRIO = ... # type: int +RLIMIT_RTTIME = ... # type: int +RLIMIT_SIGPENDING = ... # type: int +RLIMIT_STACK = ... # type: int +RLIM_INFINITY = ... # type: int +RUSAGE_CHILDREN = ... # type: int +RUSAGE_SELF = ... # type: int +RUSAGE_THREAD = ... # type: int def getrlimit(resource: int) -> Tuple[int, int]: ... def setrlimit(resource: int, limits: Tuple[int, int]) -> None: ... diff --git a/stdlib/3/runpy.pyi b/stdlib/3/runpy.pyi index f7c257a99abc..5768a4c726a0 100644 --- a/stdlib/3/runpy.pyi +++ b/stdlib/3/runpy.pyi @@ -5,14 +5,14 @@ from typing import Any class _TempModule: - mod_name = ... # type: Any - module = ... # type: Any + mod_name = ... # type: Any + module = ... # type: Any def __init__(self, mod_name): ... def __enter__(self): ... def __exit__(self, *args): ... class _ModifiedArgv0: - value = ... # type: Any + value = ... # type: Any def __init__(self, value): ... def __enter__(self): ... def __exit__(self, *args): ... diff --git a/stdlib/3/signal.pyi b/stdlib/3/signal.pyi index 9e599f92de82..41bbd115cc7d 100644 --- a/stdlib/3/signal.pyi +++ b/stdlib/3/signal.pyi @@ -118,8 +118,8 @@ SIGWINCH = ... # type: _SIG SIGXCPU = ... # type: _SIG SIGXFSZ = ... # type: _SIG -CTRL_C_EVENT = 0 # Windows -CTRL_BREAK_EVENT = 0 # Windows +CTRL_C_EVENT = 0 # Windows +CTRL_BREAK_EVENT = 0 # Windows class struct_siginfo(Tuple[int, int, int, int, int, int, int]): def __init__(self, sequence: Iterable[int]) -> None: ... diff --git a/stdlib/3/smtplib.pyi b/stdlib/3/smtplib.pyi index fc786e476e6d..56a4729fd033 100644 --- a/stdlib/3/smtplib.pyi +++ b/stdlib/3/smtplib.pyi @@ -8,21 +8,21 @@ class SMTPException(OSError): ... class SMTPServerDisconnected(SMTPException): ... class SMTPResponseException(SMTPException): - smtp_code = ... # type: Any - smtp_error = ... # type: Any - args = ... # type: Any + smtp_code = ... # type: Any + smtp_error = ... # type: Any + args = ... # type: Any def __init__(self, code, msg) -> None: ... class SMTPSenderRefused(SMTPResponseException): - smtp_code = ... # type: Any - smtp_error = ... # type: Any - sender = ... # type: Any - args = ... # type: Any + smtp_code = ... # type: Any + smtp_error = ... # type: Any + sender = ... # type: Any + args = ... # type: Any def __init__(self, code, msg, sender) -> None: ... class SMTPRecipientsRefused(SMTPException): - recipients = ... # type: Any - args = ... # type: Any + recipients = ... # type: Any + args = ... # type: Any def __init__(self, recipients) -> None: ... class SMTPDataError(SMTPResponseException): ... @@ -34,23 +34,23 @@ def quoteaddr(addrstring): ... def quotedata(data): ... class SMTP: - debuglevel = ... # type: Any - file = ... # type: Any - helo_resp = ... # type: Any - ehlo_msg = ... # type: Any - ehlo_resp = ... # type: Any - does_esmtp = ... # type: Any - default_port = ... # type: Any - timeout = ... # type: Any - esmtp_features = ... # type: Any - source_address = ... # type: Any - local_hostname = ... # type: Any + debuglevel = ... # type: Any + file = ... # type: Any + helo_resp = ... # type: Any + ehlo_msg = ... # type: Any + ehlo_resp = ... # type: Any + does_esmtp = ... # type: Any + default_port = ... # type: Any + timeout = ... # type: Any + esmtp_features = ... # type: Any + source_address = ... # type: Any + local_hostname = ... # type: Any def __init__(self, host=..., port=..., local_hostname=..., timeout=..., source_address=...): ... def __enter__(self): ... def __exit__(self, *args): ... def set_debuglevel(self, debuglevel): ... - sock = ... # type: Any + sock = ... # type: Any def connect(self, host=..., port=..., source_address=...): ... def send(self, s): ... def putcmd(self, cmd, args=...): ... @@ -66,7 +66,7 @@ class SMTP: def rcpt(self, recip, options=...): ... def data(self, msg): ... def verify(self, address): ... - vrfy = ... # type: Any + vrfy = ... # type: Any def expn(self, address): ... def ehlo_or_helo_if_needed(self): ... def login(self, user, password): ... @@ -79,16 +79,16 @@ class SMTP: def quit(self): ... class SMTP_SSL(SMTP): - default_port = ... # type: Any - keyfile = ... # type: Any - certfile = ... # type: Any - context = ... # type: Any + default_port = ... # type: Any + keyfile = ... # type: Any + certfile = ... # type: Any + context = ... # type: Any def __init__(self, host=..., port=..., local_hostname=..., keyfile=..., certfile=..., timeout=..., source_address=..., context=...): ... class LMTP(SMTP): - ehlo_msg = ... # type: Any + ehlo_msg = ... # type: Any def __init__(self, host=..., port=..., local_hostname=..., source_address=...) -> None: ... - sock = ... # type: Any - file = ... # type: Any + sock = ... # type: Any + file = ... # type: Any def connect(self, host=..., port=..., source_address=...): ... diff --git a/stdlib/3/socket.pyi b/stdlib/3/socket.pyi index 8451cfbc2dd1..4915d8aa17a2 100644 --- a/stdlib/3/socket.pyi +++ b/stdlib/3/socket.pyi @@ -317,7 +317,7 @@ class socket: flags: int = ...) -> Any: ... def send(self, data: bytes, flags: int = ...) -> int: ... def sendall(self, data: bytes, flags: int =...) -> None: - ... # return type: None on success + ... # return type: None on success def sendto(self, data: bytes, address: Union[tuple, str], flags: int = ...) -> int: ... def setblocking(self, flag: bool) -> None: ... def settimeout(self, value: Union[float, None]) -> None: ... diff --git a/stdlib/3/sqlite3/dbapi2.pyi b/stdlib/3/sqlite3/dbapi2.pyi index 28d387cb635c..106b27ddc765 100644 --- a/stdlib/3/sqlite3/dbapi2.pyi +++ b/stdlib/3/sqlite3/dbapi2.pyi @@ -6,62 +6,62 @@ from numbers import Integral from datetime import time, datetime from collections import Iterable -paramstyle = ... # type: str -threadsafety = ... # type: int -apilevel = ... # type: str -Date = ... # type: datetime -Time = ... # type: time -Timestamp = ... # type: datetime +paramstyle = ... # type: str +threadsafety = ... # type: int +apilevel = ... # type: str +Date = ... # type: datetime +Time = ... # type: time +Timestamp = ... # type: datetime def DateFromTicks(ticks): ... def TimeFromTicks(ticks): ... def TimestampFromTicks(ticks): ... -version_info = ... # type: Any -sqlite_version_info = ... # type: Any -Binary = ... # type: Any +version_info = ... # type: Any +sqlite_version_info = ... # type: Any +Binary = ... # type: Any def register_adapters_and_converters(): ... # The remaining definitions are imported from _sqlite3. -PARSE_COLNAMES = ... # type: int -PARSE_DECLTYPES = ... # type: int -SQLITE_ALTER_TABLE = ... # type: int -SQLITE_ANALYZE = ... # type: int -SQLITE_ATTACH = ... # type: int -SQLITE_CREATE_INDEX = ... # type: int -SQLITE_CREATE_TABLE = ... # type: int -SQLITE_CREATE_TEMP_INDEX = ... # type: int -SQLITE_CREATE_TEMP_TABLE = ... # type: int -SQLITE_CREATE_TEMP_TRIGGER = ... # type: int -SQLITE_CREATE_TEMP_VIEW = ... # type: int -SQLITE_CREATE_TRIGGER = ... # type: int -SQLITE_CREATE_VIEW = ... # type: int -SQLITE_DELETE = ... # type: int -SQLITE_DENY = ... # type: int -SQLITE_DETACH = ... # type: int -SQLITE_DROP_INDEX = ... # type: int -SQLITE_DROP_TABLE = ... # type: int -SQLITE_DROP_TEMP_INDEX = ... # type: int -SQLITE_DROP_TEMP_TABLE = ... # type: int -SQLITE_DROP_TEMP_TRIGGER = ... # type: int -SQLITE_DROP_TEMP_VIEW = ... # type: int -SQLITE_DROP_TRIGGER = ... # type: int -SQLITE_DROP_VIEW = ... # type: int -SQLITE_IGNORE = ... # type: int -SQLITE_INSERT = ... # type: int -SQLITE_OK = ... # type: int -SQLITE_PRAGMA = ... # type: int -SQLITE_READ = ... # type: int -SQLITE_REINDEX = ... # type: int -SQLITE_SELECT = ... # type: int -SQLITE_TRANSACTION = ... # type: int -SQLITE_UPDATE = ... # type: int -adapters = ... # type: Any -converters = ... # type: Any -sqlite_version = ... # type: str -version = ... # type: str +PARSE_COLNAMES = ... # type: int +PARSE_DECLTYPES = ... # type: int +SQLITE_ALTER_TABLE = ... # type: int +SQLITE_ANALYZE = ... # type: int +SQLITE_ATTACH = ... # type: int +SQLITE_CREATE_INDEX = ... # type: int +SQLITE_CREATE_TABLE = ... # type: int +SQLITE_CREATE_TEMP_INDEX = ... # type: int +SQLITE_CREATE_TEMP_TABLE = ... # type: int +SQLITE_CREATE_TEMP_TRIGGER = ... # type: int +SQLITE_CREATE_TEMP_VIEW = ... # type: int +SQLITE_CREATE_TRIGGER = ... # type: int +SQLITE_CREATE_VIEW = ... # type: int +SQLITE_DELETE = ... # type: int +SQLITE_DENY = ... # type: int +SQLITE_DETACH = ... # type: int +SQLITE_DROP_INDEX = ... # type: int +SQLITE_DROP_TABLE = ... # type: int +SQLITE_DROP_TEMP_INDEX = ... # type: int +SQLITE_DROP_TEMP_TABLE = ... # type: int +SQLITE_DROP_TEMP_TRIGGER = ... # type: int +SQLITE_DROP_TEMP_VIEW = ... # type: int +SQLITE_DROP_TRIGGER = ... # type: int +SQLITE_DROP_VIEW = ... # type: int +SQLITE_IGNORE = ... # type: int +SQLITE_INSERT = ... # type: int +SQLITE_OK = ... # type: int +SQLITE_PRAGMA = ... # type: int +SQLITE_READ = ... # type: int +SQLITE_REINDEX = ... # type: int +SQLITE_SELECT = ... # type: int +SQLITE_TRANSACTION = ... # type: int +SQLITE_UPDATE = ... # type: int +adapters = ... # type: Any +converters = ... # type: Any +sqlite_version = ... # type: str +version = ... # type: str # TODO: adapt needs to get probed def adapt(obj, protocol, alternate): ... @@ -85,21 +85,21 @@ class Cache: def get(self, *args, **kwargs) -> None: ... class Connection: - DataError = ... # type: Any - DatabaseError = ... # type: Any - Error = ... # type: Any - IntegrityError = ... # type: Any - InterfaceError = ... # type: Any - InternalError = ... # type: Any - NotSupportedError = ... # type: Any - OperationalError = ... # type: Any - ProgrammingError = ... # type: Any - Warning = ... # type: Any - in_transaction = ... # type: Any - isolation_level = ... # type: Any - row_factory = ... # type: Any - text_factory = ... # type: Any - total_changes = ... # type: Any + DataError = ... # type: Any + DatabaseError = ... # type: Any + Error = ... # type: Any + IntegrityError = ... # type: Any + InterfaceError = ... # type: Any + InternalError = ... # type: Any + NotSupportedError = ... # type: Any + OperationalError = ... # type: Any + ProgrammingError = ... # type: Any + Warning = ... # type: Any + in_transaction = ... # type: Any + isolation_level = ... # type: Any + row_factory = ... # type: Any + text_factory = ... # type: Any + total_changes = ... # type: Any def __init__(self, *args, **kwargs): ... def close(self) -> None: ... def commit(self) -> None: ... @@ -126,12 +126,12 @@ class Connection: def __exit__(self, *args, **kwargs): ... class Cursor(Iterator[Any]): - arraysize = ... # type: Any - connection = ... # type: Any - description = ... # type: Any - lastrowid = ... # type: Any - row_factory = ... # type: Any - rowcount = ... # type: Any + arraysize = ... # type: Any + connection = ... # type: Any + description = ... # type: Any + lastrowid = ... # type: Any + row_factory = ... # type: Any + rowcount = ... # type: Any # TODO: Cursor class accepts exactly 1 argument # required type is sqlite3.Connection (which is imported as _Connection) # however, the name of the __init__ variable is unknown @@ -166,7 +166,7 @@ class NotSupportedError(DatabaseError): ... class OperationalError(DatabaseError): ... class OptimizedUnicode: - maketrans = ... # type: Any + maketrans = ... # type: Any def __init__(self, *args, **kwargs): ... def capitalize(self, *args, **kwargs): ... def casefold(self, *args, **kwargs): ... diff --git a/stdlib/3/ssl.pyi b/stdlib/3/ssl.pyi index ce7700248526..250034ecdfb4 100644 --- a/stdlib/3/ssl.pyi +++ b/stdlib/3/ssl.pyi @@ -56,7 +56,7 @@ if sys.version_info >= (3, 4, 3): cafile: Optional[str] = ..., capath: Optional[str] = ..., cadata: Optional[str] = ...) -> 'SSLContext': ... - _create_default_https_context = ... # type: Callable[..., 'SSLContext'] + _create_default_https_context = ... # type: Callable[..., 'SSLContext'] def RAND_bytes(num: int) -> bytes: ... def RAND_pseudo_bytes(num: int) -> Tuple[bytes, bool]: ... @@ -85,52 +85,52 @@ if sys.version_info >= (3, 4) and sys.platform == 'win32': def enum_crls(store_name: str) -> _EnumRetType: ... -CERT_NONE = ... # type: int -CERT_OPTIONAL = ... # type: int -CERT_REQUIRED = ... # type: int +CERT_NONE = ... # type: int +CERT_OPTIONAL = ... # type: int +CERT_REQUIRED = ... # type: int if sys.version_info >= (3, 4): - VERIFY_DEFAULT = ... # type: int - VERIFY_CRL_CHECK_LEAF = ... # type: int - VERIFY_CRL_CHECK_CHAIN = ... # type: int - VERIFY_X509_STRICT = ... # type: int + VERIFY_DEFAULT = ... # type: int + VERIFY_CRL_CHECK_LEAF = ... # type: int + VERIFY_CRL_CHECK_CHAIN = ... # type: int + VERIFY_X509_STRICT = ... # type: int if sys.version_info >= (3, 4, 4): - VERIFY_X509_TRUSTED_FIRST = ... # type: int + VERIFY_X509_TRUSTED_FIRST = ... # type: int -PROTOCOL_SSLv23 = ... # type: int -PROTOCOL_SSLv2 = ... # type: int -PROTOCOL_SSLv3 = ... # type: int -PROTOCOL_TLSv1 = ... # type: int +PROTOCOL_SSLv23 = ... # type: int +PROTOCOL_SSLv2 = ... # type: int +PROTOCOL_SSLv3 = ... # type: int +PROTOCOL_TLSv1 = ... # type: int if sys.version_info >= (3, 4): - PROTOCOL_TLSv1_1 = ... # type: int - PROTOCOL_TLSv1_2 = ... # type: int + PROTOCOL_TLSv1_1 = ... # type: int + PROTOCOL_TLSv1_2 = ... # type: int -OP_ALL = ... # type: int -OP_NO_SSLv2 = ... # type: int -OP_NO_SSLv3 = ... # type: int -OP_NO_TLSv1 = ... # type: int +OP_ALL = ... # type: int +OP_NO_SSLv2 = ... # type: int +OP_NO_SSLv3 = ... # type: int +OP_NO_TLSv1 = ... # type: int if sys.version_info >= (3, 4): - OP_NO_TLSv1_1 = ... # type: int - OP_NO_TLSv1_2 = ... # type: int -OP_CIPHER_SERVER_PREFERENCE = ... # type: int -OP_SINGLE_DH_USE = ... # type: int -OP_SINGLE_ECDH_USE = ... # type: int -OP_NO_COMPRESSION = ... # type: int + OP_NO_TLSv1_1 = ... # type: int + OP_NO_TLSv1_2 = ... # type: int +OP_CIPHER_SERVER_PREFERENCE = ... # type: int +OP_SINGLE_DH_USE = ... # type: int +OP_SINGLE_ECDH_USE = ... # type: int +OP_NO_COMPRESSION = ... # type: int if sys.version_info >= (3, 5): HAS_ALPN = ... # type: int -HAS_ECDH = ... # type: bool -HAS_SNI = ... # type: bool -HAS_NPN = ... # type: bool -CHANNEL_BINDING_TYPES = ... # type: List[str] +HAS_ECDH = ... # type: bool +HAS_SNI = ... # type: bool +HAS_NPN = ... # type: bool +CHANNEL_BINDING_TYPES = ... # type: List[str] -OPENSSL_VERSION = ... # type: str -OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int] -OPENSSL_VERSION_NUMBER = ... # type: int +OPENSSL_VERSION = ... # type: str +OPENSSL_VERSION_INFO = ... # type: Tuple[int, int, int, int, int] +OPENSSL_VERSION_NUMBER = ... # type: int if sys.version_info >= (3, 4): - ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int - ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int + ALERT_DESCRIPTION_HANDSHAKE_FAILURE = ... # type: int + ALERT_DESCRIPTION_INTERNAL_ERROR = ... # type: int ALERT_DESCRIPTION_ACCESS_DENIED = ... # type: int ALERT_DESCRIPTION_BAD_CERTIFICATE = ... # type: int ALERT_DESCRIPTION_BAD_CERTIFICATE_HASH_VALUE = ... # type: int @@ -162,14 +162,14 @@ if sys.version_info >= (3, 4): [('nid', int), ('shortname', str), ('longname', str), ('oid', str)]) class Purpose: - SERVER_AUTH = ... # type: _PurposeType - CLIENT_AUTH = ... # type: _PurposeType + SERVER_AUTH = ... # type: _PurposeType + CLIENT_AUTH = ... # type: _PurposeType class SSLSocket(socket.socket): - context = ... # type: SSLContext - server_side = ... # type: bool - server_hostname = ... # type: Optional[str] + context = ... # type: SSLContext + server_side = ... # type: bool + server_hostname = ... # type: Optional[str] def read(self, len: int = ..., buffer: Optional[bytearray] = ...) -> bytes: ... def write(self, buf: bytes) -> int: ... @@ -191,13 +191,13 @@ class SSLSocket(socket.socket): class SSLContext: if sys.version_info >= (3, 4): - check_hostname = ... # type: bool - options = ... # type: int + check_hostname = ... # type: bool + options = ... # type: int @property def protocol(self) -> int: ... if sys.version_info >= (3, 4): - verify_flags = ... # type: int - verify_mode = ... # type: int + verify_flags = ... # type: int + verify_mode = ... # type: int def __init__(self, protocol: int) -> None: ... if sys.version_info >= (3, 4): def cert_store_stats(self) -> Dict[str, int]: ... @@ -239,9 +239,9 @@ class SSLContext: if sys.version_info >= (3, 5): class SSLObject: - context = ... # type: SSLContext - server_side = ... # type: bool - server_hostname = ... # type: Optional[str] + context = ... # type: SSLContext + server_side = ... # type: bool + server_hostname = ... # type: Optional[str] def read(self, len: int = ..., buffer: Optional[bytearray] = ...) -> bytes: ... def write(self, buf: bytes) -> int: ... diff --git a/stdlib/3/stat.pyi b/stdlib/3/stat.pyi index 60600ed53b76..84d290a93bc1 100644 --- a/stdlib/3/stat.pyi +++ b/stdlib/3/stat.pyi @@ -64,7 +64,7 @@ UF_APPEND = 0 UF_OPAQUE = 0 UF_NOUNLINK = 0 if sys.platform == 'darwin': - UF_COMPRESSED = 0 # OS X 10.6+ only + UF_COMPRESSED = 0 # OS X 10.6+ only UF_HIDDEN = 0 # OX X 10.5+ only SF_ARCHIVED = 0 SF_IMMUTABLE = 0 diff --git a/stdlib/3/subprocess.pyi b/stdlib/3/subprocess.pyi index bbd52e62f84d..c22ba007583c 100644 --- a/stdlib/3/subprocess.pyi +++ b/stdlib/3/subprocess.pyi @@ -180,8 +180,8 @@ else: # TODO types -PIPE = ... # type: Any -STDOUT = ... # type: Any +PIPE = ... # type: Any +STDOUT = ... # type: Any if sys.version_info >= (3, 3): DEVNULL = ... # type: Any class SubprocessError(Exception): ... @@ -191,7 +191,7 @@ if sys.version_info >= (3, 3): class CalledProcessError(Exception): returncode = 0 cmd = ... # type: str - output = b'' # May be None + output = b'' # May be None if sys.version_info >= (3, 5): stdout = b'' @@ -201,9 +201,9 @@ class CalledProcessError(Exception): stderr: Optional[str] = ...) -> None: ... class Popen: - stdin = ... # type: IO[Any] - stdout = ... # type: IO[Any] - stderr = ... # type: IO[Any] + stdin = ... # type: IO[Any] + stdout = ... # type: IO[Any] + stderr = ... # type: IO[Any] pid = 0 returncode = 0 diff --git a/stdlib/3/sys.pyi b/stdlib/3/sys.pyi index 28b23a546405..3b0fef391352 100644 --- a/stdlib/3/sys.pyi +++ b/stdlib/3/sys.pyi @@ -13,50 +13,50 @@ _T = TypeVar('_T') # ----- sys variables ----- abiflags = ... # type: str -argv = ... # type: List[str] +argv = ... # type: List[str] byteorder = ... # type: str -builtin_module_names = ... # type: Sequence[str] # actually a tuple of strings +builtin_module_names = ... # type: Sequence[str] # actually a tuple of strings copyright = ... # type: str #dllhandle = 0 # Windows only dont_write_bytecode = False -__displayhook__ = ... # type: Any # contains the original value of displayhook -__excepthook__ = ... # type: Any # contains the original value of excepthook +__displayhook__ = ... # type: Any # contains the original value of displayhook +__excepthook__ = ... # type: Any # contains the original value of excepthook exec_prefix = ... # type: str executable = ... # type: str float_repr_style = ... # type: str hexversion = 0 # this is a 32-bit int -last_type = ... # type: Any -last_value = ... # type: Any -last_traceback = ... # type: Any +last_type = ... # type: Any +last_value = ... # type: Any +last_traceback = ... # type: Any maxsize = 0 maxunicode = 0 -meta_path = ... # type: List[Any] -modules = ... # type: Dict[str, Any] -path = ... # type: List[str] -path_hooks = ... # type: List[Any] # TODO precise type; function, path to finder -path_importer_cache = ... # type: Dict[str, Any] # TODO precise type +meta_path = ... # type: List[Any] +modules = ... # type: Dict[str, Any] +path = ... # type: List[str] +path_hooks = ... # type: List[Any] # TODO precise type; function, path to finder +path_importer_cache = ... # type: Dict[str, Any] # TODO precise type platform = ... # type: str prefix = ... # type: str ps1 = ... # type: str ps2 = ... # type: str -stdin = ... # type: TextIO -stdout = ... # type: TextIO -stderr = ... # type: TextIO -__stdin__ = ... # type: TextIO -__stdout__ = ... # type: TextIO -__stderr__ = ... # type: TextIO +stdin = ... # type: TextIO +stdout = ... # type: TextIO +stderr = ... # type: TextIO +__stdin__ = ... # type: TextIO +__stdout__ = ... # type: TextIO +__stderr__ = ... # type: TextIO # deprecated and removed in Python 3.3: -subversion = ... # type: Tuple[str, str, str] +subversion = ... # type: Tuple[str, str, str] tracebacklimit = 0 version = ... # type: str api_version = 0 -warnoptions = ... # type: Any +warnoptions = ... # type: Any # Each entry is a tuple of the form (action, message, category, module, # lineno) #winver = '' # Windows only -_xoptions = ... # type: Dict[Any, Any] +_xoptions = ... # type: Dict[Any, Any] -flags = ... # type: _flags +flags = ... # type: _flags class _flags: debug = 0 division_warning = 0 @@ -72,7 +72,7 @@ class _flags: quiet = 0 hash_randomization = 0 -float_info = ... # type: _float_info +float_info = ... # type: _float_info class _float_info: epsilon = 0.0 # DBL_EPSILON dig = 0 # DBL_DIG @@ -86,7 +86,7 @@ class _float_info: radix = 0 # FLT_RADIX rounds = 0 # FLT_ROUNDS -hash_info = ... # type: _hash_info +hash_info = ... # type: _hash_info class _hash_info: width = 0 # width in bits used for hash values modulus = 0 # prime modulus P used for numeric hash scheme @@ -94,7 +94,7 @@ class _hash_info: nan = 0 # hash value returned for a nan imag = 0 # multiplier used for the imaginary part of a complex number -int_info = ... # type: _int_info +int_info = ... # type: _int_info class _int_info: bits_per_digit = 0 # number of bits held in each digit. Python integers # are stored internally in @@ -107,7 +107,7 @@ class _version_info(Tuple[int, int, int, str, int]): micro = 0 releaselevel = ... # type: str serial = 0 -version_info = ... # type: _version_info +version_info = ... # type: _version_info # ----- sys function stubs ----- @@ -143,20 +143,20 @@ def _getframe() -> Any: ... @overload def _getframe(depth: int) -> Any: ... -def getprofile() -> Any: ... # TODO return type -def gettrace() -> Any: ... # TODO return +def getprofile() -> Any: ... # TODO return type +def gettrace() -> Any: ... # TODO return def getwindowsversion() -> Any: ... # Windows only, TODO return type def intern(string: str) -> str: ... def setcheckinterval(interval: int) -> None: ... # deprecated def setdlopenflags(n: int) -> None: ... # Linux only -def setprofile(profilefunc: Any) -> None: ... # TODO type +def setprofile(profilefunc: Any) -> None: ... # TODO type def setrecursionlimit(limit: int) -> None: ... def setswitchinterval(interval: float) -> None: ... -def settrace(tracefunc: Any) -> None: ... # TODO type +def settrace(tracefunc: Any) -> None: ... # TODO type # Trace functions should have three arguments: frame, event, and arg. frame # is the current stack frame. event is a string: 'call', 'line', 'return', # 'exception', 'c_call', 'c_return', or 'c_exception'. arg depends on the # event type. def settscdump(on_flag: bool) -> None: ... -def gettotalrefcount() -> int: ... # Debug builds only +def gettotalrefcount() -> int: ... # Debug builds only diff --git a/stdlib/3/time.pyi b/stdlib/3/time.pyi index 2940afd01f48..9394b02a8548 100644 --- a/stdlib/3/time.pyi +++ b/stdlib/3/time.pyi @@ -15,7 +15,7 @@ accept2dyear = False altzone = 0 daylight = 0 timezone = 0 -tzname = ... # type: Tuple[str, str] +tzname = ... # type: Tuple[str, str] if sys.version_info >= (3, 3) and sys.platform != 'win32': CLOCK_HIGHRES = 0 # Solaris only diff --git a/stdlib/3/tkinter/constants.pyi b/stdlib/3/tkinter/constants.pyi index 6a6deaeff2f5..77645efd18f5 100644 --- a/stdlib/3/tkinter/constants.pyi +++ b/stdlib/3/tkinter/constants.pyi @@ -6,10 +6,10 @@ from typing import Any NO = ... # type: Any YES = ... # type: Any -TRUE = ... # type: Any -FALSE = ... # type: Any -ON = ... # type: Any -OFF = ... # type: Any +TRUE = ... # type: Any +FALSE = ... # type: Any +ON = ... # type: Any +OFF = ... # type: Any N = ... # type: Any S = ... # type: Any W = ... # type: Any diff --git a/stdlib/3/token.pyi b/stdlib/3/token.pyi index a2a5b5967cd3..24e6ea3645ab 100644 --- a/stdlib/3/token.pyi +++ b/stdlib/3/token.pyi @@ -56,7 +56,7 @@ OP = 0 ERRORTOKEN = 0 N_TOKENS = 0 NT_OFFSET = 0 -tok_name = ... # type: Dict[int, str] +tok_name = ... # type: Dict[int, str] def ISTERMINAL(x: int) -> bool: pass def ISNONTERMINAL(x: int) -> bool: pass diff --git a/stdlib/3/tokenize.pyi b/stdlib/3/tokenize.pyi index 947c19527b78..2f1a184fe98c 100644 --- a/stdlib/3/tokenize.pyi +++ b/stdlib/3/tokenize.pyi @@ -6,9 +6,9 @@ from typing import Any, Union, TextIO from builtins import open as _builtin_open from token import * -COMMENT = ... # type: Any -NL = ... # type: Any -ENCODING = ... # type: Any +COMMENT = ... # type: Any +NL = ... # type: Any +ENCODING = ... # type: Any class TokenInfo: @property @@ -18,10 +18,10 @@ class TokenError(Exception): ... class StopTokenizing(Exception): ... class Untokenizer: - tokens = ... # type: Any - prev_row = ... # type: Any - prev_col = ... # type: Any - encoding = ... # type: Any + tokens = ... # type: Any + prev_row = ... # type: Any + prev_col = ... # type: Any + encoding = ... # type: Any def __init__(self): ... def add_whitespace(self, start): ... def untokenize(self, iterable): ... diff --git a/stdlib/3/types.pyi b/stdlib/3/types.pyi index fe34809a5206..79e1a8e72493 100644 --- a/stdlib/3/types.pyi +++ b/stdlib/3/types.pyi @@ -29,21 +29,21 @@ LambdaType = FunctionType class CodeType: """Create a code object. Not for the faint of heart.""" - co_argcount = ... # type: int - co_kwonlyargcount = ... # type: int - co_nlocals = ... # type: int - co_stacksize = ... # type: int - co_flags = ... # type: int - co_code = ... # type: bytes - co_consts = ... # type: Tuple[Any, ...] - co_names = ... # type: Tuple[str, ...] - co_varnames = ... # type: Tuple[str, ...] - co_filename = ... # type: Optional[str] - co_name = ... # type: str - co_firstlineno = ... # type: int - co_lnotab = ... # type: bytes - co_freevars = ... # type: Tuple[str, ...] - co_cellvars = ... # type: Tuple[str, ...] + co_argcount = ... # type: int + co_kwonlyargcount = ... # type: int + co_nlocals = ... # type: int + co_stacksize = ... # type: int + co_flags = ... # type: int + co_code = ... # type: bytes + co_consts = ... # type: Tuple[Any, ...] + co_names = ... # type: Tuple[str, ...] + co_varnames = ... # type: Tuple[str, ...] + co_filename = ... # type: Optional[str] + co_name = ... # type: str + co_firstlineno = ... # type: int + co_lnotab = ... # type: bytes + co_freevars = ... # type: Tuple[str, ...] + co_cellvars = ... # type: Tuple[str, ...] def __init__(self, argcount: int, kwonlyargcount: int, @@ -111,20 +111,20 @@ BuiltinMethodType = BuiltinFunctionType from _importlib_modulespec import ModuleType as ModuleType # Exported class TracebackType: - tb_frame = ... # type: FrameType - tb_lasti = ... # type: int - tb_lineno = ... # type: int - tb_next = ... # type: TracebackType + tb_frame = ... # type: FrameType + tb_lasti = ... # type: int + tb_lineno = ... # type: int + tb_next = ... # type: TracebackType class FrameType: - f_back = ... # type: FrameType - f_builtins = ... # type: Dict[str, Any] - f_code = ... # type: CodeType - f_globals = ... # type: Dict[str, Any] - f_lasti = ... # type: int - f_lineno = ... # type: int - f_locals = ... # type: Dict[str, Any] - f_trace = ... # type: Callable[[], None] + f_back = ... # type: FrameType + f_builtins = ... # type: Dict[str, Any] + f_code = ... # type: CodeType + f_globals = ... # type: Dict[str, Any] + f_lasti = ... # type: int + f_lineno = ... # type: int + f_locals = ... # type: Dict[str, Any] + f_trace = ... # type: Callable[[], None] def clear(self) -> None: pass diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 86e4f5f6f508..c3cf8bdf54af 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -276,7 +276,7 @@ class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]): # the first overload, but by using overloading rather than a Union, # mypy will commit to using the first overload when the argument is # known to be a Mapping with unknown type parameters, which is closer - # to the behavior we want. See mypy issue #1430. + # to the behavior we want. See mypy issue #1430. @overload def update(self, m: Mapping[_KT, _VT]) -> None: ... @overload @@ -365,7 +365,7 @@ class TextIO(IO[str]): @property def line_buffering(self) -> int: ... # int on PyPy, bool on CPython @property - def newlines(self) -> Any: ... # None, str or tuple + def newlines(self) -> Any: ... # None, str or tuple @abstractmethod def __enter__(self) -> TextIO: ... diff --git a/stdlib/3/unicodedata.pyi b/stdlib/3/unicodedata.pyi index 08ad413067a3..07b5c4774488 100644 --- a/stdlib/3/unicodedata.pyi +++ b/stdlib/3/unicodedata.pyi @@ -4,9 +4,9 @@ from typing import Any -ucd_3_2_0 = ... # type: Any -ucnhash_CAPI = ... # type: Any -unidata_version = ... # type: str +ucd_3_2_0 = ... # type: Any +ucnhash_CAPI = ... # type: Any +unidata_version = ... # type: str def bidirectional(unichr): ... def category(unichr): ... @@ -22,7 +22,7 @@ def normalize(form, unistr): ... def numeric(chr, default=...): ... class UCD: - unidata_version = ... # type: Any + unidata_version = ... # type: Any def bidirectional(self, unichr): ... def category(self, unichr): ... def combining(self, unichr): ... diff --git a/stdlib/3/unittest/__init__.pyi b/stdlib/3/unittest/__init__.pyi index 858bedbab154..3b078f93c11e 100644 --- a/stdlib/3/unittest/__init__.pyi +++ b/stdlib/3/unittest/__init__.pyi @@ -188,13 +188,13 @@ class FunctionTestCase(TestCase): description: Optional[str] = ...) -> None: ... class _AssertRaisesContext: - exception = ... # type: Exception + exception = ... # type: Exception def __enter__(self) -> _AssertRaisesContext: ... def __exit__(self, exc_type: Optional[type], exc_val: Optional[Exception], exc_tb: Optional[TracebackType]) -> bool: ... class _AssertWarnsContext: - warning = ... # type: Warning + warning = ... # type: Warning filename = ... # type: str lineno = ... # type: int def __enter__(self) -> _AssertWarnsContext: ... @@ -249,11 +249,11 @@ _SysExcInfoType = Tuple[Optional[Type[BaseException]], Optional[TracebackType]] class TestResult: - errors = ... # type: List[Tuple[TestCase, str]] - failures = ... # type: List[Tuple[TestCase, str]] - skipped = ... # type: List[Tuple[TestCase, str]] - expectedFailures = ... # type: List[Tuple[TestCase, str]] - unexpectedSuccesses = ... # type: List[TestCase] + errors = ... # type: List[Tuple[TestCase, str]] + failures = ... # type: List[Tuple[TestCase, str]] + skipped = ... # type: List[Tuple[TestCase, str]] + expectedFailures = ... # type: List[Tuple[TestCase, str]] + unexpectedSuccesses = ... # type: List[TestCase] shouldStop = ... # type: bool testsRun = ... # type: int buffer = ... # type: bool diff --git a/stdlib/3/urllib/parse.pyi b/stdlib/3/urllib/parse.pyi index 7ee772baa180..4edf5c34f287 100644 --- a/stdlib/3/urllib/parse.pyi +++ b/stdlib/3/urllib/parse.pyi @@ -40,10 +40,10 @@ class _ResultMixinBytes(_ResultMixinBase[str]): class _NetlocResultMixinBase(Generic[AnyStr]): - username = ... # type: AnyStr - password = ... # type: AnyStr - hostname = ... # type: AnyStr - port = ... # type: int + username = ... # type: AnyStr + password = ... # type: AnyStr + hostname = ... # type: AnyStr + port = ... # type: int class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ... @@ -51,23 +51,23 @@ class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ... class _NetlocResultMixinBytes(_NetlocResultMixinBase[str], _ResultMixinBytes): ... class _DefragResultBase(tuple, Generic[AnyStr]): - url = ... # type: AnyStr - fragment = ... # type: AnyStr + url = ... # type: AnyStr + fragment = ... # type: AnyStr class _SplitResultBase(tuple, Generic[AnyStr]): - scheme = ... # type: AnyStr - netloc = ... # type: AnyStr - path = ... # type: AnyStr - query = ... # type: AnyStr - fragment = ... # type: AnyStr + scheme = ... # type: AnyStr + netloc = ... # type: AnyStr + path = ... # type: AnyStr + query = ... # type: AnyStr + fragment = ... # type: AnyStr class _ParseResultBase(tuple, Generic[AnyStr]): - scheme = ... # type: AnyStr - netloc = ... # type: AnyStr - path = ... # type: AnyStr - params = ... # type: AnyStr - query = ... # type: AnyStr - fragment = ... # type: AnyStr + scheme = ... # type: AnyStr + netloc = ... # type: AnyStr + path = ... # type: AnyStr + params = ... # type: AnyStr + query = ... # type: AnyStr + fragment = ... # type: AnyStr # Structured result objects for string data class DefragResult(_DefragResultBase[str], _ResultMixinStr): ... diff --git a/stdlib/3/uuid.pyi b/stdlib/3/uuid.pyi index 8c51d995d029..efd48e5edd4f 100644 --- a/stdlib/3/uuid.pyi +++ b/stdlib/3/uuid.pyi @@ -63,11 +63,11 @@ def uuid3(namespace: UUID, name: str) -> UUID: ... def uuid4() -> UUID: ... def uuid5(namespace: UUID, name: str) -> UUID: ... -NAMESPACE_DNS = ... # type: UUID -NAMESPACE_URL = ... # type: UUID -NAMESPACE_OID = ... # type: UUID -NAMESPACE_X500 = ... # type: UUID -RESERVED_NCS = ... # type: str -RFC_4122 = ... # type: str -RESERVED_MICROSOFT = ... # type: str -RESERVED_FUTURE = ... # type: str +NAMESPACE_DNS = ... # type: UUID +NAMESPACE_URL = ... # type: UUID +NAMESPACE_OID = ... # type: UUID +NAMESPACE_X500 = ... # type: UUID +RESERVED_NCS = ... # type: str +RFC_4122 = ... # type: str +RESERVED_MICROSOFT = ... # type: str +RESERVED_FUTURE = ... # type: str diff --git a/stdlib/3/wsgiref/validate.pyi b/stdlib/3/wsgiref/validate.pyi index ecdb2528ccac..bd7fd161eea4 100644 --- a/stdlib/3/wsgiref/validate.pyi +++ b/stdlib/3/wsgiref/validate.pyi @@ -9,7 +9,7 @@ class WSGIWarning(Warning): ... def validator(application): ... class InputWrapper: - input = ... # type: Any + input = ... # type: Any def __init__(self, wsgi_input): ... def read(self, *args): ... def readline(self, *args): ... @@ -18,7 +18,7 @@ class InputWrapper: def close(self): ... class ErrorWrapper: - errors = ... # type: Any + errors = ... # type: Any def __init__(self, wsgi_errors): ... def write(self, s): ... def flush(self): ... @@ -26,20 +26,20 @@ class ErrorWrapper: def close(self): ... class WriteWrapper: - writer = ... # type: Any + writer = ... # type: Any def __init__(self, wsgi_writer): ... def __call__(self, s): ... class PartialIteratorWrapper: - iterator = ... # type: Any + iterator = ... # type: Any def __init__(self, wsgi_iterator): ... def __iter__(self): ... class IteratorWrapper: - original_iterator = ... # type: Any - iterator = ... # type: Any - closed = ... # type: Any - check_start_response = ... # type: Any + original_iterator = ... # type: Any + iterator = ... # type: Any + closed = ... # type: Any + check_start_response = ... # type: Any def __init__(self, wsgi_iterator, check_start_response): ... def __iter__(self): ... def __next__(self): ... diff --git a/stdlib/3/xml/etree/ElementInclude.pyi b/stdlib/3/xml/etree/ElementInclude.pyi index 11198ceeb647..ef1a5916ea96 100644 --- a/stdlib/3/xml/etree/ElementInclude.pyi +++ b/stdlib/3/xml/etree/ElementInclude.pyi @@ -5,9 +5,9 @@ from typing import Union, Optional, Callable from .ElementTree import _ElementInterface -XINCLUDE = ... # type: str -XINCLUDE_INCLUDE = ... # type: str -XINCLUDE_FALLBACK = ... # type: str +XINCLUDE = ... # type: str +XINCLUDE_INCLUDE = ... # type: str +XINCLUDE_FALLBACK = ... # type: str class FatalIncludeError(SyntaxError): ... diff --git a/stdlib/3/xml/etree/ElementPath.pyi b/stdlib/3/xml/etree/ElementPath.pyi index e0cb256ce2a2..db0aa36edc5d 100644 --- a/stdlib/3/xml/etree/ElementPath.pyi +++ b/stdlib/3/xml/etree/ElementPath.pyi @@ -5,7 +5,7 @@ from typing import Tuple, List, Union, TypeVar, Callable, Optional from .ElementTree import _ElementInterface -xpath_tokenizer_re = ... # type: Callable[..., List[Tuple[str, str]]] +xpath_tokenizer_re = ... # type: Callable[..., List[Tuple[str, str]]] class xpath_descendant_or_self: ... diff --git a/stdlib/3/xml/etree/ElementTree.pyi b/stdlib/3/xml/etree/ElementTree.pyi index e4be89033dfd..6f268189465d 100644 --- a/stdlib/3/xml/etree/ElementTree.pyi +++ b/stdlib/3/xml/etree/ElementTree.pyi @@ -5,17 +5,17 @@ from typing import Any, AnyStr, Union, IO, Callable, Dict, List, Tuple, Sequence, Iterator, TypeVar, Optional, KeysView, ItemsView, Generator import io -VERSION = ... # type: str +VERSION = ... # type: str _Ss = TypeVar('_Ss', str, bytes) _T = TypeVar('_T') _str_or_bytes = Union[str, bytes] class _ElementInterface(Sequence['_ElementInterface']): - tag = ... # type: _str_or_bytes - attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] - text = ... # type: Optional[_str_or_bytes] - tail = ... # type: Optional[_str_or_bytes] + tag = ... # type: _str_or_bytes + attrib = ... # type: Dict[_str_or_bytes, _str_or_bytes] + text = ... # type: Optional[_str_or_bytes] + tail = ... # type: Optional[_str_or_bytes] def __init__(self, tag: Union[AnyStr, Callable[..., '_ElementInterface']], attrib: Dict[AnyStr, AnyStr]) -> None: ... def makeelement(self, tag: _Ss, attrib: Dict[_Ss, _Ss]) -> '_ElementInterface': ... def __len__(self) -> int: ... @@ -44,10 +44,10 @@ def SubElement(parent: _ElementInterface, tag: AnyStr, attrib: Dict[AnyStr, AnyS def Comment(text: _str_or_bytes=...) -> _ElementInterface: ... def ProcessingInstruction(target: str, text: str=...) -> _ElementInterface: ... -PI = ... # type: Callable[..., _ElementInterface] +PI = ... # type: Callable[..., _ElementInterface] class QName: - text = ... # type: str + text = ... # type: str def __init__(self, text_or_uri: str, tag: str=...) -> None: ... @@ -78,7 +78,7 @@ def XML(text: AnyStr) -> _ElementInterface: ... def XMLID(text: AnyStr) -> Tuple[_ElementInterface, Dict[str, _ElementInterface]]: ... # TODO-improve this type -fromstring = ... # type: Callable[..., _ElementInterface] +fromstring = ... # type: Callable[..., _ElementInterface] def tostring(element: _ElementInterface, encoding: str=...) -> AnyStr: ... @@ -91,7 +91,7 @@ class TreeBuilder: class XMLTreeBuilder: # TODO-what is entity used for??? - entity = ... # type: Any + entity = ... # type: Any def __init__(self, html: int=..., target: TreeBuilder=...) -> None: ... def doctype(self, name: str, pubid: str, system: str) -> None: ... def close(self) -> Any: ... # TODO-most of the time, this will be Element, but it can be anything target.close() returns diff --git a/stdlib/3/zlib.pyi b/stdlib/3/zlib.pyi index 6dda282e4fa4..39db8439fdcc 100644 --- a/stdlib/3/zlib.pyi +++ b/stdlib/3/zlib.pyi @@ -1,21 +1,21 @@ # Stubs for zlib -DEFLATED = ... # type: int -DEF_BUF_SIZE = ... # type: int -DEF_MEM_LEVEL = ... # type: int -MAX_WBITS = ... # type: int -ZLIB_RUNTIME_VERSION = ... # type: str -ZLIB_VERSION = ... # type: str -Z_BEST_COMPRESSION = ... # type: int -Z_BEST_SPEED = ... # type: int -Z_DEFAULT_COMPRESSION = ... # type: int -Z_DEFAULT_STRATEGY = ... # type: int -Z_FILTERED = ... # type: int -Z_FINISH = ... # type: int -Z_FULL_FLUSH = ... # type: int -Z_HUFFMAN_ONLY = ... # type: int -Z_NO_FLUSH = ... # type: int -Z_SYNC_FLUSH = ... # type: int +DEFLATED = ... # type: int +DEF_BUF_SIZE = ... # type: int +DEF_MEM_LEVEL = ... # type: int +MAX_WBITS = ... # type: int +ZLIB_RUNTIME_VERSION = ... # type: str +ZLIB_VERSION = ... # type: str +Z_BEST_COMPRESSION = ... # type: int +Z_BEST_SPEED = ... # type: int +Z_DEFAULT_COMPRESSION = ... # type: int +Z_DEFAULT_STRATEGY = ... # type: int +Z_FILTERED = ... # type: int +Z_FINISH = ... # type: int +Z_FULL_FLUSH = ... # type: int +Z_HUFFMAN_ONLY = ... # type: int +Z_NO_FLUSH = ... # type: int +Z_SYNC_FLUSH = ... # type: int class error(Exception): ... diff --git a/third_party/2/boto/__init__.pyi b/third_party/2/boto/__init__.pyi index bb0631f33777..329757c594d4 100644 --- a/third_party/2/boto/__init__.pyi +++ b/third_party/2/boto/__init__.pyi @@ -5,22 +5,22 @@ from typing import Any import logging -Version = ... # type: Any -UserAgent = ... # type: Any -config = ... # type: Any -BUCKET_NAME_RE = ... # type: Any -TOO_LONG_DNS_NAME_COMP = ... # type: Any -GENERATION_RE = ... # type: Any -VERSION_RE = ... # type: Any -ENDPOINTS_PATH = ... # type: Any +Version = ... # type: Any +UserAgent = ... # type: Any +config = ... # type: Any +BUCKET_NAME_RE = ... # type: Any +TOO_LONG_DNS_NAME_COMP = ... # type: Any +GENERATION_RE = ... # type: Any +VERSION_RE = ... # type: Any +ENDPOINTS_PATH = ... # type: Any def init_logging(): ... class NullHandler(logging.Handler): def emit(self, record): ... -log = ... # type: Any -perflog = ... # type: Any +log = ... # type: Any +perflog = ... # type: Any def set_file_logger(name, filepath, level=..., format_string=...): ... def set_stream_logger(name, level=..., format_string=...): ... diff --git a/third_party/2/boto/connection.pyi b/third_party/2/boto/connection.pyi index 871cb5727064..189f12e5f232 100644 --- a/third_party/2/boto/connection.pyi +++ b/third_party/2/boto/connection.pyi @@ -4,13 +4,13 @@ from typing import Any -HAVE_HTTPS_CONNECTION = ... # type: Any -ON_APP_ENGINE = ... # type: Any -PORTS_BY_SECURITY = ... # type: Any -DEFAULT_CA_CERTS_FILE = ... # type: Any +HAVE_HTTPS_CONNECTION = ... # type: Any +ON_APP_ENGINE = ... # type: Any +PORTS_BY_SECURITY = ... # type: Any +DEFAULT_CA_CERTS_FILE = ... # type: Any class HostConnectionPool: - queue = ... # type: Any + queue = ... # type: Any def __init__(self) -> None: ... def size(self): ... def put(self, conn): ... @@ -18,11 +18,11 @@ class HostConnectionPool: def clean(self): ... class ConnectionPool: - CLEAN_INTERVAL = ... # type: Any - STALE_DURATION = ... # type: Any - host_to_pool = ... # type: Any - last_clean_time = ... # type: Any - mutex = ... # type: Any + CLEAN_INTERVAL = ... # type: Any + STALE_DURATION = ... # type: Any + host_to_pool = ... # type: Any + last_clean_time = ... # type: Any + mutex = ... # type: Any def __init__(self) -> None: ... def size(self): ... def get_http_connection(self, host, port, is_secure): ... @@ -30,56 +30,56 @@ class ConnectionPool: def clean(self): ... class HTTPRequest: - method = ... # type: Any - protocol = ... # type: Any - host = ... # type: Any - port = ... # type: Any - path = ... # type: Any - auth_path = ... # type: Any - params = ... # type: Any - headers = ... # type: Any - body = ... # type: Any + method = ... # type: Any + protocol = ... # type: Any + host = ... # type: Any + port = ... # type: Any + path = ... # type: Any + auth_path = ... # type: Any + params = ... # type: Any + headers = ... # type: Any + body = ... # type: Any def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ... def authorize(self, connection, **kwargs): ... class AWSAuthConnection: - suppress_consec_slashes = ... # type: Any - num_retries = ... # type: Any - is_secure = ... # type: Any - https_validate_certificates = ... # type: Any - ca_certificates_file = ... # type: Any - port = ... # type: Any - http_exceptions = ... # type: Any - http_unretryable_exceptions = ... # type: Any - socket_exception_values = ... # type: Any - https_connection_factory = ... # type: Any - protocol = ... # type: Any - host = ... # type: Any - path = ... # type: Any - debug = ... # type: Any - host_header = ... # type: Any - http_connection_kwargs = ... # type: Any - provider = ... # type: Any - auth_service_name = ... # type: Any - request_hook = ... # type: Any + suppress_consec_slashes = ... # type: Any + num_retries = ... # type: Any + is_secure = ... # type: Any + https_validate_certificates = ... # type: Any + ca_certificates_file = ... # type: Any + port = ... # type: Any + http_exceptions = ... # type: Any + http_unretryable_exceptions = ... # type: Any + socket_exception_values = ... # type: Any + https_connection_factory = ... # type: Any + protocol = ... # type: Any + host = ... # type: Any + path = ... # type: Any + debug = ... # type: Any + host_header = ... # type: Any + http_connection_kwargs = ... # type: Any + provider = ... # type: Any + auth_service_name = ... # type: Any + request_hook = ... # type: Any def __init__(self, host, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., path=..., provider=..., security_token=..., suppress_consec_slashes=..., validate_certs=..., profile_name=...) -> None: ... - auth_region_name = ... # type: Any + auth_region_name = ... # type: Any def connection(self): ... def aws_access_key_id(self): ... - gs_access_key_id = ... # type: Any - access_key = ... # type: Any + gs_access_key_id = ... # type: Any + access_key = ... # type: Any def aws_secret_access_key(self): ... - gs_secret_access_key = ... # type: Any - secret_key = ... # type: Any + gs_secret_access_key = ... # type: Any + secret_key = ... # type: Any def profile_name(self): ... def get_path(self, path=...): ... def server_name(self, port=...): ... - proxy = ... # type: Any - proxy_port = ... # type: Any - proxy_user = ... # type: Any - proxy_pass = ... # type: Any - no_proxy = ... # type: Any - use_proxy = ... # type: Any + proxy = ... # type: Any + proxy_port = ... # type: Any + proxy_user = ... # type: Any + proxy_pass = ... # type: Any + no_proxy = ... # type: Any + use_proxy = ... # type: Any def handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass): ... def get_http_connection(self, host, port, is_secure): ... def skip_proxy(self, host): ... @@ -96,8 +96,8 @@ class AWSAuthConnection: def close(self): ... class AWSQueryConnection(AWSAuthConnection): - APIVersion = ... # type: Any - ResponseError = ... # type: Any + APIVersion = ... # type: Any + ResponseError = ... # type: Any def __init__(self, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., host=..., debug=..., https_connection_factory=..., path=..., security_token=..., validate_certs=..., profile_name=..., provider=...) -> None: ... def get_utf8_value(self, value): ... def make_request(self, action, params=..., path=..., verb=...): ... diff --git a/third_party/2/boto/ec2/__init__.pyi b/third_party/2/boto/ec2/__init__.pyi index 67908a5337fd..64fa781f36e3 100644 --- a/third_party/2/boto/ec2/__init__.pyi +++ b/third_party/2/boto/ec2/__init__.pyi @@ -4,7 +4,7 @@ from typing import Any -RegionData = ... # type: Any +RegionData = ... # type: Any def regions(**kw_params): ... def connect_to_region(region_name, **kw_params): ... diff --git a/third_party/2/boto/ec2/elb/__init__.pyi b/third_party/2/boto/ec2/elb/__init__.pyi index fcad2fa548dc..82e17fa1c17f 100644 --- a/third_party/2/boto/ec2/elb/__init__.pyi +++ b/third_party/2/boto/ec2/elb/__init__.pyi @@ -5,16 +5,16 @@ from typing import Any from boto.connection import AWSQueryConnection -RegionData = ... # type: Any +RegionData = ... # type: Any def regions(): ... def connect_to_region(region_name, **kw_params): ... class ELBConnection(AWSQueryConnection): - APIVersion = ... # type: Any - DefaultRegionName = ... # type: Any - DefaultRegionEndpoint = ... # type: Any - region = ... # type: Any + APIVersion = ... # type: Any + DefaultRegionName = ... # type: Any + DefaultRegionEndpoint = ... # type: Any + region = ... # type: Any def __init__(self, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., region=..., path=..., security_token=..., validate_certs=..., profile_name=...) -> None: ... def build_list_params(self, params, items, label): ... def get_all_load_balancers(self, load_balancer_names=..., marker=...): ... diff --git a/third_party/2/croniter.pyi b/third_party/2/croniter.pyi index 01f344b3d0c8..2495495dcc54 100644 --- a/third_party/2/croniter.pyi +++ b/third_party/2/croniter.pyi @@ -5,23 +5,23 @@ from typing import Any class croniter: - MONTHS_IN_YEAR = ... # type: Any - RANGES = ... # type: Any - DAYS = ... # type: Any - ALPHACONV = ... # type: Any - LOWMAP = ... # type: Any - bad_length = ... # type: Any - tzinfo = ... # type: Any - cur = ... # type: Any - exprs = ... # type: Any - expanded = ... # type: Any + MONTHS_IN_YEAR = ... # type: Any + RANGES = ... # type: Any + DAYS = ... # type: Any + ALPHACONV = ... # type: Any + LOWMAP = ... # type: Any + bad_length = ... # type: Any + tzinfo = ... # type: Any + cur = ... # type: Any + exprs = ... # type: Any + expanded = ... # type: Any def __init__(self, expr_format, start_time=..., ret_type=...) -> None: ... def get_next(self, ret_type=...): ... def get_prev(self, ret_type=...): ... def get_current(self, ret_type=...): ... def __iter__(self): ... - __next__ = ... # type: Any + __next__ = ... # type: Any def all_next(self, ret_type=...): ... def all_prev(self, ret_type=...): ... - iter = ... # type: Any + iter = ... # type: Any def is_leap(self, year): ... diff --git a/third_party/2/dateutil/parser.pyi b/third_party/2/dateutil/parser.pyi index 4962b8ac5376..d2927e87b25f 100644 --- a/third_party/2/dateutil/parser.pyi +++ b/third_party/2/dateutil/parser.pyi @@ -5,14 +5,14 @@ __all__ = ... # type: List[str] class parserinfo(object): - JUMP = ... # type: List[str] - WEEKDAYS = ... # type: List[Tuple[str, str]] - MONTHS = ... # type: List[Tuple[str, str]] - HMS = ... # type: List[Tuple[str, str, str]] - AMPM = ... # type: List[Tuple[str, str]] - UTCZONE = ... # type: List[str] - PERTAIN = ... # type: List[str] - TZOFFSET = ... # type: Dict[str, int] + JUMP = ... # type: List[str] + WEEKDAYS = ... # type: List[Tuple[str, str]] + MONTHS = ... # type: List[Tuple[str, str]] + HMS = ... # type: List[Tuple[str, str, str]] + AMPM = ... # type: List[Tuple[str, str]] + UTCZONE = ... # type: List[str] + PERTAIN = ... # type: List[str] + TZOFFSET = ... # type: Dict[str, int] def __init__(self, dayfirst: bool=..., yearfirst: bool=...) -> None: ... def jump(self, name: unicode) -> bool: ... @@ -33,7 +33,7 @@ class parser(object): ignoretz: bool = ..., tzinfos: Dict[Union[str, unicode], tzinfo] = None, **kwargs: Any) -> datetime: ... -DEFAULTPARSER = ... # type: parser +DEFAULTPARSER = ... # type: parser def parse(timestr: Union[str, unicode, IO[unicode]], parserinfo: parserinfo = None, **kwargs: Any) -> datetime: ... diff --git a/third_party/2/dateutil/relativedelta.pyi b/third_party/2/dateutil/relativedelta.pyi index b37ef5dea7ac..3a99eaf40fef 100644 --- a/third_party/2/dateutil/relativedelta.pyi +++ b/third_party/2/dateutil/relativedelta.pyi @@ -13,16 +13,16 @@ class weekday(object): def __repr__(self) -> str: ... - weekday = ... # type: int - n = ... # type: int - -MO = ... # type: weekday -TU = ... # type: weekday -WE = ... # type: weekday -TH = ... # type: weekday -FR = ... # type: weekday -SA = ... # type: weekday -SU = ... # type: weekday + weekday = ... # type: int + n = ... # type: int + +MO = ... # type: weekday +TU = ... # type: weekday +WE = ... # type: weekday +TH = ... # type: weekday +FR = ... # type: weekday +SA = ... # type: weekday +SU = ... # type: weekday class relativedelta(object): diff --git a/third_party/2/fb303/FacebookService.pyi b/third_party/2/fb303/FacebookService.pyi index 0394fdb393c5..09c6ef18b931 100644 --- a/third_party/2/fb303/FacebookService.pyi +++ b/third_party/2/fb303/FacebookService.pyi @@ -5,7 +5,7 @@ from typing import Any from thrift.Thrift import TProcessor -fastbinary = ... # type: Any +fastbinary = ... # type: Any class Iface: def getName(self): ... @@ -80,7 +80,7 @@ class Processor(Iface, TProcessor): def process_shutdown(self, seqid, iprot, oprot): ... class getName_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -88,8 +88,8 @@ class getName_args: def __ne__(self, other): ... class getName_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -98,7 +98,7 @@ class getName_result: def __ne__(self, other): ... class getVersion_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -106,8 +106,8 @@ class getVersion_args: def __ne__(self, other): ... class getVersion_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -116,7 +116,7 @@ class getVersion_result: def __ne__(self, other): ... class getStatus_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -124,8 +124,8 @@ class getStatus_args: def __ne__(self, other): ... class getStatus_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -134,7 +134,7 @@ class getStatus_result: def __ne__(self, other): ... class getStatusDetails_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -142,8 +142,8 @@ class getStatusDetails_args: def __ne__(self, other): ... class getStatusDetails_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -152,7 +152,7 @@ class getStatusDetails_result: def __ne__(self, other): ... class getCounters_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -160,8 +160,8 @@ class getCounters_args: def __ne__(self, other): ... class getCounters_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -170,8 +170,8 @@ class getCounters_result: def __ne__(self, other): ... class getCounter_args: - thrift_spec = ... # type: Any - key = ... # type: Any + thrift_spec = ... # type: Any + key = ... # type: Any def __init__(self, key=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -180,8 +180,8 @@ class getCounter_args: def __ne__(self, other): ... class getCounter_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -190,9 +190,9 @@ class getCounter_result: def __ne__(self, other): ... class setOption_args: - thrift_spec = ... # type: Any - key = ... # type: Any - value = ... # type: Any + thrift_spec = ... # type: Any + key = ... # type: Any + value = ... # type: Any def __init__(self, key=..., value=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -201,7 +201,7 @@ class setOption_args: def __ne__(self, other): ... class setOption_result: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -209,8 +209,8 @@ class setOption_result: def __ne__(self, other): ... class getOption_args: - thrift_spec = ... # type: Any - key = ... # type: Any + thrift_spec = ... # type: Any + key = ... # type: Any def __init__(self, key=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -219,8 +219,8 @@ class getOption_args: def __ne__(self, other): ... class getOption_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -229,7 +229,7 @@ class getOption_result: def __ne__(self, other): ... class getOptions_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -237,8 +237,8 @@ class getOptions_args: def __ne__(self, other): ... class getOptions_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -247,8 +247,8 @@ class getOptions_result: def __ne__(self, other): ... class getCpuProfile_args: - thrift_spec = ... # type: Any - profileDurationInSec = ... # type: Any + thrift_spec = ... # type: Any + profileDurationInSec = ... # type: Any def __init__(self, profileDurationInSec=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -257,8 +257,8 @@ class getCpuProfile_args: def __ne__(self, other): ... class getCpuProfile_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -267,7 +267,7 @@ class getCpuProfile_result: def __ne__(self, other): ... class aliveSince_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -275,8 +275,8 @@ class aliveSince_args: def __ne__(self, other): ... class aliveSince_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -285,7 +285,7 @@ class aliveSince_result: def __ne__(self, other): ... class reinitialize_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -293,7 +293,7 @@ class reinitialize_args: def __ne__(self, other): ... class shutdown_args: - thrift_spec = ... # type: Any + thrift_spec = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... diff --git a/third_party/2/google/protobuf/descriptor.pyi b/third_party/2/google/protobuf/descriptor.pyi index f75d11cd3f74..82f97d360320 100644 --- a/third_party/2/google/protobuf/descriptor.pyi +++ b/third_party/2/google/protobuf/descriptor.pyi @@ -11,151 +11,151 @@ class DescriptorMetaclass(type): def __instancecheck__(cls, obj): ... class DescriptorBase: - __metaclass__ = ... # type: Any - has_options = ... # type: Any + __metaclass__ = ... # type: Any + has_options = ... # type: Any def __init__(self, options, options_class_name) -> None: ... def GetOptions(self): ... class _NestedDescriptorBase(DescriptorBase): - name = ... # type: Any - full_name = ... # type: Any - file = ... # type: Any - containing_type = ... # type: Any + name = ... # type: Any + full_name = ... # type: Any + file = ... # type: Any + containing_type = ... # type: Any def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=..., serialized_end=...) -> None: ... def GetTopLevelContainingType(self): ... def CopyToProto(self, proto): ... class Descriptor(_NestedDescriptorBase): def __new__(cls, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...): ... - fields = ... # type: Any - fields_by_number = ... # type: Any - fields_by_name = ... # type: Any - nested_types = ... # type: Any - nested_types_by_name = ... # type: Any - enum_types = ... # type: Any - enum_types_by_name = ... # type: Any - enum_values_by_name = ... # type: Any - extensions = ... # type: Any - extensions_by_name = ... # type: Any - is_extendable = ... # type: Any - extension_ranges = ... # type: Any - oneofs = ... # type: Any - oneofs_by_name = ... # type: Any - syntax = ... # type: Any + fields = ... # type: Any + fields_by_number = ... # type: Any + fields_by_name = ... # type: Any + nested_types = ... # type: Any + nested_types_by_name = ... # type: Any + enum_types = ... # type: Any + enum_types_by_name = ... # type: Any + enum_values_by_name = ... # type: Any + extensions = ... # type: Any + extensions_by_name = ... # type: Any + is_extendable = ... # type: Any + extension_ranges = ... # type: Any + oneofs = ... # type: Any + oneofs_by_name = ... # type: Any + syntax = ... # type: Any def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...) -> None: ... def EnumValueName(self, enum, value): ... def CopyToProto(self, proto): ... class FieldDescriptor(DescriptorBase): - TYPE_DOUBLE = ... # type: Any - TYPE_FLOAT = ... # type: Any - TYPE_INT64 = ... # type: Any - TYPE_UINT64 = ... # type: Any - TYPE_INT32 = ... # type: Any - TYPE_FIXED64 = ... # type: Any - TYPE_FIXED32 = ... # type: Any - TYPE_BOOL = ... # type: Any - TYPE_STRING = ... # type: Any - TYPE_GROUP = ... # type: Any - TYPE_MESSAGE = ... # type: Any - TYPE_BYTES = ... # type: Any - TYPE_UINT32 = ... # type: Any - TYPE_ENUM = ... # type: Any - TYPE_SFIXED32 = ... # type: Any - TYPE_SFIXED64 = ... # type: Any - TYPE_SINT32 = ... # type: Any - TYPE_SINT64 = ... # type: Any - MAX_TYPE = ... # type: Any - CPPTYPE_INT32 = ... # type: Any - CPPTYPE_INT64 = ... # type: Any - CPPTYPE_UINT32 = ... # type: Any - CPPTYPE_UINT64 = ... # type: Any - CPPTYPE_DOUBLE = ... # type: Any - CPPTYPE_FLOAT = ... # type: Any - CPPTYPE_BOOL = ... # type: Any - CPPTYPE_ENUM = ... # type: Any - CPPTYPE_STRING = ... # type: Any - CPPTYPE_MESSAGE = ... # type: Any - MAX_CPPTYPE = ... # type: Any - LABEL_OPTIONAL = ... # type: Any - LABEL_REQUIRED = ... # type: Any - LABEL_REPEATED = ... # type: Any - MAX_LABEL = ... # type: Any - MAX_FIELD_NUMBER = ... # type: Any - FIRST_RESERVED_FIELD_NUMBER = ... # type: Any - LAST_RESERVED_FIELD_NUMBER = ... # type: Any + TYPE_DOUBLE = ... # type: Any + TYPE_FLOAT = ... # type: Any + TYPE_INT64 = ... # type: Any + TYPE_UINT64 = ... # type: Any + TYPE_INT32 = ... # type: Any + TYPE_FIXED64 = ... # type: Any + TYPE_FIXED32 = ... # type: Any + TYPE_BOOL = ... # type: Any + TYPE_STRING = ... # type: Any + TYPE_GROUP = ... # type: Any + TYPE_MESSAGE = ... # type: Any + TYPE_BYTES = ... # type: Any + TYPE_UINT32 = ... # type: Any + TYPE_ENUM = ... # type: Any + TYPE_SFIXED32 = ... # type: Any + TYPE_SFIXED64 = ... # type: Any + TYPE_SINT32 = ... # type: Any + TYPE_SINT64 = ... # type: Any + MAX_TYPE = ... # type: Any + CPPTYPE_INT32 = ... # type: Any + CPPTYPE_INT64 = ... # type: Any + CPPTYPE_UINT32 = ... # type: Any + CPPTYPE_UINT64 = ... # type: Any + CPPTYPE_DOUBLE = ... # type: Any + CPPTYPE_FLOAT = ... # type: Any + CPPTYPE_BOOL = ... # type: Any + CPPTYPE_ENUM = ... # type: Any + CPPTYPE_STRING = ... # type: Any + CPPTYPE_MESSAGE = ... # type: Any + MAX_CPPTYPE = ... # type: Any + LABEL_OPTIONAL = ... # type: Any + LABEL_REQUIRED = ... # type: Any + LABEL_REPEATED = ... # type: Any + MAX_LABEL = ... # type: Any + MAX_FIELD_NUMBER = ... # type: Any + FIRST_RESERVED_FIELD_NUMBER = ... # type: Any + LAST_RESERVED_FIELD_NUMBER = ... # type: Any def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., has_default_value=..., containing_oneof=...): ... - name = ... # type: Any - full_name = ... # type: Any - index = ... # type: Any - number = ... # type: Any - type = ... # type: Any - cpp_type = ... # type: Any - label = ... # type: Any - has_default_value = ... # type: Any - default_value = ... # type: Any - containing_type = ... # type: Any - message_type = ... # type: Any - enum_type = ... # type: Any - is_extension = ... # type: Any - extension_scope = ... # type: Any - containing_oneof = ... # type: Any + name = ... # type: Any + full_name = ... # type: Any + index = ... # type: Any + number = ... # type: Any + type = ... # type: Any + cpp_type = ... # type: Any + label = ... # type: Any + has_default_value = ... # type: Any + default_value = ... # type: Any + containing_type = ... # type: Any + message_type = ... # type: Any + enum_type = ... # type: Any + is_extension = ... # type: Any + extension_scope = ... # type: Any + containing_oneof = ... # type: Any def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., has_default_value=..., containing_oneof=...) -> None: ... @staticmethod def ProtoTypeToCppProtoType(proto_type): ... class EnumDescriptor(_NestedDescriptorBase): def __new__(cls, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...): ... - values = ... # type: Any - values_by_name = ... # type: Any - values_by_number = ... # type: Any + values = ... # type: Any + values_by_name = ... # type: Any + values_by_number = ... # type: Any def __init__(self, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...) -> None: ... def CopyToProto(self, proto): ... class EnumValueDescriptor(DescriptorBase): def __new__(cls, name, index, number, type=..., options=...): ... - name = ... # type: Any - index = ... # type: Any - number = ... # type: Any - type = ... # type: Any + name = ... # type: Any + index = ... # type: Any + number = ... # type: Any + type = ... # type: Any def __init__(self, name, index, number, type=..., options=...) -> None: ... class OneofDescriptor: def __new__(cls, name, full_name, index, containing_type, fields): ... - name = ... # type: Any - full_name = ... # type: Any - index = ... # type: Any - containing_type = ... # type: Any - fields = ... # type: Any + name = ... # type: Any + full_name = ... # type: Any + index = ... # type: Any + containing_type = ... # type: Any + fields = ... # type: Any def __init__(self, name, full_name, index, containing_type, fields) -> None: ... class ServiceDescriptor(_NestedDescriptorBase): - index = ... # type: Any - methods = ... # type: Any + index = ... # type: Any + methods = ... # type: Any def __init__(self, name, full_name, index, methods, options=..., file=..., serialized_start=..., serialized_end=...) -> None: ... def FindMethodByName(self, name): ... def CopyToProto(self, proto): ... class MethodDescriptor(DescriptorBase): - name = ... # type: Any - full_name = ... # type: Any - index = ... # type: Any - containing_service = ... # type: Any - input_type = ... # type: Any - output_type = ... # type: Any + name = ... # type: Any + full_name = ... # type: Any + index = ... # type: Any + containing_service = ... # type: Any + input_type = ... # type: Any + output_type = ... # type: Any def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=...) -> None: ... class FileDescriptor(DescriptorBase): def __new__(cls, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...): ... - _options = ... # type: Any - message_types_by_name = ... # type: Any - name = ... # type: Any - package = ... # type: Any - syntax = ... # type: Any - serialized_pb = ... # type: Any - enum_types_by_name = ... # type: Any - extensions_by_name = ... # type: Any - dependencies = ... # type: Any + _options = ... # type: Any + message_types_by_name = ... # type: Any + name = ... # type: Any + package = ... # type: Any + syntax = ... # type: Any + serialized_pb = ... # type: Any + enum_types_by_name = ... # type: Any + extensions_by_name = ... # type: Any + dependencies = ... # type: Any def __init__(self, name, package, options=..., serialized_pb=..., dependencies=..., syntax=...) -> None: ... def CopyToProto(self, proto): ... diff --git a/third_party/2/google/protobuf/internal/decoder.pyi b/third_party/2/google/protobuf/internal/decoder.pyi index b6b990f31a1c..e7737eeb2f84 100644 --- a/third_party/2/google/protobuf/internal/decoder.pyi +++ b/third_party/2/google/protobuf/internal/decoder.pyi @@ -7,28 +7,28 @@ from typing import Any def ReadTag(buffer, pos): ... def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): ... -Int32Decoder = ... # type: Any -Int64Decoder = ... # type: Any -UInt32Decoder = ... # type: Any -UInt64Decoder = ... # type: Any -SInt32Decoder = ... # type: Any -SInt64Decoder = ... # type: Any -Fixed32Decoder = ... # type: Any -Fixed64Decoder = ... # type: Any -SFixed32Decoder = ... # type: Any -SFixed64Decoder = ... # type: Any -FloatDecoder = ... # type: Any -DoubleDecoder = ... # type: Any -BoolDecoder = ... # type: Any +Int32Decoder = ... # type: Any +Int64Decoder = ... # type: Any +UInt32Decoder = ... # type: Any +UInt64Decoder = ... # type: Any +SInt32Decoder = ... # type: Any +SInt64Decoder = ... # type: Any +Fixed32Decoder = ... # type: Any +Fixed64Decoder = ... # type: Any +SFixed32Decoder = ... # type: Any +SFixed64Decoder = ... # type: Any +FloatDecoder = ... # type: Any +DoubleDecoder = ... # type: Any +BoolDecoder = ... # type: Any def StringDecoder(field_number, is_repeated, is_packed, key, new_default): ... def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): ... def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): ... def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): ... -MESSAGE_SET_ITEM_TAG = ... # type: Any +MESSAGE_SET_ITEM_TAG = ... # type: Any def MessageSetItemDecoder(extensions_by_number): ... def MapDecoder(field_descriptor, new_default, is_message_map): ... -SkipField = ... # type: Any +SkipField = ... # type: Any diff --git a/third_party/2/google/protobuf/internal/encoder.pyi b/third_party/2/google/protobuf/internal/encoder.pyi index b04534d0c560..c3ab6ff23a0c 100644 --- a/third_party/2/google/protobuf/internal/encoder.pyi +++ b/third_party/2/google/protobuf/internal/encoder.pyi @@ -4,12 +4,12 @@ from typing import Any -Int32Sizer = ... # type: Any -UInt32Sizer = ... # type: Any -SInt32Sizer = ... # type: Any -Fixed32Sizer = ... # type: Any -Fixed64Sizer = ... # type: Any -BoolSizer = ... # type: Any +Int32Sizer = ... # type: Any +UInt32Sizer = ... # type: Any +SInt32Sizer = ... # type: Any +Fixed32Sizer = ... # type: Any +Fixed64Sizer = ... # type: Any +BoolSizer = ... # type: Any def StringSizer(field_number, is_repeated, is_packed): ... def BytesSizer(field_number, is_repeated, is_packed): ... @@ -19,15 +19,15 @@ def MessageSetItemSizer(field_number): ... def MapSizer(field_descriptor): ... def TagBytes(field_number, wire_type): ... -Int32Encoder = ... # type: Any -UInt32Encoder = ... # type: Any -SInt32Encoder = ... # type: Any -Fixed32Encoder = ... # type: Any -Fixed64Encoder = ... # type: Any -SFixed32Encoder = ... # type: Any -SFixed64Encoder = ... # type: Any -FloatEncoder = ... # type: Any -DoubleEncoder = ... # type: Any +Int32Encoder = ... # type: Any +UInt32Encoder = ... # type: Any +SInt32Encoder = ... # type: Any +Fixed32Encoder = ... # type: Any +Fixed64Encoder = ... # type: Any +SFixed32Encoder = ... # type: Any +SFixed64Encoder = ... # type: Any +FloatEncoder = ... # type: Any +DoubleEncoder = ... # type: Any def BoolEncoder(field_number, is_repeated, is_packed): ... def StringEncoder(field_number, is_repeated, is_packed): ... diff --git a/third_party/2/google/protobuf/internal/wire_format.pyi b/third_party/2/google/protobuf/internal/wire_format.pyi index e9fbef321810..19b7c3f3bb4b 100644 --- a/third_party/2/google/protobuf/internal/wire_format.pyi +++ b/third_party/2/google/protobuf/internal/wire_format.pyi @@ -4,24 +4,24 @@ from typing import Any -TAG_TYPE_BITS = ... # type: Any -TAG_TYPE_MASK = ... # type: Any -WIRETYPE_VARINT = ... # type: Any -WIRETYPE_FIXED64 = ... # type: Any -WIRETYPE_LENGTH_DELIMITED = ... # type: Any -WIRETYPE_START_GROUP = ... # type: Any -WIRETYPE_END_GROUP = ... # type: Any -WIRETYPE_FIXED32 = ... # type: Any -INT32_MAX = ... # type: Any -INT32_MIN = ... # type: Any -UINT32_MAX = ... # type: Any -INT64_MAX = ... # type: Any -INT64_MIN = ... # type: Any -UINT64_MAX = ... # type: Any -FORMAT_UINT32_LITTLE_ENDIAN = ... # type: Any -FORMAT_UINT64_LITTLE_ENDIAN = ... # type: Any -FORMAT_FLOAT_LITTLE_ENDIAN = ... # type: Any -FORMAT_DOUBLE_LITTLE_ENDIAN = ... # type: Any +TAG_TYPE_BITS = ... # type: Any +TAG_TYPE_MASK = ... # type: Any +WIRETYPE_VARINT = ... # type: Any +WIRETYPE_FIXED64 = ... # type: Any +WIRETYPE_LENGTH_DELIMITED = ... # type: Any +WIRETYPE_START_GROUP = ... # type: Any +WIRETYPE_END_GROUP = ... # type: Any +WIRETYPE_FIXED32 = ... # type: Any +INT32_MAX = ... # type: Any +INT32_MIN = ... # type: Any +UINT32_MAX = ... # type: Any +INT64_MAX = ... # type: Any +INT64_MIN = ... # type: Any +UINT64_MAX = ... # type: Any +FORMAT_UINT32_LITTLE_ENDIAN = ... # type: Any +FORMAT_UINT64_LITTLE_ENDIAN = ... # type: Any +FORMAT_FLOAT_LITTLE_ENDIAN = ... # type: Any +FORMAT_DOUBLE_LITTLE_ENDIAN = ... # type: Any def PackTag(field_number, wire_type): ... def UnpackTag(tag): ... @@ -49,6 +49,6 @@ def MessageByteSize(field_number, message): ... def MessageSetItemByteSize(field_number, msg): ... def TagByteSize(field_number): ... -NON_PACKABLE_TYPES = ... # type: Any +NON_PACKABLE_TYPES = ... # type: Any def IsTypePackable(field_type): ... diff --git a/third_party/2/google/protobuf/message.pyi b/third_party/2/google/protobuf/message.pyi index 9b14a7dfd73b..09c771607263 100644 --- a/third_party/2/google/protobuf/message.pyi +++ b/third_party/2/google/protobuf/message.pyi @@ -11,7 +11,7 @@ class DecodeError(Error): ... class EncodeError(Error): ... class Message: - DESCRIPTOR = ... # type: Any + DESCRIPTOR = ... # type: Any def __deepcopy__(self, memo=...): ... def __eq__(self, other_msg): ... def __ne__(self, other_msg): ... @@ -20,7 +20,7 @@ class Message: def Clear(self) -> None: ... def SetInParent(self) -> None: ... def IsInitialized(self) -> bool: ... - def MergeFromString(self, serialized: Any) -> int: ... # TODO: we need to be able to call buffer() on serialized + def MergeFromString(self, serialized: Any) -> int: ... # TODO: we need to be able to call buffer() on serialized def ParseFromString(self, serialized: Any) -> None: ... def SerializeToString(self) -> str: ... def SerializePartialToString(self) -> str: ... diff --git a/third_party/2/kazoo/client.pyi b/third_party/2/kazoo/client.pyi index b1749401c4c1..8db0eda432ba 100644 --- a/third_party/2/kazoo/client.pyi +++ b/third_party/2/kazoo/client.pyi @@ -4,40 +4,40 @@ from typing import Any -string_types = ... # type: Any -bytes_types = ... # type: Any -LOST_STATES = ... # type: Any -ENVI_VERSION = ... # type: Any -ENVI_VERSION_KEY = ... # type: Any -log = ... # type: Any +string_types = ... # type: Any +bytes_types = ... # type: Any +LOST_STATES = ... # type: Any +ENVI_VERSION = ... # type: Any +ENVI_VERSION_KEY = ... # type: Any +log = ... # type: Any class KazooClient: - logger = ... # type: Any - handler = ... # type: Any - auth_data = ... # type: Any - default_acl = ... # type: Any - randomize_hosts = ... # type: Any - hosts = ... # type: Any - chroot = ... # type: Any - state = ... # type: Any - state_listeners = ... # type: Any - read_only = ... # type: Any - retry = ... # type: Any - Barrier = ... # type: Any - Counter = ... # type: Any - DoubleBarrier = ... # type: Any - ChildrenWatch = ... # type: Any - DataWatch = ... # type: Any - Election = ... # type: Any - NonBlockingLease = ... # type: Any - MultiNonBlockingLease = ... # type: Any - Lock = ... # type: Any - Party = ... # type: Any - Queue = ... # type: Any - LockingQueue = ... # type: Any - SetPartitioner = ... # type: Any - Semaphore = ... # type: Any - ShallowParty = ... # type: Any + logger = ... # type: Any + handler = ... # type: Any + auth_data = ... # type: Any + default_acl = ... # type: Any + randomize_hosts = ... # type: Any + hosts = ... # type: Any + chroot = ... # type: Any + state = ... # type: Any + state_listeners = ... # type: Any + read_only = ... # type: Any + retry = ... # type: Any + Barrier = ... # type: Any + Counter = ... # type: Any + DoubleBarrier = ... # type: Any + ChildrenWatch = ... # type: Any + DataWatch = ... # type: Any + Election = ... # type: Any + NonBlockingLease = ... # type: Any + MultiNonBlockingLease = ... # type: Any + Lock = ... # type: Any + Party = ... # type: Any + Queue = ... # type: Any + LockingQueue = ... # type: Any + SetPartitioner = ... # type: Any + Semaphore = ... # type: Any + ShallowParty = ... # type: Any def __init__(self, hosts=..., timeout=..., client_id=..., handler=..., default_acl=..., auth_data=..., read_only=..., randomize_hosts=..., connection_retry=..., command_retry=..., logger=..., **kwargs) -> None: ... @property def client_state(self): ... @@ -83,9 +83,9 @@ class KazooClient: def reconfig_async(self, joining, leaving, new_members, from_config): ... class TransactionRequest: - client = ... # type: Any - operations = ... # type: Any - committed = ... # type: Any + client = ... # type: Any + operations = ... # type: Any + committed = ... # type: Any def __init__(self, client) -> None: ... def create(self, path, value=..., acl=..., ephemeral=..., sequence=...): ... def delete(self, path, version=...): ... diff --git a/third_party/2/kazoo/exceptions.pyi b/third_party/2/kazoo/exceptions.pyi index 1450e8181ce6..ed632ba1cf3f 100644 --- a/third_party/2/kazoo/exceptions.pyi +++ b/third_party/2/kazoo/exceptions.pyi @@ -13,7 +13,7 @@ class ConnectionDropped(KazooException): ... class LockTimeout(KazooException): ... class WriterNotClosedException(KazooException): ... -EXCEPTIONS = ... # type: Any +EXCEPTIONS = ... # type: Any class RolledBackError(ZookeeperError): ... class SystemZookeeperError(ZookeeperError): ... @@ -41,22 +41,22 @@ class SessionMovedError(ZookeeperError): ... class NotReadOnlyCallError(ZookeeperError): ... class ConnectionClosedError(SessionExpiredError): ... -ConnectionLossException = ... # type: Any -MarshallingErrorException = ... # type: Any -SystemErrorException = ... # type: Any -RuntimeInconsistencyException = ... # type: Any -DataInconsistencyException = ... # type: Any -UnimplementedException = ... # type: Any -OperationTimeoutException = ... # type: Any -BadArgumentsException = ... # type: Any -ApiErrorException = ... # type: Any -NoNodeException = ... # type: Any -NoAuthException = ... # type: Any -BadVersionException = ... # type: Any -NoChildrenForEphemeralsException = ... # type: Any -NodeExistsException = ... # type: Any -InvalidACLException = ... # type: Any -AuthFailedException = ... # type: Any -NotEmptyException = ... # type: Any -SessionExpiredException = ... # type: Any -InvalidCallbackException = ... # type: Any +ConnectionLossException = ... # type: Any +MarshallingErrorException = ... # type: Any +SystemErrorException = ... # type: Any +RuntimeInconsistencyException = ... # type: Any +DataInconsistencyException = ... # type: Any +UnimplementedException = ... # type: Any +OperationTimeoutException = ... # type: Any +BadArgumentsException = ... # type: Any +ApiErrorException = ... # type: Any +NoNodeException = ... # type: Any +NoAuthException = ... # type: Any +BadVersionException = ... # type: Any +NoChildrenForEphemeralsException = ... # type: Any +NodeExistsException = ... # type: Any +InvalidACLException = ... # type: Any +AuthFailedException = ... # type: Any +NotEmptyException = ... # type: Any +SessionExpiredException = ... # type: Any +InvalidCallbackException = ... # type: Any diff --git a/third_party/2/kazoo/recipe/watchers.pyi b/third_party/2/kazoo/recipe/watchers.pyi index 554e6eeca5b6..f9421631a6e8 100644 --- a/third_party/2/kazoo/recipe/watchers.pyi +++ b/third_party/2/kazoo/recipe/watchers.pyi @@ -4,7 +4,7 @@ from typing import Any -log = ... # type: Any +log = ... # type: Any class DataWatch: def __init__(self, client, path, func=..., *args, **kwargs) -> None: ... @@ -15,11 +15,11 @@ class ChildrenWatch: def __call__(self, func): ... class PatientChildrenWatch: - client = ... # type: Any - path = ... # type: Any - children = ... # type: Any - time_boundary = ... # type: Any - children_changed = ... # type: Any + client = ... # type: Any + path = ... # type: Any + children = ... # type: Any + time_boundary = ... # type: Any + children_changed = ... # type: Any def __init__(self, client, path, time_boundary=...) -> None: ... - asy = ... # type: Any + asy = ... # type: Any def start(self): ... diff --git a/third_party/2/pycurl.pyi b/third_party/2/pycurl.pyi index 2194fadc9de1..db74efa63170 100644 --- a/third_party/2/pycurl.pyi +++ b/third_party/2/pycurl.pyi @@ -2,16 +2,16 @@ from typing import Any, Tuple, Optional -GLOBAL_SSL = ... # type: int -GLOBAL_WIN32 = ... # type: int -GLOBAL_ALL = ... # type: int -GLOBAL_NOTHING = ... # type: int -GLOBAL_DEFAULT = ... # type: int +GLOBAL_SSL = ... # type: int +GLOBAL_WIN32 = ... # type: int +GLOBAL_ALL = ... # type: int +GLOBAL_NOTHING = ... # type: int +GLOBAL_DEFAULT = ... # type: int def global_init(option: int) -> None: ... def global_cleanup() -> None: ... -version = ... # type: str +version = ... # type: str def version_info() -> Tuple[int, str, int, str, int, str, int, str, tuple, Any, int, Any]: ... @@ -30,7 +30,7 @@ class Curl(object): def errstr(self) -> str: ... # TODO(MichalPokorny): wat? - USERPWD = ... # type: int + USERPWD = ... # type: int class CurlMulti(object): def close(self) -> None: ... @@ -45,37 +45,37 @@ class CurlShare(object): def close(self) -> None: ... def setopt(self, option: int, value: Any) -> Any: ... -CAINFO = ... # type: int -CONNECTTIMEOUT_MS = ... # type: int -CUSTOMREQUEST = ... # type: int -ENCODING = ... # type: int -E_CALL_MULTI_PERFORM = ... # type: int -E_OPERATION_TIMEOUTED = ... # type: int -FOLLOWLOCATION = ... # type: int -HEADERFUNCTION = ... # type: int -HTTPGET = ... # type: int -HTTPHEADER = ... # type: int -HTTP_CODE = ... # type: int -INFILESIE_LARGE = ... # type: int -INFILESIZE_LARGE = ... # type: int -NOBODY = ... # type: int -NOPROGRESS = ... # type: int -NOSIGNAL = ... # type: int -POST = ... # type: int -POSTFIELDS = ... # type: int -POSTFIELDSIZE = ... # type: int -PRIMARY_IP = ... # type: int -PROGRESSFUNCTION = ... # type: int -PROXY = ... # type: int -READFUNCTION = ... # type: int -RESPONSE_CODE = ... # type: int -SSLCERT = ... # type: int -SSLCERTPASSWD = ... # type: int -SSLKEY = ... # type: int -SSLKEYPASSWD = ... # type: int -SSL_VERIFYHOST = ... # type: int -SSL_VERIFYPEER = ... # type: int -TIMEOUT_MS = ... # type: int -UPLOAD = ... # type: int -URL = ... # type: int -WRITEFUNCTION = ... # type: int +CAINFO = ... # type: int +CONNECTTIMEOUT_MS = ... # type: int +CUSTOMREQUEST = ... # type: int +ENCODING = ... # type: int +E_CALL_MULTI_PERFORM = ... # type: int +E_OPERATION_TIMEOUTED = ... # type: int +FOLLOWLOCATION = ... # type: int +HEADERFUNCTION = ... # type: int +HTTPGET = ... # type: int +HTTPHEADER = ... # type: int +HTTP_CODE = ... # type: int +INFILESIE_LARGE = ... # type: int +INFILESIZE_LARGE = ... # type: int +NOBODY = ... # type: int +NOPROGRESS = ... # type: int +NOSIGNAL = ... # type: int +POST = ... # type: int +POSTFIELDS = ... # type: int +POSTFIELDSIZE = ... # type: int +PRIMARY_IP = ... # type: int +PROGRESSFUNCTION = ... # type: int +PROXY = ... # type: int +READFUNCTION = ... # type: int +RESPONSE_CODE = ... # type: int +SSLCERT = ... # type: int +SSLCERTPASSWD = ... # type: int +SSLKEY = ... # type: int +SSLKEYPASSWD = ... # type: int +SSL_VERIFYHOST = ... # type: int +SSL_VERIFYPEER = ... # type: int +TIMEOUT_MS = ... # type: int +UPLOAD = ... # type: int +URL = ... # type: int +WRITEFUNCTION = ... # type: int diff --git a/third_party/2/redis/client.pyi b/third_party/2/redis/client.pyi index 6a55f80888f1..43693ec4ff27 100644 --- a/third_party/2/redis/client.pyi +++ b/third_party/2/redis/client.pyi @@ -4,7 +4,7 @@ from typing import Any -SYM_EMPTY = ... # type: Any +SYM_EMPTY = ... # type: Any def list_or_args(keys, args): ... def timestamp_to_datetime(response): ... @@ -14,7 +14,7 @@ def parse_debug_object(response): ... def parse_object(response, infotype): ... def parse_info(response): ... -SENTINEL_STATE_TYPES = ... # type: Any +SENTINEL_STATE_TYPES = ... # type: Any def parse_sentinel_state(item): ... def parse_sentinel_master(response): ... @@ -36,11 +36,11 @@ def parse_zscan(response, **options): ... def parse_slowlog_get(response, **options): ... class StrictRedis: - RESPONSE_CALLBACKS = ... # type: Any + RESPONSE_CALLBACKS = ... # type: Any @classmethod def from_url(cls, url, db=..., **kwargs): ... - connection_pool = ... # type: Any - response_callbacks = ... # type: Any + connection_pool = ... # type: Any + response_callbacks = ... # type: Any def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=..., socket_keepalive=..., socket_keepalive_options=..., connection_pool=..., unix_socket_path=..., encoding=..., encoding_errors=..., charset=..., errors=..., decode_responses=..., retry_on_timeout=..., ssl=..., ssl_keyfile=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=...) -> None: ... def set_response_callback(self, command, callback): ... def pipeline(self, transaction=..., shard_hint=...): ... @@ -93,7 +93,7 @@ class StrictRedis: def __delitem__(self, name): ... def dump(self, name): ... def exists(self, name): ... - __contains__ = ... # type: Any + __contains__ = ... # type: Any def expire(self, name, time): ... def expireat(self, name, when): ... def get(self, name): ... @@ -215,26 +215,26 @@ class StrictRedis: def register_script(self, script): ... class Redis(StrictRedis): - RESPONSE_CALLBACKS = ... # type: Any + RESPONSE_CALLBACKS = ... # type: Any def pipeline(self, transaction=..., shard_hint=...): ... def setex(self, name, value, time): ... def lrem(self, name, value, num=...): ... def zadd(self, name, *args, **kwargs): ... class PubSub: - PUBLISH_MESSAGE_TYPES = ... # type: Any - UNSUBSCRIBE_MESSAGE_TYPES = ... # type: Any - connection_pool = ... # type: Any - shard_hint = ... # type: Any - ignore_subscribe_messages = ... # type: Any - connection = ... # type: Any - encoding = ... # type: Any - encoding_errors = ... # type: Any - decode_responses = ... # type: Any + PUBLISH_MESSAGE_TYPES = ... # type: Any + UNSUBSCRIBE_MESSAGE_TYPES = ... # type: Any + connection_pool = ... # type: Any + shard_hint = ... # type: Any + ignore_subscribe_messages = ... # type: Any + connection = ... # type: Any + encoding = ... # type: Any + encoding_errors = ... # type: Any + decode_responses = ... # type: Any def __init__(self, connection_pool, shard_hint=..., ignore_subscribe_messages=...) -> None: ... def __del__(self): ... - channels = ... # type: Any - patterns = ... # type: Any + channels = ... # type: Any + patterns = ... # type: Any def reset(self): ... def close(self): ... def on_connect(self, connection): ... @@ -253,21 +253,21 @@ class PubSub: def run_in_thread(self, sleep_time=...): ... class BasePipeline: - UNWATCH_COMMANDS = ... # type: Any - connection_pool = ... # type: Any - connection = ... # type: Any - response_callbacks = ... # type: Any - transaction = ... # type: Any - shard_hint = ... # type: Any - watching = ... # type: Any + UNWATCH_COMMANDS = ... # type: Any + connection_pool = ... # type: Any + connection = ... # type: Any + response_callbacks = ... # type: Any + transaction = ... # type: Any + shard_hint = ... # type: Any + watching = ... # type: Any def __init__(self, connection_pool, response_callbacks, transaction, shard_hint) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_value, traceback): ... def __del__(self): ... def __len__(self): ... - command_stack = ... # type: Any - scripts = ... # type: Any - explicit_transaction = ... # type: Any + command_stack = ... # type: Any + scripts = ... # type: Any + explicit_transaction = ... # type: Any def reset(self): ... def multi(self): ... def execute_command(self, *args, **kwargs): ... @@ -286,8 +286,8 @@ class StrictPipeline(BasePipeline, StrictRedis): ... class Pipeline(BasePipeline, Redis): ... class Script: - registered_client = ... # type: Any - script = ... # type: Any - sha = ... # type: Any + registered_client = ... # type: Any + script = ... # type: Any + sha = ... # type: Any def __init__(self, registered_client, script) -> None: ... def __call__(self, keys=..., args=..., client=...): ... diff --git a/third_party/2/redis/connection.pyi b/third_party/2/redis/connection.pyi index f17c06238ddf..214cd8dd4d21 100644 --- a/third_party/2/redis/connection.pyi +++ b/third_party/2/redis/connection.pyi @@ -4,30 +4,30 @@ from typing import Any -ssl_available = ... # type: Any -hiredis_version = ... # type: Any -HIREDIS_SUPPORTS_CALLABLE_ERRORS = ... # type: Any -HIREDIS_SUPPORTS_BYTE_BUFFER = ... # type: Any -msg = ... # type: Any -HIREDIS_USE_BYTE_BUFFER = ... # type: Any -SYM_STAR = ... # type: Any -SYM_DOLLAR = ... # type: Any -SYM_CRLF = ... # type: Any -SYM_EMPTY = ... # type: Any -SERVER_CLOSED_CONNECTION_ERROR = ... # type: Any +ssl_available = ... # type: Any +hiredis_version = ... # type: Any +HIREDIS_SUPPORTS_CALLABLE_ERRORS = ... # type: Any +HIREDIS_SUPPORTS_BYTE_BUFFER = ... # type: Any +msg = ... # type: Any +HIREDIS_USE_BYTE_BUFFER = ... # type: Any +SYM_STAR = ... # type: Any +SYM_DOLLAR = ... # type: Any +SYM_CRLF = ... # type: Any +SYM_EMPTY = ... # type: Any +SERVER_CLOSED_CONNECTION_ERROR = ... # type: Any class Token: - value = ... # type: Any + value = ... # type: Any def __init__(self, value) -> None: ... class BaseParser: - EXCEPTION_CLASSES = ... # type: Any + EXCEPTION_CLASSES = ... # type: Any def parse_error(self, response): ... class SocketBuffer: - socket_read_size = ... # type: Any - bytes_written = ... # type: Any - bytes_read = ... # type: Any + socket_read_size = ... # type: Any + bytes_written = ... # type: Any + bytes_read = ... # type: Any def __init__(self, socket, socket_read_size) -> None: ... @property def length(self): ... @@ -37,8 +37,8 @@ class SocketBuffer: def close(self): ... class PythonParser(BaseParser): - encoding = ... # type: Any - socket_read_size = ... # type: Any + encoding = ... # type: Any + socket_read_size = ... # type: Any def __init__(self, socket_read_size) -> None: ... def __del__(self): ... def on_connect(self, connection): ... @@ -47,7 +47,7 @@ class PythonParser(BaseParser): def read_response(self): ... class HiredisParser(BaseParser): - socket_read_size = ... # type: Any + socket_read_size = ... # type: Any def __init__(self, socket_read_size) -> None: ... def __del__(self): ... def on_connect(self, connection): ... @@ -55,23 +55,23 @@ class HiredisParser(BaseParser): def can_read(self): ... def read_response(self): ... -DefaultParser = ... # type: Any +DefaultParser = ... # type: Any class Connection: - description_format = ... # type: Any - pid = ... # type: Any - host = ... # type: Any - port = ... # type: Any - db = ... # type: Any - password = ... # type: Any - socket_timeout = ... # type: Any - socket_connect_timeout = ... # type: Any - socket_keepalive = ... # type: Any - socket_keepalive_options = ... # type: Any - retry_on_timeout = ... # type: Any - encoding = ... # type: Any - encoding_errors = ... # type: Any - decode_responses = ... # type: Any + description_format = ... # type: Any + pid = ... # type: Any + host = ... # type: Any + port = ... # type: Any + db = ... # type: Any + password = ... # type: Any + socket_timeout = ... # type: Any + socket_connect_timeout = ... # type: Any + socket_keepalive = ... # type: Any + socket_keepalive_options = ... # type: Any + retry_on_timeout = ... # type: Any + encoding = ... # type: Any + encoding_errors = ... # type: Any + decode_responses = ... # type: Any def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=..., socket_keepalive=..., socket_keepalive_options=..., retry_on_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., parser_class=..., socket_read_size=...) -> None: ... def __del__(self): ... def register_connect_callback(self, callback): ... @@ -88,34 +88,34 @@ class Connection: def pack_commands(self, commands): ... class SSLConnection(Connection): - description_format = ... # type: Any - keyfile = ... # type: Any - certfile = ... # type: Any - cert_reqs = ... # type: Any - ca_certs = ... # type: Any + description_format = ... # type: Any + keyfile = ... # type: Any + certfile = ... # type: Any + cert_reqs = ... # type: Any + ca_certs = ... # type: Any def __init__(self, ssl_keyfile=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=..., **kwargs) -> None: ... class UnixDomainSocketConnection(Connection): - description_format = ... # type: Any - pid = ... # type: Any - path = ... # type: Any - db = ... # type: Any - password = ... # type: Any - socket_timeout = ... # type: Any - retry_on_timeout = ... # type: Any - encoding = ... # type: Any - encoding_errors = ... # type: Any - decode_responses = ... # type: Any + description_format = ... # type: Any + pid = ... # type: Any + path = ... # type: Any + db = ... # type: Any + password = ... # type: Any + socket_timeout = ... # type: Any + retry_on_timeout = ... # type: Any + encoding = ... # type: Any + encoding_errors = ... # type: Any + decode_responses = ... # type: Any def __init__(self, path=..., db=..., password=..., socket_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., retry_on_timeout=..., parser_class=..., socket_read_size=...) -> None: ... class ConnectionPool: @classmethod def from_url(cls, url, db=..., **kwargs): ... - connection_class = ... # type: Any - connection_kwargs = ... # type: Any - max_connections = ... # type: Any + connection_class = ... # type: Any + connection_kwargs = ... # type: Any + max_connections = ... # type: Any def __init__(self, connection_class=..., max_connections=..., **connection_kwargs) -> None: ... - pid = ... # type: Any + pid = ... # type: Any def reset(self): ... def get_connection(self, command_name, *keys, **options): ... def make_connection(self): ... @@ -123,11 +123,11 @@ class ConnectionPool: def disconnect(self): ... class BlockingConnectionPool(ConnectionPool): - queue_class = ... # type: Any - timeout = ... # type: Any + queue_class = ... # type: Any + timeout = ... # type: Any def __init__(self, max_connections=..., timeout=..., connection_class=..., queue_class=..., **connection_kwargs) -> None: ... - pid = ... # type: Any - pool = ... # type: Any + pid = ... # type: Any + pool = ... # type: Any def reset(self): ... def make_connection(self): ... def get_connection(self, command_name, *keys, **options): ... diff --git a/third_party/2/redis/utils.pyi b/third_party/2/redis/utils.pyi index 9cabf0de65c4..fe1388cc61e9 100644 --- a/third_party/2/redis/utils.pyi +++ b/third_party/2/redis/utils.pyi @@ -4,7 +4,7 @@ from typing import Any -HIREDIS_AVAILABLE = ... # type: Any +HIREDIS_AVAILABLE = ... # type: Any def from_url(url, db=..., **kwargs): ... def pipeline(redis_obj): ... diff --git a/third_party/2/requests/__init__.pyi b/third_party/2/requests/__init__.pyi index a42d186a22fc..51e4131d4c70 100644 --- a/third_party/2/requests/__init__.pyi +++ b/third_party/2/requests/__init__.pyi @@ -12,7 +12,7 @@ __title__ = ... # type: Any __build__ = ... # type: Any __license__ = ... # type: Any __copyright__ = ... # type: Any -__version__ = ... # type: Any +__version__ = ... # type: Any Request = models.Request Response = models.Response diff --git a/third_party/2/requests/packages/urllib3/response.pyi b/third_party/2/requests/packages/urllib3/response.pyi index c84f7e91ff28..1b2ec69811da 100644 --- a/third_party/2/requests/packages/urllib3/response.pyi +++ b/third_party/2/requests/packages/urllib3/response.pyi @@ -14,8 +14,8 @@ HTTPHeaderDict = _collections.HTTPHeaderDict ProtocolError = exceptions.ProtocolError DecodeError = exceptions.DecodeError ReadTimeoutError = exceptions.ReadTimeoutError -binary_type = str # six.binary_type -PY3 = True # six.PY3 +binary_type = str # six.binary_type +PY3 = True # six.PY3 is_fp_closed = response.is_fp_closed class DeflateDecoder: diff --git a/third_party/2/requests/sessions.pyi b/third_party/2/requests/sessions.pyi index 9387f7726ef3..9cc60d2fe100 100644 --- a/third_party/2/requests/sessions.pyi +++ b/third_party/2/requests/sessions.pyi @@ -44,7 +44,7 @@ get_auth_from_url = utils.get_auth_from_url codes = status_codes.codes REDIRECT_STATI = models.REDIRECT_STATI -REDIRECT_CACHE_SIZE = ... # type: Any +REDIRECT_CACHE_SIZE = ... # type: Any def merge_setting(request_setting, session_setting, dict_class=...): ... def merge_hooks(request_hooks, session_hooks, dict_class=...): ... @@ -56,20 +56,20 @@ class SessionRedirectMixin: def rebuild_proxies(self, prepared_request, proxies): ... class Session(SessionRedirectMixin): - __attrs__ = ... # type: Any - headers = ... # type: Optional[MutableMapping[Text, Text]] - auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]] - proxies = ... # type: Optional[MutableMapping[Text, Text]] - hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]] - params = ... # type: Union[None, bytes, MutableMapping[Text, Text]] - stream = ... # type: bool - verify = ... # type: bool - cert = ... # type: Union[None, Text, Tuple[Text, Text]] - max_redirects = ... # type: int - trust_env = ... # type: bool - cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] - adapters = ... # type: MutableMapping - redirect_cache = ... # type: RecentlyUsedContainer + __attrs__ = ... # type: Any + headers = ... # type: Optional[MutableMapping[Text, Text]] + auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]] + proxies = ... # type: Optional[MutableMapping[Text, Text]] + hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]] + params = ... # type: Union[None, bytes, MutableMapping[Text, Text]] + stream = ... # type: bool + verify = ... # type: bool + cert = ... # type: Union[None, Text, Tuple[Text, Text]] + max_redirects = ... # type: int + trust_env = ... # type: bool + cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] + adapters = ... # type: MutableMapping + redirect_cache = ... # type: RecentlyUsedContainer def __init__(self) -> None: ... def __enter__(self) -> 'Session': ... def __exit__(self, *args) -> None: ... diff --git a/third_party/2/routes/mapper.pyi b/third_party/2/routes/mapper.pyi index 5e993648da02..573a2ef2df5d 100644 --- a/third_party/2/routes/mapper.pyi +++ b/third_party/2/routes/mapper.pyi @@ -4,8 +4,8 @@ from typing import Any -COLLECTION_ACTIONS = ... # type: Any -MEMBER_ACTIONS = ... # type: Any +COLLECTION_ACTIONS = ... # type: Any +MEMBER_ACTIONS = ... # type: Any def strip_slashes(name): ... @@ -14,12 +14,12 @@ class SubMapperParent: def collection(self, collection_name, resource_name, path_prefix=..., member_prefix=..., controller=..., collection_actions=..., member_actions=..., member_options=..., **kwargs): ... class SubMapper(SubMapperParent): - kwargs = ... # type: Any - obj = ... # type: Any - collection_name = ... # type: Any - member = ... # type: Any - resource_name = ... # type: Any - formatted = ... # type: Any + kwargs = ... # type: Any + obj = ... # type: Any + collection_name = ... # type: Any + member = ... # type: Any + resource_name = ... # type: Any + formatted = ... # type: Any def __init__(self, obj, resource_name=..., collection_name=..., actions=..., formatted=..., **kwargs) -> None: ... def connect(self, *args, **kwargs): ... def link(self, rel=..., name=..., action=..., method=..., formatted=..., **kwargs): ... @@ -36,35 +36,35 @@ class SubMapper(SubMapperParent): def __exit__(self, type, value, tb): ... class Mapper(SubMapperParent): - matchlist = ... # type: Any - maxkeys = ... # type: Any - minkeys = ... # type: Any - urlcache = ... # type: Any - prefix = ... # type: Any - req_data = ... # type: Any - directory = ... # type: Any - always_scan = ... # type: Any - controller_scan = ... # type: Any - debug = ... # type: Any - append_slash = ... # type: Any - sub_domains = ... # type: Any - sub_domains_ignore = ... # type: Any - domain_match = ... # type: Any - explicit = ... # type: Any - encoding = ... # type: Any - decode_errors = ... # type: Any - hardcode_names = ... # type: Any - minimization = ... # type: Any - create_regs_lock = ... # type: Any + matchlist = ... # type: Any + maxkeys = ... # type: Any + minkeys = ... # type: Any + urlcache = ... # type: Any + prefix = ... # type: Any + req_data = ... # type: Any + directory = ... # type: Any + always_scan = ... # type: Any + controller_scan = ... # type: Any + debug = ... # type: Any + append_slash = ... # type: Any + sub_domains = ... # type: Any + sub_domains_ignore = ... # type: Any + domain_match = ... # type: Any + explicit = ... # type: Any + encoding = ... # type: Any + decode_errors = ... # type: Any + hardcode_names = ... # type: Any + minimization = ... # type: Any + create_regs_lock = ... # type: Any def __init__(self, controller_scan=..., directory=..., always_scan=..., register=..., explicit=...) -> None: ... - environ = ... # type: Any + environ = ... # type: Any def extend(self, routes, path_prefix=...): ... def make_route(self, *args, **kargs): ... def connect(self, *args, **kargs): ... def create_regs(self, *args, **kwargs): ... def match(self, url=..., environ=...): ... def routematch(self, url=..., environ=...): ... - obj = ... # type: Any + obj = ... # type: Any def generate(self, *args, **kargs): ... def resource(self, member_name, collection_name, **kwargs): ... def redirect(self, match_path, destination_path, *args, **kwargs): ... diff --git a/third_party/2/routes/util.pyi b/third_party/2/routes/util.pyi index 87af6f377634..e5210e37a515 100644 --- a/third_party/2/routes/util.pyi +++ b/third_party/2/routes/util.pyi @@ -11,8 +11,8 @@ class GenerationException(RoutesException): ... def url_for(*args, **kargs): ... class URLGenerator: - mapper = ... # type: Any - environ = ... # type: Any + mapper = ... # type: Any + environ = ... # type: Any def __init__(self, mapper, environ) -> None: ... def __call__(self, *args, **kargs): ... def current(self, *args, **kwargs): ... diff --git a/third_party/2/scribe/scribe.pyi b/third_party/2/scribe/scribe.pyi index 098888997147..227ec268edf1 100644 --- a/third_party/2/scribe/scribe.pyi +++ b/third_party/2/scribe/scribe.pyi @@ -23,8 +23,8 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor): def process_Log(self, seqid, iprot, oprot): ... class Log_args: - thrift_spec = ... # type: Any - messages = ... # type: Any + thrift_spec = ... # type: Any + messages = ... # type: Any def __init__(self, messages=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... @@ -33,8 +33,8 @@ class Log_args: def __ne__(self, other): ... class Log_result: - thrift_spec = ... # type: Any - success = ... # type: Any + thrift_spec = ... # type: Any + success = ... # type: Any def __init__(self, success=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... diff --git a/third_party/2/scribe/ttypes.pyi b/third_party/2/scribe/ttypes.pyi index 3629e9904755..32f01bd70acf 100644 --- a/third_party/2/scribe/ttypes.pyi +++ b/third_party/2/scribe/ttypes.pyi @@ -4,16 +4,16 @@ from typing import Any -fastbinary = ... # type: Any +fastbinary = ... # type: Any class ResultCode: - OK = ... # type: Any - TRY_LATER = ... # type: Any + OK = ... # type: Any + TRY_LATER = ... # type: Any class LogEntry: - thrift_spec = ... # type: Any - category = ... # type: Any - message = ... # type: Any + thrift_spec = ... # type: Any + category = ... # type: Any + message = ... # type: Any def __init__(self, category=..., message=...) -> None: ... def read(self, iprot): ... def write(self, oprot): ... diff --git a/third_party/2/selenium/webdriver/remote/webdriver.pyi b/third_party/2/selenium/webdriver/remote/webdriver.pyi index 6706cf64528a..8bd008307767 100644 --- a/third_party/2/selenium/webdriver/remote/webdriver.pyi +++ b/third_party/2/selenium/webdriver/remote/webdriver.pyi @@ -12,11 +12,11 @@ Capabilities = Dict[basestring, Any] ExecuteResult = Dict[basestring, Any] # containing 'success', 'value', 'sessionId' class WebDriver: - command_executor = ... # type: basestring - session_id = ... # type: Any - capabilities = ... # type: Capabilities - error_handler = ... # type: ErrorHandler - file_detector = ... # type: FileDetector + command_executor = ... # type: basestring + session_id = ... # type: Any + capabilities = ... # type: Capabilities + error_handler = ... # type: ErrorHandler + file_detector = ... # type: FileDetector def __init__(self, command_executor: basestring='', desired_capabilities: Capabilities=None, @@ -30,7 +30,7 @@ class WebDriver: def name(self) -> basestring: ... def start_client(self): ... def stop_client(self): ... - w3c = ... # type: Any + w3c = ... # type: Any def start_session(self, desired_capabilities, browser_profile=None): ... def create_web_element(self, element_id: basestring) -> WebElement: ... def execute(self, driver_command: basestring, params: Optional[Dict[basestring, Any]]=None) -> ExecuteResult: ... @@ -89,7 +89,7 @@ class WebDriver: @property def desired_capabilities(self): ... def get_screenshot_as_file(self, filename): ... - save_screenshot = ... # type: Any + save_screenshot = ... # type: Any def get_screenshot_as_png(self): ... def get_screenshot_as_base64(self): ... def set_window_size(self, width, height, windowHandle=''): ... diff --git a/third_party/2/six/__init__.pyi b/third_party/2/six/__init__.pyi index aadf05660448..f960eed10e69 100644 --- a/third_party/2/six/__init__.pyi +++ b/third_party/2/six/__init__.pyi @@ -27,7 +27,7 @@ class_types = (type, types.ClassType) text_type = unicode binary_type = str -MAXSIZE = ... # type: int +MAXSIZE = ... # type: int #def add_move #def remove_move diff --git a/third_party/2/sqlalchemy/__init__.pyi b/third_party/2/sqlalchemy/__init__.pyi index 717082c1897c..f2fddf22bb92 100644 --- a/third_party/2/sqlalchemy/__init__.pyi +++ b/third_party/2/sqlalchemy/__init__.pyi @@ -121,4 +121,4 @@ from . import pool as pool from .inspection import inspect from .engine import create_engine, engine_from_config -__version__ = ... # type: int +__version__ = ... # type: int diff --git a/third_party/2/sqlalchemy/dialects/mysql/base.pyi b/third_party/2/sqlalchemy/dialects/mysql/base.pyi index ac967d83847d..3329ae38db56 100644 --- a/third_party/2/sqlalchemy/dialects/mysql/base.pyi +++ b/third_party/2/sqlalchemy/dialects/mysql/base.pyi @@ -19,35 +19,35 @@ BLOB = types.BLOB BINARY = types.BINARY VARBINARY = types.VARBINARY -RESERVED_WORDS = ... # type: Any -AUTOCOMMIT_RE = ... # type: Any -SET_RE = ... # type: Any +RESERVED_WORDS = ... # type: Any +AUTOCOMMIT_RE = ... # type: Any +SET_RE = ... # type: Any class _NumericType: - unsigned = ... # type: Any - zerofill = ... # type: Any + unsigned = ... # type: Any + zerofill = ... # type: Any def __init__(self, unsigned=..., zerofill=..., **kw) -> None: ... class _FloatType(_NumericType, ## sqltypes.Float ): - scale = ... # type: Any + scale = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... class _IntegerType(_NumericType, ## sqltypes.Integer ): - display_width = ... # type: Any + display_width = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class _StringType(object, ## sqltypes.String ): - charset = ... # type: Any - ascii = ... # type: Any - unicode = ... # type: Any - binary = ... # type: Any - national = ... # type: Any + charset = ... # type: Any + ascii = ... # type: Any + unicode = ... # type: Any + binary = ... # type: Any + national = ... # type: Any def __init__(self, charset=..., collation=..., ascii=..., binary=..., unicode=..., national=..., **kw) -> None: ... class _MatchType(object, @@ -59,205 +59,205 @@ class _MatchType(object, class NUMERIC(_NumericType, ## sqltypes.NUMERIC ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... class DECIMAL(_NumericType, ## sqltypes.DECIMAL ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... class DOUBLE(_FloatType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... class REAL(_FloatType, ## sqltypes.REAL ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... class FLOAT(_FloatType, ## sqltypes.FLOAT ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ... def bind_processor(self, dialect): ... class INTEGER(_IntegerType, ## sqltypes.INTEGER ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class BIGINT(_IntegerType, ## sqltypes.BIGINT ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class MEDIUMINT(_IntegerType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class TINYINT(_IntegerType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class SMALLINT(_IntegerType, ## sqltypes.SMALLINT ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, display_width=..., **kw) -> None: ... class BIT(object, ## sqltypes.TypeEngine ): - __visit_name__ = ... # type: Any - length = ... # type: Any + __visit_name__ = ... # type: Any + length = ... # type: Any def __init__(self, length=...) -> None: ... def result_processor(self, dialect, coltype): ... class TIME(object, ## sqltypes.TIME ): - __visit_name__ = ... # type: Any - fsp = ... # type: Any + __visit_name__ = ... # type: Any + fsp = ... # type: Any def __init__(self, timezone=..., fsp=...) -> None: ... def result_processor(self, dialect, coltype): ... class TIMESTAMP(object, ## sqltypes.TIMESTAMP ): - __visit_name__ = ... # type: Any - fsp = ... # type: Any + __visit_name__ = ... # type: Any + fsp = ... # type: Any def __init__(self, timezone=..., fsp=...) -> None: ... class DATETIME(object, ## sqltypes.DATETIME ): - __visit_name__ = ... # type: Any - fsp = ... # type: Any + __visit_name__ = ... # type: Any + fsp = ... # type: Any def __init__(self, timezone=..., fsp=...) -> None: ... class YEAR(object, ## sqltypes.TypeEngine ): - __visit_name__ = ... # type: Any - display_width = ... # type: Any + __visit_name__ = ... # type: Any + display_width = ... # type: Any def __init__(self, display_width=...) -> None: ... class TEXT(_StringType, ## sqltypes.TEXT ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, length=..., **kw) -> None: ... class TINYTEXT(_StringType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, **kwargs) -> None: ... class MEDIUMTEXT(_StringType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, **kwargs) -> None: ... class LONGTEXT(_StringType): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, **kwargs) -> None: ... class VARCHAR(_StringType, ## sqltypes.VARCHAR ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, length=..., **kwargs) -> None: ... class CHAR(_StringType, ## sqltypes.CHAR ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, length=..., **kwargs) -> None: ... class NVARCHAR(_StringType, ## sqltypes.NVARCHAR ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, length=..., **kwargs) -> None: ... class NCHAR(_StringType, ## sqltypes.NCHAR ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any def __init__(self, length=..., **kwargs) -> None: ... class TINYBLOB(object, ## sqltypes._Binary ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any class MEDIUMBLOB(object, ## sqltypes._Binary ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any class LONGBLOB(object, ## sqltypes._Binary ): - __visit_name__ = ... # type: Any + __visit_name__ = ... # type: Any class _EnumeratedValues(_StringType): ... -class ENUM(## sqltypes.Enum, +class ENUM( # sqltypes.Enum, _EnumeratedValues ): - __visit_name__ = ... # type: Any - strict = ... # type: Any + __visit_name__ = ... # type: Any + strict = ... # type: Any def __init__(self, *enums, **kw) -> None: ... def bind_processor(self, dialect): ... def adapt(self, cls, **kw): ... class SET(_EnumeratedValues): - __visit_name__ = ... # type: Any - retrieve_as_bitwise = ... # type: Any - values = ... # type: Any + __visit_name__ = ... # type: Any + retrieve_as_bitwise = ... # type: Any + values = ... # type: Any def __init__(self, *values, **kw) -> None: ... def column_expression(self, colexpr): ... def result_processor(self, dialect, coltype): ... def bind_processor(self, dialect): ... def adapt(self, impltype, **kw): ... -MSTime = ... # type: Any -MSSet = ... # type: Any -MSEnum = ... # type: Any -MSLongBlob = ... # type: Any -MSMediumBlob = ... # type: Any -MSTinyBlob = ... # type: Any -MSBlob = ... # type: Any -MSBinary = ... # type: Any -MSVarBinary = ... # type: Any -MSNChar = ... # type: Any -MSNVarChar = ... # type: Any -MSChar = ... # type: Any -MSString = ... # type: Any -MSLongText = ... # type: Any -MSMediumText = ... # type: Any -MSTinyText = ... # type: Any -MSText = ... # type: Any -MSYear = ... # type: Any -MSTimeStamp = ... # type: Any -MSBit = ... # type: Any -MSSmallInteger = ... # type: Any -MSTinyInteger = ... # type: Any -MSMediumInteger = ... # type: Any -MSBigInteger = ... # type: Any -MSNumeric = ... # type: Any -MSDecimal = ... # type: Any -MSDouble = ... # type: Any -MSReal = ... # type: Any -MSFloat = ... # type: Any -MSInteger = ... # type: Any -colspecs = ... # type: Any -ischema_names = ... # type: Any +MSTime = ... # type: Any +MSSet = ... # type: Any +MSEnum = ... # type: Any +MSLongBlob = ... # type: Any +MSMediumBlob = ... # type: Any +MSTinyBlob = ... # type: Any +MSBlob = ... # type: Any +MSBinary = ... # type: Any +MSVarBinary = ... # type: Any +MSNChar = ... # type: Any +MSNVarChar = ... # type: Any +MSChar = ... # type: Any +MSString = ... # type: Any +MSLongText = ... # type: Any +MSMediumText = ... # type: Any +MSTinyText = ... # type: Any +MSText = ... # type: Any +MSYear = ... # type: Any +MSTimeStamp = ... # type: Any +MSBit = ... # type: Any +MSSmallInteger = ... # type: Any +MSTinyInteger = ... # type: Any +MSMediumInteger = ... # type: Any +MSBigInteger = ... # type: Any +MSNumeric = ... # type: Any +MSDecimal = ... # type: Any +MSDouble = ... # type: Any +MSReal = ... # type: Any +MSFloat = ... # type: Any +MSInteger = ... # type: Any +colspecs = ... # type: Any +ischema_names = ... # type: Any class MySQLExecutionContext(object, ## default.DefaultExecutionContext @@ -267,8 +267,8 @@ class MySQLExecutionContext(object, class MySQLCompiler(object, ## compiler.SQLCompiler ): - render_table_with_column_in_update_from = ... # type: Any - extract_map = ... # type: Any + render_table_with_column_in_update_from = ... # type: Any + extract_map = ... # type: Any def visit_random_func(self, fn, **kw): ... def visit_utc_timestamp_func(self, fn, **kw): ... def visit_sysdate_func(self, fn, **kw): ... @@ -341,30 +341,30 @@ class MySQLTypeCompiler(object, class MySQLIdentifierPreparer(object, ## compiler.IdentifierPreparer ): - reserved_words = ... # type: Any + reserved_words = ... # type: Any def __init__(self, dialect, server_ansiquotes=..., **kw) -> None: ... class MySQLDialect(object, ## default.DefaultDialect ): - name = ... # type: Any - supports_alter = ... # type: Any - supports_native_boolean = ... # type: Any - max_identifier_length = ... # type: Any - max_index_name_length = ... # type: Any - supports_native_enum = ... # type: Any - supports_sane_rowcount = ... # type: Any - supports_sane_multi_rowcount = ... # type: Any - supports_multivalues_insert = ... # type: Any - default_paramstyle = ... # type: Any - colspecs = ... # type: Any - statement_compiler = ... # type: Any - ddl_compiler = ... # type: Any - type_compiler = ... # type: Any - ischema_names = ... # type: Any - preparer = ... # type: Any - construct_arguments = ... # type: Any - isolation_level = ... # type: Any + name = ... # type: Any + supports_alter = ... # type: Any + supports_native_boolean = ... # type: Any + max_identifier_length = ... # type: Any + max_index_name_length = ... # type: Any + supports_native_enum = ... # type: Any + supports_sane_rowcount = ... # type: Any + supports_sane_multi_rowcount = ... # type: Any + supports_multivalues_insert = ... # type: Any + default_paramstyle = ... # type: Any + colspecs = ... # type: Any + statement_compiler = ... # type: Any + ddl_compiler = ... # type: Any + type_compiler = ... # type: Any + ischema_names = ... # type: Any + preparer = ... # type: Any + construct_arguments = ... # type: Any + isolation_level = ... # type: Any def __init__(self, isolation_level=..., **kwargs) -> None: ... def on_connect(self): ... def set_isolation_level(self, connection, level): ... @@ -378,7 +378,7 @@ class MySQLDialect(object, def do_recover_twophase(self, connection): ... def is_disconnect(self, e, connection, cursor): ... def has_table(self, connection, table_name, schema=...): ... - identifier_preparer = ... # type: Any + identifier_preparer = ... # type: Any def initialize(self, connection): ... def get_schema_names(self, connection, **kw): ... def get_table_names(self, connection, schema=..., **kw): ... @@ -392,22 +392,22 @@ class MySQLDialect(object, def get_view_definition(self, connection, view_name, schema=..., **kw): ... class ReflectedState: - columns = ... # type: Any - table_options = ... # type: Any - table_name = ... # type: Any - keys = ... # type: Any - constraints = ... # type: Any + columns = ... # type: Any + table_options = ... # type: Any + table_name = ... # type: Any + keys = ... # type: Any + constraints = ... # type: Any def __init__(self) -> None: ... class MySQLTableDefinitionParser: - dialect = ... # type: Any - preparer = ... # type: Any + dialect = ... # type: Any + preparer = ... # type: Any def __init__(self, dialect, preparer) -> None: ... def parse(self, show_create, charset): ... class _DecodingRowProxy: - rowproxy = ... # type: Any - charset = ... # type: Any + rowproxy = ... # type: Any + charset = ... # type: Any def __init__(self, rowproxy, charset) -> None: ... def __getitem__(self, index): ... def __getattr__(self, attr): ... diff --git a/third_party/2/sqlalchemy/engine/strategies.pyi b/third_party/2/sqlalchemy/engine/strategies.pyi index 372643ce004d..06c2f00767ea 100644 --- a/third_party/2/sqlalchemy/engine/strategies.pyi +++ b/third_party/2/sqlalchemy/engine/strategies.pyi @@ -6,7 +6,7 @@ from typing import Any from . import base -strategies = ... # type: Any +strategies = ... # type: Any class EngineStrategy: def __init__(self) -> None: ... @@ -16,21 +16,21 @@ class DefaultEngineStrategy(EngineStrategy): def create(self, name_or_url, **kwargs): ... class PlainEngineStrategy(DefaultEngineStrategy): - name = ... # type: Any - engine_cls = ... # type: Any + name = ... # type: Any + engine_cls = ... # type: Any class ThreadLocalEngineStrategy(DefaultEngineStrategy): - name = ... # type: Any - engine_cls = ... # type: Any + name = ... # type: Any + engine_cls = ... # type: Any class MockEngineStrategy(EngineStrategy): - name = ... # type: Any + name = ... # type: Any def create(self, name_or_url, executor, **kwargs): ... class MockConnection(base.Connectable): def __init__(self, dialect, execute) -> None: ... - engine = ... # type: Any - dialect = ... # type: Any - name = ... # type: Any + engine = ... # type: Any + dialect = ... # type: Any + name = ... # type: Any def contextual_connect(self, **kwargs): ... def execution_options(self, **kw): ... def compiler(self, statement, parameters, **kwargs): ... diff --git a/third_party/2/sqlalchemy/engine/url.pyi b/third_party/2/sqlalchemy/engine/url.pyi index b422ec9458b4..62d60d2d3e3e 100644 --- a/third_party/2/sqlalchemy/engine/url.pyi +++ b/third_party/2/sqlalchemy/engine/url.pyi @@ -8,13 +8,13 @@ from .. import dialects ## registry = dialects.registry class URL: - drivername = ... # type: Any - username = ... # type: Any - password = ... # type: Any - host = ... # type: Any - port = ... # type: Any - database = ... # type: Any - query = ... # type: Any + drivername = ... # type: Any + username = ... # type: Any + password = ... # type: Any + host = ... # type: Any + port = ... # type: Any + database = ... # type: Any + query = ... # type: Any def __init__(self, drivername, username=..., password=..., host=..., port=..., database=..., query=...) -> None: ... def __to_string__(self, hide_password=...): ... def __hash__(self): ... diff --git a/third_party/2/sqlalchemy/exc.pyi b/third_party/2/sqlalchemy/exc.pyi index 310770dbb7f5..b87b9cdcf96e 100644 --- a/third_party/2/sqlalchemy/exc.pyi +++ b/third_party/2/sqlalchemy/exc.pyi @@ -11,8 +11,8 @@ class NoForeignKeysError(ArgumentError): ... class AmbiguousForeignKeysError(ArgumentError): ... class CircularDependencyError(SQLAlchemyError): - cycles = ... # type: Any - edges = ... # type: Any + cycles = ... # type: Any + edges = ... # type: Any def __init__(self, message, cycles, edges, msg=...) -> None: ... def __reduce__(self): ... @@ -31,13 +31,13 @@ class NoSuchColumnError(KeyError, InvalidRequestError): ... class NoReferenceError(InvalidRequestError): ... class NoReferencedTableError(NoReferenceError): - table_name = ... # type: Any + table_name = ... # type: Any def __init__(self, message, tname) -> None: ... def __reduce__(self): ... class NoReferencedColumnError(NoReferenceError): - table_name = ... # type: Any - column_name = ... # type: Any + table_name = ... # type: Any + column_name = ... # type: Any def __init__(self, message, tname, cname) -> None: ... def __reduce__(self): ... @@ -45,13 +45,13 @@ class NoSuchTableError(InvalidRequestError): ... class UnboundExecutionError(InvalidRequestError): ... class DontWrapMixin: ... -UnmappedColumnError = ... # type: Any +UnmappedColumnError = ... # type: Any class StatementError(SQLAlchemyError): - statement = ... # type: Any - params = ... # type: Any - orig = ... # type: Any - detail = ... # type: Any + statement = ... # type: Any + params = ... # type: Any + orig = ... # type: Any + detail = ... # type: Any def __init__(self, message, statement, params, orig) -> None: ... def add_detail(self, msg): ... def __reduce__(self): ... @@ -61,7 +61,7 @@ class DBAPIError(StatementError): @classmethod def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated=..., dialect=...): ... def __reduce__(self): ... - connection_invalidated = ... # type: Any + connection_invalidated = ... # type: Any def __init__(self, statement, params, orig, connection_invalidated=...) -> None: ... class InterfaceError(DBAPIError): ... diff --git a/third_party/2/sqlalchemy/log.pyi b/third_party/2/sqlalchemy/log.pyi index 8a5b3bf18737..9e73bd961e2d 100644 --- a/third_party/2/sqlalchemy/log.pyi +++ b/third_party/2/sqlalchemy/log.pyi @@ -1,7 +1,7 @@ import logging from typing import Any -rootlogger = ... # type: Any +rootlogger = ... # type: Any class Identified(object): def _should_log_debug(self) -> bool: ... diff --git a/third_party/2/sqlalchemy/orm/__init__.pyi b/third_party/2/sqlalchemy/orm/__init__.pyi index bc1fe4b800b4..d5da50cb4e48 100644 --- a/third_party/2/sqlalchemy/orm/__init__.pyi +++ b/third_party/2/sqlalchemy/orm/__init__.pyi @@ -55,41 +55,41 @@ public_factory = langhelpers.public_factory def create_session(bind=..., **kwargs): ... -relationship = ... # type: Any +relationship = ... # type: Any def relation(*arg, **kw): ... def dynamic_loader(argument, **kw): ... -column_property = ... # type: Any -composite = ... # type: Any +column_property = ... # type: Any +composite = ... # type: Any def backref(name, **kwargs): ... def deferred(*columns, **kw): ... -synonym = ... # type: Any -comparable_property = ... # type: Any +synonym = ... # type: Any +comparable_property = ... # type: Any def compile_mappers(): ... def clear_mappers(): ... -joinedload = ... # type: Any -joinedload_all = ... # type: Any -contains_eager = ... # type: Any -defer = ... # type: Any -undefer = ... # type: Any -undefer_group = ... # type: Any -load_only = ... # type: Any -lazyload = ... # type: Any -lazyload_all = ... # type: Any -subqueryload = ... # type: Any -subqueryload_all = ... # type: Any -immediateload = ... # type: Any -noload = ... # type: Any -defaultload = ... # type: Any +joinedload = ... # type: Any +joinedload_all = ... # type: Any +contains_eager = ... # type: Any +defer = ... # type: Any +undefer = ... # type: Any +undefer_group = ... # type: Any +load_only = ... # type: Any +lazyload = ... # type: Any +lazyload_all = ... # type: Any +subqueryload = ... # type: Any +subqueryload_all = ... # type: Any +immediateload = ... # type: Any +noload = ... # type: Any +defaultload = ... # type: Any ## Load = strategy_options.Load def eagerload(*args, **kwargs): ... def eagerload_all(*args, **kwargs): ... -contains_alias = ... # type: Any +contains_alias = ... # type: Any diff --git a/third_party/2/sqlalchemy/orm/session.pyi b/third_party/2/sqlalchemy/orm/session.pyi index dcdf8b025e3d..a53d619dffc7 100644 --- a/third_party/2/sqlalchemy/orm/session.pyi +++ b/third_party/2/sqlalchemy/orm/session.pyi @@ -13,8 +13,8 @@ class _SessionClassMethods: def object_session(cls, instance): ... class SessionTransaction: - session = ... # type: Any - nested = ... # type: Any + session = ... # type: Any + nested = ... # type: Any def __init__(self, session, parent=..., nested=...) -> None: ... @property def is_active(self): ... @@ -27,17 +27,17 @@ class SessionTransaction: def __exit__(self, type, value, traceback): ... class Session(_SessionClassMethods): - public_methods = ... # type: Any - identity_map = ... # type: Any - bind = ... # type: Any - transaction = ... # type: Any - hash_key = ... # type: Any - autoflush = ... # type: Any - autocommit = ... # type: Any - expire_on_commit = ... # type: Any - twophase = ... # type: Any + public_methods = ... # type: Any + identity_map = ... # type: Any + bind = ... # type: Any + transaction = ... # type: Any + hash_key = ... # type: Any + autoflush = ... # type: Any + autocommit = ... # type: Any + expire_on_commit = ... # type: Any + twophase = ... # type: Any def __init__(self, bind=..., autoflush=..., expire_on_commit=..., _enable_transaction_accounting=..., autocommit=..., twophase=..., weak_identity_map=..., binds=..., extension=..., info=..., query_cls=...) -> None: ... - connection_callable = ... # type: Any + connection_callable = ... # type: Any def info(self): ... def begin(self, subtransactions=..., nested=...): ... def begin_nested(self): ... @@ -83,8 +83,8 @@ class Session(_SessionClassMethods): def new(self): ... class sessionmaker(_SessionClassMethods): - kw = ... # type: Any - class_ = ... # type: Any + kw = ... # type: Any + class_ = ... # type: Any def __init__(self, bind=..., class_=..., autoflush=..., autocommit=..., expire_on_commit=..., info=..., **kw) -> None: ... def __call__(self, **local_kw): ... def configure(self, **new_kw): ... diff --git a/third_party/2/sqlalchemy/pool.pyi b/third_party/2/sqlalchemy/pool.pyi index 7161dc56c8a4..a278d6e1a2d5 100644 --- a/third_party/2/sqlalchemy/pool.pyi +++ b/third_party/2/sqlalchemy/pool.pyi @@ -10,14 +10,14 @@ threading = util.threading memoized_property = util.memoized_property chop_traceback = util.chop_traceback -proxies = ... # type: Any +proxies = ... # type: Any def manage(module, **params): ... def clear_managers(): ... -reset_rollback = ... # type: Any -reset_commit = ... # type: Any -reset_none = ... # type: Any +reset_rollback = ... # type: Any +reset_commit = ... # type: Any +reset_none = ... # type: Any class _ConnDialect: def do_rollback(self, dbapi_connection): ... @@ -25,8 +25,8 @@ class _ConnDialect: def do_close(self, dbapi_connection): ... class Pool(log.Identified): - logging_name = ... # type: Any - echo = ... # type: Any + logging_name = ... # type: Any + echo = ... # type: Any def __init__(self, creator, recycle=..., echo=..., use_threadlocal=..., logging_name=..., reset_on_return=..., listeners=..., events=..., _dispatch=..., _dialect=...) -> None: ... def add_listener(self, listener): ... def unique_connection(self): ... @@ -35,31 +35,31 @@ class Pool(log.Identified): def connect(self): ... def status(self): ... - _threadconns = ... # type: Any - _creator = ... # type: Any - _recycle = ... # type: Any - _invalidate_time = ... # type: Any - dispatch = ... # type: Any - _dialect = ... # type: Any - _orig_logging_name = ... # type: Any - _reset_on_return = ... # type: Any - _use_threadlocal = ... # type: Any + _threadconns = ... # type: Any + _creator = ... # type: Any + _recycle = ... # type: Any + _invalidate_time = ... # type: Any + dispatch = ... # type: Any + _dialect = ... # type: Any + _orig_logging_name = ... # type: Any + _reset_on_return = ... # type: Any + _use_threadlocal = ... # type: Any class _ConnectionRecord: - connection = ... # type: Any - finalize_callback = ... # type: Any + connection = ... # type: Any + finalize_callback = ... # type: Any def __init__(self, pool) -> None: ... def info(self): ... @classmethod def checkout(cls, pool): ... - fairy_ref = ... # type: Any + fairy_ref = ... # type: Any def checkin(self): ... def close(self): ... def invalidate(self, e=..., soft=...): ... def get_connection(self): ... class _ConnectionFairy: - connection = ... # type: Any + connection = ... # type: Any def __init__(self, dbapi_connection, connection_record, echo) -> None: ... @property def is_valid(self): ... @@ -71,7 +71,7 @@ class _ConnectionFairy: def close(self): ... class SingletonThreadPool(Pool): - size = ... # type: Any + size = ... # type: Any def __init__(self, creator, pool_size=..., **kw) -> None: ... def recreate(self): ... def dispose(self): ... @@ -105,10 +105,10 @@ class AssertionPool(Pool): def recreate(self): ... class _DBProxy: - module = ... # type: Any - kw = ... # type: Any - poolclass = ... # type: Any - pools = ... # type: Any + module = ... # type: Any + kw = ... # type: Any + poolclass = ... # type: Any + pools = ... # type: Any def __init__(self, module, poolclass=..., **kw) -> None: ... def close(self): ... def __del__(self): ... diff --git a/third_party/2/sqlalchemy/sql/expression.pyi b/third_party/2/sqlalchemy/sql/expression.pyi index fd24299eefe3..ab7e87447b94 100644 --- a/third_party/2/sqlalchemy/sql/expression.pyi +++ b/third_party/2/sqlalchemy/sql/expression.pyi @@ -7,8 +7,8 @@ from . import base from . import selectable from . import dml -func = functions.func # type: functions._FunctionGenerator -modifier = functions.modifier # type: functions._FunctionGenerator +func = functions.func # type: functions._FunctionGenerator +modifier = functions.modifier # type: functions._FunctionGenerator from .visitors import Visitable @@ -28,40 +28,40 @@ from .selectable import Alias, Join, Select, Selectable, TableClause, \ subquery, HasPrefixes, HasSuffixes, Exists, ScalarSelect, TextAsFrom from .dml import Insert, Update, Delete, UpdateBase, ValuesBase -and_ = ... # type: Any -or_ = ... # type: Any -bindparam = ... # type: Any -select = ... # type: Any -text = ... # type: Any -table = ... # type: Any -column = ... # type: Any -over = ... # type: Any -label = ... # type: Any -case = ... # type: Any -cast = ... # type: Any -extract = ... # type: Any -tuple_ = ... # type: Any -except_ = ... # type: Any -except_all = ... # type: Any -intersect = ... # type: Any -intersect_all = ... # type: Any -union = ... # type: Any -union_all = ... # type: Any -exists = ... # type: Any -nullsfirst = ... # type: Any -nullslast = ... # type: Any -asc = ... # type: Any -desc = ... # type: Any -distinct = ... # type: Any -true = ... # type: Any -false = ... # type: Any -null = ... # type: Any -join = ... # type: Any -outerjoin = ... # type: Any -insert = ... # type: Any -update = ... # type: Any -delete = ... # type: Any -funcfilter = ... # type: Any +and_ = ... # type: Any +or_ = ... # type: Any +bindparam = ... # type: Any +select = ... # type: Any +text = ... # type: Any +table = ... # type: Any +column = ... # type: Any +over = ... # type: Any +label = ... # type: Any +case = ... # type: Any +cast = ... # type: Any +extract = ... # type: Any +tuple_ = ... # type: Any +except_ = ... # type: Any +except_all = ... # type: Any +intersect = ... # type: Any +intersect_all = ... # type: Any +union = ... # type: Any +union_all = ... # type: Any +exists = ... # type: Any +nullsfirst = ... # type: Any +nullslast = ... # type: Any +asc = ... # type: Any +desc = ... # type: Any +distinct = ... # type: Any +true = ... # type: Any +false = ... # type: Any +null = ... # type: Any +join = ... # type: Any +outerjoin = ... # type: Any +insert = ... # type: Any +update = ... # type: Any +delete = ... # type: Any +funcfilter = ... # type: Any # old names for compatibility _Executable = Executable diff --git a/third_party/2/sqlalchemy/sql/functions.pyi b/third_party/2/sqlalchemy/sql/functions.pyi index 4be9907b55bd..b65645610afe 100644 --- a/third_party/2/sqlalchemy/sql/functions.pyi +++ b/third_party/2/sqlalchemy/sql/functions.pyi @@ -13,8 +13,8 @@ class _FunctionGenerator(object): def __getattr__(self, name): ... def __call__(self, *c, **kwargs) -> Function: ... -func = ... # type: _FunctionGenerator -modifier = ... # type: _FunctionGenerator +func = ... # type: _FunctionGenerator +modifier = ... # type: _FunctionGenerator class Function(FunctionElement): ... diff --git a/third_party/2/sqlalchemy/sql/schema.pyi b/third_party/2/sqlalchemy/sql/schema.pyi index 4e03ff28a399..b2b3e4cb620a 100644 --- a/third_party/2/sqlalchemy/sql/schema.pyi +++ b/third_party/2/sqlalchemy/sql/schema.pyi @@ -36,12 +36,12 @@ class Table(DialectKWArgs, SchemaItem, TableClause): def create(self, bind=None, checkfirst=False): ... def drop(self, bind=None, checkfirst=False): ... def tometadata(self, metadata, schema=None): ... - c = ... # type: ColumnCollection - constraints = ... # type: Set[Constraint] + c = ... # type: ColumnCollection + constraints = ... # type: Set[Constraint] class Column(SchemaItem, ColumnClause): - primary_key = ... # type: Any + primary_key = ... # type: Any def __init__(self, *args, **kwargs): ... def references(self, column): ... def append_foreign_key(self, fk): ... diff --git a/third_party/2/sqlalchemy/sql/visitors.pyi b/third_party/2/sqlalchemy/sql/visitors.pyi index 3b549b487e33..6fc58e7e03bf 100644 --- a/third_party/2/sqlalchemy/sql/visitors.pyi +++ b/third_party/2/sqlalchemy/sql/visitors.pyi @@ -10,7 +10,7 @@ class VisitableType(type): class Visitable: ... class ClauseVisitor: - __traverse_options__ = ... # type: Any + __traverse_options__ = ... # type: Any def traverse_single(self, obj, **kw): ... def iterate(self, obj): ... def traverse(self, obj): ... diff --git a/third_party/2/sqlalchemy/util/_collections.pyi b/third_party/2/sqlalchemy/util/_collections.pyi index a25c7e989af1..58ca80af4696 100644 --- a/third_party/2/sqlalchemy/util/_collections.pyi +++ b/third_party/2/sqlalchemy/util/_collections.pyi @@ -9,7 +9,7 @@ threading = compat.threading itertools_filterfalse = compat.itertools_filterfalse string_types = compat.string_types -EMPTY_SET = ... # type: Any +EMPTY_SET = ... # type: Any class AbstractKeyedTuple(tuple): def keys(self): ... @@ -23,10 +23,10 @@ class _LW(AbstractKeyedTuple): def __reduce__(self): ... class ImmutableContainer: - __delitem__ = ... # type: Any + __delitem__ = ... # type: Any class immutabledict(ImmutableContainer, dict): - clear = ... # type: Any + clear = ... # type: Any def __new__(cls, *args): ... def __init__(self, *args) -> None: ... def __reduce__(self): ... @@ -89,21 +89,21 @@ class OrderedSet(set): def __iter__(self): ... def __add__(self, other): ... def update(self, iterable): ... - __ior__ = ... # type: Any + __ior__ = ... # type: Any def union(self, other): ... - __or__ = ... # type: Any + __or__ = ... # type: Any def intersection(self, other): ... - __and__ = ... # type: Any + __and__ = ... # type: Any def symmetric_difference(self, other): ... - __xor__ = ... # type: Any + __xor__ = ... # type: Any def difference(self, other): ... - __sub__ = ... # type: Any + __sub__ = ... # type: Any def intersection_update(self, other): ... - __iand__ = ... # type: Any + __iand__ = ... # type: Any def symmetric_difference_update(self, other): ... - __ixor__ = ... # type: Any + __ixor__ = ... # type: Any def difference_update(self, other): ... - __isub__ = ... # type: Any + __isub__ = ... # type: Any class IdentitySet: def __init__(self, iterable=...) -> None: ... @@ -139,7 +139,7 @@ class IdentitySet: def symmetric_difference_update(self, iterable): ... def __ixor__(self, other): ... def copy(self): ... - __copy__ = ... # type: Any + __copy__ = ... # type: Any def __len__(self): ... def __iter__(self): ... def __hash__(self): ... @@ -153,11 +153,11 @@ class WeakSequence: class OrderedIdentitySet(IdentitySet): class _working_set(OrderedSet): - __sa_hash_exempt__ = ... # type: Any + __sa_hash_exempt__ = ... # type: Any def __init__(self, iterable=...) -> None: ... class PopulateDict(dict): - creator = ... # type: Any + creator = ... # type: Any def __init__(self, creator) -> None: ... def __missing__(self, key): ... @@ -169,7 +169,7 @@ populate_column_dict = PopulateDict def unique_list(seq, hashfunc=...): ... class UniqueAppender: - data = ... # type: Any + data = ... # type: Any def __init__(self, data, via=...) -> None: ... def append(self, item): ... def __iter__(self): ... @@ -183,8 +183,8 @@ def update_copy(d, _new=..., **kw): ... def flatten_iterator(x): ... class LRUCache(dict): - capacity = ... # type: Any - threshold = ... # type: Any + capacity = ... # type: Any + threshold = ... # type: Any def __init__(self, capacity=..., threshold=...) -> None: ... def get(self, key, default=...): ... def __getitem__(self, key): ... @@ -195,9 +195,9 @@ class LRUCache(dict): def lightweight_named_tuple(name, fields): ... class ScopedRegistry: - createfunc = ... # type: Any - scopefunc = ... # type: Any - registry = ... # type: Any + createfunc = ... # type: Any + scopefunc = ... # type: Any + registry = ... # type: Any def __init__(self, createfunc, scopefunc) -> None: ... def __call__(self): ... def has(self): ... @@ -205,8 +205,8 @@ class ScopedRegistry: def clear(self): ... class ThreadLocalRegistry(ScopedRegistry): - createfunc = ... # type: Any - registry = ... # type: Any + createfunc = ... # type: Any + registry = ... # type: Any def __init__(self, createfunc) -> None: ... def __call__(self): ... def has(self): ... diff --git a/third_party/2/sqlalchemy/util/compat.pyi b/third_party/2/sqlalchemy/util/compat.pyi index ee106361571c..39ec058eaeaf 100644 --- a/third_party/2/sqlalchemy/util/compat.pyi +++ b/third_party/2/sqlalchemy/util/compat.pyi @@ -16,33 +16,33 @@ from operator import attrgetter as dottedgetter from six.moves import zip_longest -py33 = ... # type: Any -py32 = ... # type: Any -py3k = ... # type: Any -py2k = ... # type: Any -py265 = ... # type: Any -jython = ... # type: Any -pypy = ... # type: Any -win32 = ... # type: Any -cpython = ... # type: Any -next = ... # type: Any -safe_kwarg = ... # type: Any +py33 = ... # type: Any +py32 = ... # type: Any +py3k = ... # type: Any +py2k = ... # type: Any +py265 = ... # type: Any +jython = ... # type: Any +pypy = ... # type: Any +win32 = ... # type: Any +cpython = ... # type: Any +next = ... # type: Any +safe_kwarg = ... # type: Any ArgSpec = namedtuple('ArgSpec', ['args', 'varargs', 'keywords', 'defaults']) def inspect_getargspec(func): ... -string_types = ... # type: Any -binary_type = ... # type: Any +string_types = ... # type: Any +binary_type = ... # type: Any text_type = unicode -int_types = ... # type: Any +int_types = ... # type: Any def callable(fn): ... def cmp(a, b): ... -itertools_filterfalse = ... # type: Any -itertools_filter = ... # type: Any -itertools_imap = ... # type: Any +itertools_filterfalse = ... # type: Any +itertools_filter = ... # type: Any +itertools_imap = ... # type: Any def b64encode(x): ... def b64decode(x): ... @@ -53,11 +53,11 @@ def ue(s): ... def b(s): ... def import_(*args): ... -reduce = ... # type: Any +reduce = ... # type: Any def print_(*args, **kwargs): ... -time_func = ... # type: Any +time_func = ... # type: Any def reraise(tp, value, tb=..., cause=...): ... def raise_from_cause(exception, exc_info=...): ... diff --git a/third_party/2/sqlalchemy/util/langhelpers.pyi b/third_party/2/sqlalchemy/util/langhelpers.pyi index c688ba33dfb5..2dadc07db55d 100644 --- a/third_party/2/sqlalchemy/util/langhelpers.pyi +++ b/third_party/2/sqlalchemy/util/langhelpers.pyi @@ -17,9 +17,9 @@ def decorator(target): ... def public_factory(target, location): ... class PluginLoader: - group = ... # type: Any - impls = ... # type: Any - auto_fn = ... # type: Any + group = ... # type: Any + impls = ... # type: Any + auto_fn = ... # type: Any def __init__(self, group, auto_fn=...) -> None: ... def load(self, name): ... def register(self, name, modulepath, objname): ... @@ -35,8 +35,8 @@ def unbound_method_to_callable(func_or_cls): ... def generic_repr(obj, additional_kw=..., to_inspect=..., omit_kwarg=...): ... class portable_instancemethod: - target = ... # type: Any - name = ... # type: Any + target = ... # type: Any + name = ... # type: Any def __init__(self, meth) -> None: ... def __call__(self, *arg, **kw): ... @@ -47,8 +47,8 @@ def methods_equivalent(meth1, meth2): ... def as_interface(obj, cls=..., methods=..., required=...): ... class memoized_property: - fget = ... # type: Any - __name__ = ... # type: Any + fget = ... # type: Any + __name__ = ... # type: Any def __init__(self, fget, doc=...) -> None: ... def __get__(self, obj, cls): ... @classmethod @@ -57,7 +57,7 @@ class memoized_property: def memoized_instancemethod(fn): ... class group_expirable_memoized_property: - attributes = ... # type: Any + attributes = ... # type: Any def __init__(self, attributes=...) -> None: ... def expire_instance(self, instance): ... def __call__(self, fn): ... @@ -69,7 +69,7 @@ class MemoizedSlots: def dependency_for(modulename): ... class dependencies: - import_deps = ... # type: Any + import_deps = ... # type: Any def __init__(self, *deps) -> None: ... def __call__(self, fn): ... @classmethod @@ -95,12 +95,12 @@ class classproperty: def __get__(desc, self, cls): ... class hybridproperty: - func = ... # type: Any + func = ... # type: Any def __init__(self, func) -> None: ... def __get__(self, instance, owner): ... class hybridmethod: - func = ... # type: Any + func = ... # type: Any def __init__(self, func) -> None: ... def __get__(self, instance, owner): ... @@ -109,7 +109,7 @@ class _symbol(int): def __reduce__(self): ... class symbol: - symbols = ... # type: Any + symbols = ... # type: Any def __new__(cls, name, doc=..., canonical=...): ... def set_creation_order(instance): ... @@ -126,7 +126,7 @@ def warn_limited(msg, args): ... def only_once(fn): ... def chop_traceback(tb, exclude_prefix=..., exclude_suffix=...): ... -NoneType = ... # type: Any +NoneType = ... # type: Any def attrsetter(attrname): ... diff --git a/third_party/2/thrift/Thrift.pyi b/third_party/2/thrift/Thrift.pyi index 78a61d6c5791..4397fb69ce70 100644 --- a/third_party/2/thrift/Thrift.pyi +++ b/third_party/2/thrift/Thrift.pyi @@ -5,51 +5,51 @@ from typing import Any class TType: - STOP = ... # type: Any - VOID = ... # type: Any - BOOL = ... # type: Any - BYTE = ... # type: Any - I08 = ... # type: Any - DOUBLE = ... # type: Any - I16 = ... # type: Any - I32 = ... # type: Any - I64 = ... # type: Any - STRING = ... # type: Any - UTF7 = ... # type: Any - STRUCT = ... # type: Any - MAP = ... # type: Any - SET = ... # type: Any - LIST = ... # type: Any - UTF8 = ... # type: Any - UTF16 = ... # type: Any + STOP = ... # type: Any + VOID = ... # type: Any + BOOL = ... # type: Any + BYTE = ... # type: Any + I08 = ... # type: Any + DOUBLE = ... # type: Any + I16 = ... # type: Any + I32 = ... # type: Any + I64 = ... # type: Any + STRING = ... # type: Any + UTF7 = ... # type: Any + STRUCT = ... # type: Any + MAP = ... # type: Any + SET = ... # type: Any + LIST = ... # type: Any + UTF8 = ... # type: Any + UTF16 = ... # type: Any class TMessageType: - CALL = ... # type: Any - REPLY = ... # type: Any - EXCEPTION = ... # type: Any - ONEWAY = ... # type: Any + CALL = ... # type: Any + REPLY = ... # type: Any + EXCEPTION = ... # type: Any + ONEWAY = ... # type: Any class TProcessor: def process(iprot, oprot): ... class TException(Exception): - message = ... # type: Any + message = ... # type: Any def __init__(self, message=...) -> None: ... class TApplicationException(TException): - UNKNOWN = ... # type: Any - UNKNOWN_METHOD = ... # type: Any - INVALID_MESSAGE_TYPE = ... # type: Any - WRONG_METHOD_NAME = ... # type: Any - BAD_SEQUENCE_ID = ... # type: Any - MISSING_RESULT = ... # type: Any - INTERNAL_ERROR = ... # type: Any - PROTOCOL_ERROR = ... # type: Any - INVALID_TRANSFORM = ... # type: Any - INVALID_PROTOCOL = ... # type: Any - UNSUPPORTED_CLIENT_TYPE = ... # type: Any - type = ... # type: Any + UNKNOWN = ... # type: Any + UNKNOWN_METHOD = ... # type: Any + INVALID_MESSAGE_TYPE = ... # type: Any + WRONG_METHOD_NAME = ... # type: Any + BAD_SEQUENCE_ID = ... # type: Any + MISSING_RESULT = ... # type: Any + INTERNAL_ERROR = ... # type: Any + PROTOCOL_ERROR = ... # type: Any + INVALID_TRANSFORM = ... # type: Any + INVALID_PROTOCOL = ... # type: Any + UNSUPPORTED_CLIENT_TYPE = ... # type: Any + type = ... # type: Any def __init__(self, type=..., message=...) -> None: ... - message = ... # type: Any + message = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... diff --git a/third_party/2/thrift/protocol/TBinaryProtocol.pyi b/third_party/2/thrift/protocol/TBinaryProtocol.pyi index 18154573d4e5..e74547204a32 100644 --- a/third_party/2/thrift/protocol/TBinaryProtocol.pyi +++ b/third_party/2/thrift/protocol/TBinaryProtocol.pyi @@ -7,11 +7,11 @@ from typing import Any from .TProtocol import * class TBinaryProtocol(TProtocolBase): - VERSION_MASK = ... # type: Any - VERSION_1 = ... # type: Any - TYPE_MASK = ... # type: Any - strictRead = ... # type: Any - strictWrite = ... # type: Any + VERSION_MASK = ... # type: Any + VERSION_1 = ... # type: Any + TYPE_MASK = ... # type: Any + strictRead = ... # type: Any + strictWrite = ... # type: Any def __init__(self, trans, strictRead=..., strictWrite=...) -> None: ... def writeMessageBegin(self, name, type, seqid): ... def writeMessageEnd(self): ... @@ -54,8 +54,8 @@ class TBinaryProtocol(TProtocolBase): def readString(self): ... class TBinaryProtocolFactory: - strictRead = ... # type: Any - strictWrite = ... # type: Any + strictRead = ... # type: Any + strictWrite = ... # type: Any def __init__(self, strictRead=..., strictWrite=...) -> None: ... def getProtocol(self, trans): ... diff --git a/third_party/2/thrift/protocol/TProtocol.pyi b/third_party/2/thrift/protocol/TProtocol.pyi index 8ec1029e65b3..493495881015 100644 --- a/third_party/2/thrift/protocol/TProtocol.pyi +++ b/third_party/2/thrift/protocol/TProtocol.pyi @@ -7,18 +7,18 @@ from typing import Any from thrift.Thrift import * class TProtocolException(TException): - UNKNOWN = ... # type: Any - INVALID_DATA = ... # type: Any - NEGATIVE_SIZE = ... # type: Any - SIZE_LIMIT = ... # type: Any - BAD_VERSION = ... # type: Any - NOT_IMPLEMENTED = ... # type: Any - DEPTH_LIMIT = ... # type: Any - type = ... # type: Any + UNKNOWN = ... # type: Any + INVALID_DATA = ... # type: Any + NEGATIVE_SIZE = ... # type: Any + SIZE_LIMIT = ... # type: Any + BAD_VERSION = ... # type: Any + NOT_IMPLEMENTED = ... # type: Any + DEPTH_LIMIT = ... # type: Any + type = ... # type: Any def __init__(self, type=..., message=...) -> None: ... class TProtocolBase: - trans = ... # type: Any + trans = ... # type: Any def __init__(self, trans) -> None: ... def writeMessageBegin(self, name, ttype, seqid): ... def writeMessageEnd(self): ... diff --git a/third_party/2/thrift/transport/TSocket.pyi b/third_party/2/thrift/transport/TSocket.pyi index b26c04e50521..f7c411ebe589 100644 --- a/third_party/2/thrift/transport/TSocket.pyi +++ b/third_party/2/thrift/transport/TSocket.pyi @@ -7,13 +7,13 @@ from typing import Any from .TTransport import * class TSocketBase(TTransportBase): - handle = ... # type: Any + handle = ... # type: Any def close(self): ... class TSocket(TSocketBase): - host = ... # type: Any - port = ... # type: Any - handle = ... # type: Any + host = ... # type: Any + port = ... # type: Any + handle = ... # type: Any def __init__(self, host=..., port=..., unix_socket=..., socket_family=...) -> None: ... def setHandle(self, h): ... def isOpen(self): ... @@ -24,9 +24,9 @@ class TSocket(TSocketBase): def flush(self): ... class TServerSocket(TSocketBase, TServerTransportBase): - host = ... # type: Any - port = ... # type: Any - handle = ... # type: Any + host = ... # type: Any + port = ... # type: Any + handle = ... # type: Any def __init__(self, host=..., port=..., unix_socket=..., socket_family=...) -> None: ... def listen(self): ... def accept(self): ... diff --git a/third_party/2/thrift/transport/TTransport.pyi b/third_party/2/thrift/transport/TTransport.pyi index c2ffa9f006ad..d46cca0eddeb 100644 --- a/third_party/2/thrift/transport/TTransport.pyi +++ b/third_party/2/thrift/transport/TTransport.pyi @@ -6,12 +6,12 @@ from typing import Any from thrift.Thrift import TException class TTransportException(TException): - UNKNOWN = ... # type: Any - NOT_OPEN = ... # type: Any - ALREADY_OPEN = ... # type: Any - TIMED_OUT = ... # type: Any - END_OF_FILE = ... # type: Any - type = ... # type: Any + UNKNOWN = ... # type: Any + NOT_OPEN = ... # type: Any + ALREADY_OPEN = ... # type: Any + TIMED_OUT = ... # type: Any + END_OF_FILE = ... # type: Any + type = ... # type: Any def __init__(self, type=..., message=...) -> None: ... class TTransportBase: @@ -40,7 +40,7 @@ class TBufferedTransportFactory: def getTransport(self, trans): ... class TBufferedTransport(TTransportBase, CReadableTransport): - DEFAULT_BUFFER = ... # type: Any + DEFAULT_BUFFER = ... # type: Any def __init__(self, trans, rbuf_size=...) -> None: ... def isOpen(self): ... def open(self): ... @@ -82,7 +82,7 @@ class TFramedTransport(TTransportBase, CReadableTransport): def cstringio_refill(self, prefix, reqlen): ... class TFileObjectTransport(TTransportBase): - fileobj = ... # type: Any + fileobj = ... # type: Any def __init__(self, fileobj) -> None: ... def isOpen(self): ... def close(self): ... @@ -91,13 +91,13 @@ class TFileObjectTransport(TTransportBase): def flush(self): ... class TSaslClientTransport(TTransportBase, CReadableTransport): - START = ... # type: Any - OK = ... # type: Any - BAD = ... # type: Any - ERROR = ... # type: Any - COMPLETE = ... # type: Any - transport = ... # type: Any - sasl = ... # type: Any + START = ... # type: Any + OK = ... # type: Any + BAD = ... # type: Any + ERROR = ... # type: Any + COMPLETE = ... # type: Any + transport = ... # type: Any + sasl = ... # type: Any def __init__(self, transport, host, service, mechanism=..., **sasl_kwargs) -> None: ... def open(self): ... def send_sasl_msg(self, status, body): ... diff --git a/third_party/2/tornado/concurrent.pyi b/third_party/2/tornado/concurrent.pyi index f807f06c94e2..46f39a3c779e 100644 --- a/third_party/2/tornado/concurrent.pyi +++ b/third_party/2/tornado/concurrent.pyi @@ -4,13 +4,13 @@ from typing import Any -futures = ... # type: Any +futures = ... # type: Any class ReturnValueIgnoredError(Exception): ... class _TracebackLogger: - exc_info = ... # type: Any - formatted_tb = ... # type: Any + exc_info = ... # type: Any + formatted_tb = ... # type: Any def __init__(self, exc_info) -> None: ... def activate(self): ... def clear(self): ... @@ -31,8 +31,8 @@ class Future: def set_exc_info(self, exc_info): ... def __del__(self): ... -TracebackFuture = ... # type: Any -FUTURES = ... # type: Any +TracebackFuture = ... # type: Any +FUTURES = ... # type: Any def is_future(x): ... @@ -40,7 +40,7 @@ class DummyExecutor: def submit(self, fn, *args, **kwargs): ... def shutdown(self, wait=...): ... -dummy_executor = ... # type: Any +dummy_executor = ... # type: Any def run_on_executor(*args, **kwargs): ... def return_future(f): ... diff --git a/third_party/2/tornado/gen.pyi b/third_party/2/tornado/gen.pyi index 1e16521844c3..fbde2dac0e62 100644 --- a/third_party/2/tornado/gen.pyi +++ b/third_party/2/tornado/gen.pyi @@ -5,7 +5,7 @@ from typing import Any from collections import namedtuple -singledispatch = ... # type: Any +singledispatch = ... # type: Any class KeyReuseError(Exception): ... class UnknownKeyError(Exception): ... @@ -18,11 +18,11 @@ def engine(func): ... def coroutine(func, replace_callback=...): ... class Return(Exception): - value = ... # type: Any + value = ... # type: Any def __init__(self, value=...) -> None: ... class WaitIterator: - current_index = ... # type: Any + current_index = ... # type: Any def __init__(self, *args, **kwargs) -> None: ... def done(self): ... def next(self): ... @@ -33,25 +33,25 @@ class YieldPoint: def get_result(self): ... class Callback(YieldPoint): - key = ... # type: Any + key = ... # type: Any def __init__(self, key) -> None: ... - runner = ... # type: Any + runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... def get_result(self): ... class Wait(YieldPoint): - key = ... # type: Any + key = ... # type: Any def __init__(self, key) -> None: ... - runner = ... # type: Any + runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... def get_result(self): ... class WaitAll(YieldPoint): - keys = ... # type: Any + keys = ... # type: Any def __init__(self, keys) -> None: ... - runner = ... # type: Any + runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... def get_result(self): ... @@ -59,21 +59,21 @@ class WaitAll(YieldPoint): def Task(func, *args, **kwargs): ... class YieldFuture(YieldPoint): - future = ... # type: Any - io_loop = ... # type: Any + future = ... # type: Any + io_loop = ... # type: Any def __init__(self, future, io_loop=...) -> None: ... - runner = ... # type: Any - key = ... # type: Any - result_fn = ... # type: Any + runner = ... # type: Any + key = ... # type: Any + result_fn = ... # type: Any def start(self, runner): ... def is_ready(self): ... def get_result(self): ... class Multi(YieldPoint): - keys = ... # type: Any - children = ... # type: Any - unfinished_children = ... # type: Any - quiet_exceptions = ... # type: Any + keys = ... # type: Any + children = ... # type: Any + unfinished_children = ... # type: Any + quiet_exceptions = ... # type: Any def __init__(self, children, quiet_exceptions=...) -> None: ... def start(self, runner): ... def is_ready(self): ... @@ -84,20 +84,20 @@ def maybe_future(x): ... def with_timeout(timeout, future, io_loop=..., quiet_exceptions=...): ... def sleep(duration): ... -moment = ... # type: Any +moment = ... # type: Any class Runner: - gen = ... # type: Any - result_future = ... # type: Any - future = ... # type: Any - yield_point = ... # type: Any - pending_callbacks = ... # type: Any - results = ... # type: Any - running = ... # type: Any - finished = ... # type: Any - had_exception = ... # type: Any - io_loop = ... # type: Any - stack_context_deactivate = ... # type: Any + gen = ... # type: Any + result_future = ... # type: Any + future = ... # type: Any + yield_point = ... # type: Any + pending_callbacks = ... # type: Any + results = ... # type: Any + running = ... # type: Any + finished = ... # type: Any + had_exception = ... # type: Any + io_loop = ... # type: Any + stack_context_deactivate = ... # type: Any def __init__(self, gen, result_future, first_yielded) -> None: ... def register_callback(self, key): ... def is_ready(self, key): ... diff --git a/third_party/2/tornado/httpclient.pyi b/third_party/2/tornado/httpclient.pyi index e24b528be5b6..fa41d16d9827 100644 --- a/third_party/2/tornado/httpclient.pyi +++ b/third_party/2/tornado/httpclient.pyi @@ -17,8 +17,8 @@ class AsyncHTTPClient(Configurable): @classmethod def configurable_default(cls): ... def __new__(cls, io_loop=..., force_instance=..., **kwargs): ... - io_loop = ... # type: Any - defaults = ... # type: Any + io_loop = ... # type: Any + defaults = ... # type: Any def initialize(self, io_loop, defaults=...): ... def close(self): ... def fetch(self, request, callback=..., raise_error=..., **kwargs): ... @@ -27,37 +27,37 @@ class AsyncHTTPClient(Configurable): def configure(cls, impl, **kwargs): ... class HTTPRequest: - headers = ... # type: Any - proxy_host = ... # type: Any - proxy_port = ... # type: Any - proxy_username = ... # type: Any - proxy_password = ... # type: Any - url = ... # type: Any - method = ... # type: Any - body = ... # type: Any - body_producer = ... # type: Any - auth_username = ... # type: Any - auth_password = ... # type: Any - auth_mode = ... # type: Any - connect_timeout = ... # type: Any - request_timeout = ... # type: Any - follow_redirects = ... # type: Any - max_redirects = ... # type: Any - user_agent = ... # type: Any - decompress_response = ... # type: Any - network_interface = ... # type: Any - streaming_callback = ... # type: Any - header_callback = ... # type: Any - prepare_curl_callback = ... # type: Any - allow_nonstandard_methods = ... # type: Any - validate_cert = ... # type: Any - ca_certs = ... # type: Any - allow_ipv6 = ... # type: Any - client_key = ... # type: Any - client_cert = ... # type: Any - ssl_options = ... # type: Any - expect_100_continue = ... # type: Any - start_time = ... # type: Any + headers = ... # type: Any + proxy_host = ... # type: Any + proxy_port = ... # type: Any + proxy_username = ... # type: Any + proxy_password = ... # type: Any + url = ... # type: Any + method = ... # type: Any + body = ... # type: Any + body_producer = ... # type: Any + auth_username = ... # type: Any + auth_password = ... # type: Any + auth_mode = ... # type: Any + connect_timeout = ... # type: Any + request_timeout = ... # type: Any + follow_redirects = ... # type: Any + max_redirects = ... # type: Any + user_agent = ... # type: Any + decompress_response = ... # type: Any + network_interface = ... # type: Any + streaming_callback = ... # type: Any + header_callback = ... # type: Any + prepare_curl_callback = ... # type: Any + allow_nonstandard_methods = ... # type: Any + validate_cert = ... # type: Any + ca_certs = ... # type: Any + allow_ipv6 = ... # type: Any + client_key = ... # type: Any + client_cert = ... # type: Any + ssl_options = ... # type: Any + expect_100_continue = ... # type: Any + start_time = ... # type: Any def __init__(self, url, method=..., headers=..., body=..., auth_username=..., auth_password=..., auth_mode=..., connect_timeout=..., request_timeout=..., if_modified_since=..., follow_redirects=..., max_redirects=..., user_agent=..., use_gzip=..., network_interface=..., streaming_callback=..., header_callback=..., prepare_curl_callback=..., proxy_host=..., proxy_port=..., proxy_username=..., proxy_password=..., allow_nonstandard_methods=..., validate_cert=..., ca_certs=..., allow_ipv6=..., client_key=..., client_cert=..., body_producer=..., expect_100_continue=..., decompress_response=..., ssl_options=...) -> None: ... @property def headers(self): ... @@ -85,27 +85,27 @@ class HTTPRequest: def prepare_curl_callback(self, value): ... class HTTPResponse: - request = ... # type: Any - code = ... # type: Any - reason = ... # type: Any - headers = ... # type: Any - buffer = ... # type: Any - effective_url = ... # type: Any - error = ... # type: Any - request_time = ... # type: Any - time_info = ... # type: Any + request = ... # type: Any + code = ... # type: Any + reason = ... # type: Any + headers = ... # type: Any + buffer = ... # type: Any + effective_url = ... # type: Any + error = ... # type: Any + request_time = ... # type: Any + time_info = ... # type: Any def __init__(self, request, code, headers=..., buffer=..., effective_url=..., error=..., request_time=..., time_info=..., reason=...) -> None: ... - body = ... # type: Any + body = ... # type: Any def rethrow(self): ... class HTTPError(Exception): - code = ... # type: Any - response = ... # type: Any + code = ... # type: Any + response = ... # type: Any def __init__(self, code, message=..., response=...) -> None: ... class _RequestProxy: - request = ... # type: Any - defaults = ... # type: Any + request = ... # type: Any + defaults = ... # type: Any def __init__(self, request, defaults) -> None: ... def __getattr__(self, name): ... diff --git a/third_party/2/tornado/httpserver.pyi b/third_party/2/tornado/httpserver.pyi index eb20bf3749b9..f4b2aa9fff58 100644 --- a/third_party/2/tornado/httpserver.pyi +++ b/third_party/2/tornado/httpserver.pyi @@ -9,11 +9,11 @@ from tornado.util import Configurable class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate): def __init__(self, *args, **kwargs) -> None: ... - request_callback = ... # type: Any - no_keep_alive = ... # type: Any - xheaders = ... # type: Any - protocol = ... # type: Any - conn_params = ... # type: Any + request_callback = ... # type: Any + no_keep_alive = ... # type: Any + xheaders = ... # type: Any + protocol = ... # type: Any + conn_params = ... # type: Any def initialize(self, request_callback, no_keep_alive=..., io_loop=..., xheaders=..., ssl_options=..., protocol=..., decompress_request=..., chunk_size=..., max_header_size=..., idle_connection_timeout=..., body_timeout=..., max_body_size=..., max_buffer_size=...): ... @classmethod def configurable_base(cls): ... @@ -25,21 +25,21 @@ class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate) def on_close(self, server_conn): ... class _HTTPRequestContext: - address = ... # type: Any - protocol = ... # type: Any - address_family = ... # type: Any - remote_ip = ... # type: Any + address = ... # type: Any + protocol = ... # type: Any + address_family = ... # type: Any + remote_ip = ... # type: Any def __init__(self, stream, address, protocol) -> None: ... class _ServerRequestAdapter(httputil.HTTPMessageDelegate): - server = ... # type: Any - connection = ... # type: Any - request = ... # type: Any - delegate = ... # type: Any + server = ... # type: Any + connection = ... # type: Any + request = ... # type: Any + delegate = ... # type: Any def __init__(self, server, server_conn, request_conn) -> None: ... def headers_received(self, start_line, headers): ... def data_received(self, chunk): ... def finish(self): ... def on_connection_close(self): ... -HTTPRequest = ... # type: Any +HTTPRequest = ... # type: Any diff --git a/third_party/2/tornado/httputil.pyi b/third_party/2/tornado/httputil.pyi index 5d89414ff769..f8fefb523313 100644 --- a/third_party/2/tornado/httputil.pyi +++ b/third_party/2/tornado/httputil.pyi @@ -9,8 +9,8 @@ from collections import namedtuple class SSLError(Exception): ... class _NormalizedHeaderCache(dict): - size = ... # type: Any - queue = ... # type: Any + size = ... # type: Any + queue = ... # type: Any def __init__(self, size) -> None: ... def __missing__(self, key): ... @@ -29,23 +29,23 @@ class HTTPHeaders(dict): def get(self, name, default=...): ... def update(self, *args, **kwargs): ... def copy(self): ... - __copy__ = ... # type: Any + __copy__ = ... # type: Any def __deepcopy__(self, memo_dict): ... class HTTPServerRequest: - method = ... # type: Any - uri = ... # type: Any - version = ... # type: Any - headers = ... # type: Any - body = ... # type: Any - remote_ip = ... # type: Any - protocol = ... # type: Any - host = ... # type: Any - files = ... # type: Any - connection = ... # type: Any - arguments = ... # type: Any - query_arguments = ... # type: Any - body_arguments = ... # type: Any + method = ... # type: Any + uri = ... # type: Any + version = ... # type: Any + headers = ... # type: Any + body = ... # type: Any + remote_ip = ... # type: Any + protocol = ... # type: Any + host = ... # type: Any + files = ... # type: Any + connection = ... # type: Any + arguments = ... # type: Any + query_arguments = ... # type: Any + body_arguments = ... # type: Any def __init__(self, method=..., uri=..., version=..., headers=..., body=..., host=..., files=..., connection=..., start_line=...) -> None: ... def supports_http_1_1(self): ... @property diff --git a/third_party/2/tornado/ioloop.pyi b/third_party/2/tornado/ioloop.pyi index 667d98fba654..38624c5dbfad 100644 --- a/third_party/2/tornado/ioloop.pyi +++ b/third_party/2/tornado/ioloop.pyi @@ -5,15 +5,15 @@ from typing import Any from tornado.util import Configurable -signal = ... # type: Any +signal = ... # type: Any class TimeoutError(Exception): ... class IOLoop(Configurable): - NONE = ... # type: Any - READ = ... # type: Any - WRITE = ... # type: Any - ERROR = ... # type: Any + NONE = ... # type: Any + READ = ... # type: Any + WRITE = ... # type: Any + ERROR = ... # type: Any @staticmethod def instance(): ... @staticmethod @@ -55,7 +55,7 @@ class IOLoop(Configurable): def close_fd(self, fd): ... class PollIOLoop(IOLoop): - time_func = ... # type: Any + time_func = ... # type: Any def initialize(self, impl, time_func=..., **kwargs): ... def close(self, all_fds=...): ... def add_handler(self, fd, handler, events): ... @@ -71,17 +71,17 @@ class PollIOLoop(IOLoop): def add_callback_from_signal(self, callback, *args, **kwargs): ... class _Timeout: - deadline = ... # type: Any - callback = ... # type: Any - tiebreaker = ... # type: Any + deadline = ... # type: Any + callback = ... # type: Any + tiebreaker = ... # type: Any def __init__(self, deadline, callback, io_loop) -> None: ... def __lt__(self, other): ... def __le__(self, other): ... class PeriodicCallback: - callback = ... # type: Any - callback_time = ... # type: Any - io_loop = ... # type: Any + callback = ... # type: Any + callback_time = ... # type: Any + io_loop = ... # type: Any def __init__(self, callback, callback_time, io_loop=...) -> None: ... def start(self): ... def stop(self): ... diff --git a/third_party/2/tornado/locks.pyi b/third_party/2/tornado/locks.pyi index 5585f9db0fa3..ea61761d3005 100644 --- a/third_party/2/tornado/locks.pyi +++ b/third_party/2/tornado/locks.pyi @@ -8,7 +8,7 @@ class _TimeoutGarbageCollector: def __init__(self): ... class Condition(_TimeoutGarbageCollector): - io_loop = ... # type: Any + io_loop = ... # type: Any def __init__(self): ... def wait(self, timeout=None): ... def notify(self, n=1): ... @@ -31,7 +31,7 @@ class Semaphore(_TimeoutGarbageCollector): def release(self): ... def acquire(self, timeout=None): ... def __enter__(self): ... - __exit__ = ... # type: Any + __exit__ = ... # type: Any def __aenter__(self): ... def __aexit__(self, typ, value, tb): ... @@ -44,6 +44,6 @@ class Lock: def acquire(self, timeout=None): ... def release(self): ... def __enter__(self): ... - __exit__ = ... # type: Any + __exit__ = ... # type: Any def __aenter__(self): ... def __aexit__(self, typ, value, tb): ... diff --git a/third_party/2/tornado/netutil.pyi b/third_party/2/tornado/netutil.pyi index 135450ef7174..bfbc6b1c7275 100644 --- a/third_party/2/tornado/netutil.pyi +++ b/third_party/2/tornado/netutil.pyi @@ -5,11 +5,11 @@ from typing import Any from tornado.util import Configurable -ssl = ... # type: Any -certifi = ... # type: Any -xrange = ... # type: Any -ssl_match_hostname = ... # type: Any -SSLCertificateError = ... # type: Any +ssl = ... # type: Any +certifi = ... # type: Any +xrange = ... # type: Any +ssl_match_hostname = ... # type: Any +SSLCertificateError = ... # type: Any def bind_sockets(port, address=..., family=..., backlog=..., flags=...): ... def bind_unix_socket(file, mode=..., backlog=...): ... @@ -25,9 +25,9 @@ class Resolver(Configurable): def close(self): ... class ExecutorResolver(Resolver): - io_loop = ... # type: Any - executor = ... # type: Any - close_executor = ... # type: Any + io_loop = ... # type: Any + executor = ... # type: Any + close_executor = ... # type: Any def initialize(self, io_loop=..., executor=..., close_executor=...): ... def close(self): ... def resolve(self, host, port, family=...): ... @@ -39,8 +39,8 @@ class ThreadedResolver(ExecutorResolver): def initialize(self, io_loop=..., num_threads=...): ... class OverrideResolver(Resolver): - resolver = ... # type: Any - mapping = ... # type: Any + resolver = ... # type: Any + mapping = ... # type: Any def initialize(self, resolver, mapping): ... def close(self): ... def resolve(self, host, port, *args, **kwargs): ... diff --git a/third_party/2/tornado/tcpserver.pyi b/third_party/2/tornado/tcpserver.pyi index 3c032e146f04..9fa7a094c50e 100644 --- a/third_party/2/tornado/tcpserver.pyi +++ b/third_party/2/tornado/tcpserver.pyi @@ -4,13 +4,13 @@ from typing import Any -ssl = ... # type: Any +ssl = ... # type: Any class TCPServer: - io_loop = ... # type: Any - ssl_options = ... # type: Any - max_buffer_size = ... # type: Any - read_chunk_size = ... # type: Any + io_loop = ... # type: Any + ssl_options = ... # type: Any + max_buffer_size = ... # type: Any + read_chunk_size = ... # type: Any def __init__(self, io_loop=..., ssl_options=..., max_buffer_size=..., read_chunk_size=...) -> None: ... def listen(self, port, address=...): ... def add_sockets(self, sockets): ... diff --git a/third_party/2/tornado/testing.pyi b/third_party/2/tornado/testing.pyi index f32ca85c9bb5..c6fde570563a 100644 --- a/third_party/2/tornado/testing.pyi +++ b/third_party/2/tornado/testing.pyi @@ -6,19 +6,19 @@ from typing import Any import unittest import logging -AsyncHTTPClient = ... # type: Any -gen = ... # type: Any -HTTPServer = ... # type: Any -IOLoop = ... # type: Any -netutil = ... # type: Any -SimpleAsyncHTTPClient = ... # type: Any +AsyncHTTPClient = ... # type: Any +gen = ... # type: Any +HTTPServer = ... # type: Any +IOLoop = ... # type: Any +netutil = ... # type: Any +SimpleAsyncHTTPClient = ... # type: Any def get_unused_port(): ... def bind_unused_port(): ... class AsyncTestCase(unittest.TestCase): def __init__(self, *args, **kwargs): ... - io_loop = ... # type: Any + io_loop = ... # type: Any def setUp(self): ... def tearDown(self): ... def get_new_ioloop(self): ... @@ -27,8 +27,8 @@ class AsyncTestCase(unittest.TestCase): def wait(self, condition=None, timeout=5): ... class AsyncHTTPTestCase(AsyncTestCase): - http_client = ... # type: Any - http_server = ... # type: Any + http_client = ... # type: Any + http_server = ... # type: Any def setUp(self): ... def get_http_client(self): ... def get_http_server(self): ... @@ -52,10 +52,10 @@ class LogTrapTestCase(unittest.TestCase): def run(self, result=None): ... class ExpectLog(logging.Filter): - logger = ... # type: Any - regex = ... # type: Any - required = ... # type: Any - matched = ... # type: Any + logger = ... # type: Any + regex = ... # type: Any + required = ... # type: Any + matched = ... # type: Any def __init__(self, logger, regex, required=True): ... def filter(self, record): ... def __enter__(self): ... diff --git a/third_party/2/tornado/util.pyi b/third_party/2/tornado/util.pyi index fdc48c9901f5..3b0713187df9 100644 --- a/third_party/2/tornado/util.pyi +++ b/third_party/2/tornado/util.pyi @@ -4,26 +4,26 @@ from typing import Any -xrange = ... # type: Any +xrange = ... # type: Any class ObjectDict(dict): def __getattr__(self, name): ... def __setattr__(self, name, value): ... class GzipDecompressor: - decompressobj = ... # type: Any + decompressobj = ... # type: Any def __init__(self) -> None: ... def decompress(self, value, max_length=...): ... @property def unconsumed_tail(self): ... def flush(self): ... -unicode_type = ... # type: Any -basestring_type = ... # type: Any +unicode_type = ... # type: Any +basestring_type = ... # type: Any def import_object(name): ... -bytes_type = ... # type: Any +bytes_type = ... # type: Any def errno_from_exception(e): ... @@ -40,8 +40,8 @@ class Configurable: def configured_class(cls): ... class ArgReplacer: - name = ... # type: Any - arg_pos = ... # type: Any + name = ... # type: Any + arg_pos = ... # type: Any def __init__(self, func, name) -> None: ... def get_old_value(self, args, kwargs, default=...): ... def replace(self, new_value, args, kwargs): ... diff --git a/third_party/2/tornado/web.pyi b/third_party/2/tornado/web.pyi index ab61ff4c5302..ca0c7c09cda1 100644 --- a/third_party/2/tornado/web.pyi +++ b/third_party/2/tornado/web.pyi @@ -5,18 +5,18 @@ from typing import Any from tornado import httputil -MIN_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any -MAX_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any -DEFAULT_SIGNED_VALUE_VERSION = ... # type: Any -DEFAULT_SIGNED_VALUE_MIN_VERSION = ... # type: Any +MIN_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any +MAX_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any +DEFAULT_SIGNED_VALUE_VERSION = ... # type: Any +DEFAULT_SIGNED_VALUE_MIN_VERSION = ... # type: Any class RequestHandler: - SUPPORTED_METHODS = ... # type: Any - application = ... # type: Any - request = ... # type: Any - path_args = ... # type: Any - path_kwargs = ... # type: Any - ui = ... # type: Any + SUPPORTED_METHODS = ... # type: Any + application = ... # type: Any + request = ... # type: Any + path_args = ... # type: Any + path_kwargs = ... # type: Any + ui = ... # type: Any def __init__(self, application, request, **kwargs) -> None: ... def initialize(self): ... @property @@ -97,13 +97,13 @@ def removeslash(method): ... def addslash(method): ... class Application(httputil.HTTPServerConnectionDelegate): - transforms = ... # type: Any - handlers = ... # type: Any - named_handlers = ... # type: Any - default_host = ... # type: Any - settings = ... # type: Any - ui_modules = ... # type: Any - ui_methods = ... # type: Any + transforms = ... # type: Any + handlers = ... # type: Any + named_handlers = ... # type: Any + default_host = ... # type: Any + settings = ... # type: Any + ui_modules = ... # type: Any + ui_methods = ... # type: Any def __init__(self, handlers=..., default_host=..., transforms=..., **settings) -> None: ... def listen(self, port, address=..., **kwargs): ... def add_handlers(self, host_pattern, host_handlers): ... @@ -114,35 +114,35 @@ class Application(httputil.HTTPServerConnectionDelegate): def log_request(self, handler): ... class _RequestDispatcher(httputil.HTTPMessageDelegate): - application = ... # type: Any - connection = ... # type: Any - request = ... # type: Any - chunks = ... # type: Any - handler_class = ... # type: Any - handler_kwargs = ... # type: Any - path_args = ... # type: Any - path_kwargs = ... # type: Any + application = ... # type: Any + connection = ... # type: Any + request = ... # type: Any + chunks = ... # type: Any + handler_class = ... # type: Any + handler_kwargs = ... # type: Any + path_args = ... # type: Any + path_kwargs = ... # type: Any def __init__(self, application, connection) -> None: ... def headers_received(self, start_line, headers): ... - stream_request_body = ... # type: Any + stream_request_body = ... # type: Any def set_request(self, request): ... def data_received(self, data): ... def finish(self): ... def on_connection_close(self): ... - handler = ... # type: Any + handler = ... # type: Any def execute(self): ... class HTTPError(Exception): - status_code = ... # type: Any - log_message = ... # type: Any - args = ... # type: Any - reason = ... # type: Any + status_code = ... # type: Any + log_message = ... # type: Any + args = ... # type: Any + reason = ... # type: Any def __init__(self, status_code, log_message=..., *args, **kwargs) -> None: ... class Finish(Exception): ... class MissingArgumentError(HTTPError): - arg_name = ... # type: Any + arg_name = ... # type: Any def __init__(self, arg_name) -> None: ... class ErrorHandler(RequestHandler): @@ -155,16 +155,16 @@ class RedirectHandler(RequestHandler): def get(self): ... class StaticFileHandler(RequestHandler): - CACHE_MAX_AGE = ... # type: Any - root = ... # type: Any - default_filename = ... # type: Any + CACHE_MAX_AGE = ... # type: Any + root = ... # type: Any + default_filename = ... # type: Any def initialize(self, path, default_filename=...): ... @classmethod def reset(cls): ... def head(self, path): ... - path = ... # type: Any - absolute_path = ... # type: Any - modified = ... # type: Any + path = ... # type: Any + absolute_path = ... # type: Any + modified = ... # type: Any def get(self, path, include_body=...): ... def compute_etag(self): ... def set_headers(self): ... @@ -188,7 +188,7 @@ class StaticFileHandler(RequestHandler): def get_version(cls, settings, path): ... class FallbackHandler(RequestHandler): - fallback = ... # type: Any + fallback = ... # type: Any def initialize(self, fallback): ... def prepare(self): ... @@ -198,8 +198,8 @@ class OutputTransform: def transform_chunk(self, chunk, finishing): ... class GZipContentEncoding(OutputTransform): - CONTENT_TYPES = ... # type: Any - MIN_LENGTH = ... # type: Any + CONTENT_TYPES = ... # type: Any + MIN_LENGTH = ... # type: Any def __init__(self, request) -> None: ... def transform_first_chunk(self, status_code, headers, chunk, finishing): ... def transform_chunk(self, chunk, finishing): ... @@ -207,10 +207,10 @@ class GZipContentEncoding(OutputTransform): def authenticated(method): ... class UIModule: - handler = ... # type: Any - request = ... # type: Any - ui = ... # type: Any - locale = ... # type: Any + handler = ... # type: Any + request = ... # type: Any + ui = ... # type: Any + locale = ... # type: Any def __init__(self, handler) -> None: ... @property def current_user(self): ... @@ -240,21 +240,21 @@ class TemplateModule(UIModule): def html_body(self): ... class _UIModuleNamespace: - handler = ... # type: Any - ui_modules = ... # type: Any + handler = ... # type: Any + ui_modules = ... # type: Any def __init__(self, handler, ui_modules) -> None: ... def __getitem__(self, key): ... def __getattr__(self, key): ... class URLSpec: - regex = ... # type: Any - handler_class = ... # type: Any - kwargs = ... # type: Any - name = ... # type: Any + regex = ... # type: Any + handler_class = ... # type: Any + kwargs = ... # type: Any + name = ... # type: Any def __init__(self, pattern, handler, kwargs=..., name=...) -> None: ... def reverse(self, *args): ... -url = ... # type: Any +url = ... # type: Any def create_signed_value(secret, name, value, version=..., clock=..., key_version=...): ... def decode_signed_value(secret, name, value, max_age_days=..., clock=..., min_version=...): ... diff --git a/third_party/2/werkzeug/__init__.pyi b/third_party/2/werkzeug/__init__.pyi index 214536f5bd94..4c259dd9ac11 100644 --- a/third_party/2/werkzeug/__init__.pyi +++ b/third_party/2/werkzeug/__init__.pyi @@ -27,7 +27,7 @@ class module(ModuleType): def __dir__(self): ... -__version__ = ... # type: Any +__version__ = ... # type: Any run_simple = serving.run_simple test_app = testapp.test_app diff --git a/third_party/2/yaml/__init__.pyi b/third_party/2/yaml/__init__.pyi index 9d0e915f7235..8a7eb8682e60 100644 --- a/third_party/2/yaml/__init__.pyi +++ b/third_party/2/yaml/__init__.pyi @@ -12,7 +12,7 @@ from typing import Any # TODO: stubs for cyaml? # from cyaml import * -__with_libyaml__ = ... # type: Any +__with_libyaml__ = ... # type: Any def scan(stream, Loader=...): ... def parse(stream, Loader=...): ... @@ -40,11 +40,11 @@ class YAMLObjectMetaclass(type): def __init__(cls, name, bases, kwds) -> None: ... class YAMLObject: - __metaclass__ = ... # type: Any - yaml_loader = ... # type: Any - yaml_dumper = ... # type: Any - yaml_tag = ... # type: Any - yaml_flow_style = ... # type: Any + __metaclass__ = ... # type: Any + yaml_loader = ... # type: Any + yaml_dumper = ... # type: Any + yaml_tag = ... # type: Any + yaml_flow_style = ... # type: Any @classmethod def from_yaml(cls, loader, node): ... @classmethod diff --git a/third_party/2/yaml/composer.pyi b/third_party/2/yaml/composer.pyi index a6f21b4c76e8..f5f7e618bbe5 100644 --- a/third_party/2/yaml/composer.pyi +++ b/third_party/2/yaml/composer.pyi @@ -9,7 +9,7 @@ from yaml.nodes import Node, ScalarNode, CollectionNode, SequenceNode, MappingNo class ComposerError(MarkedYAMLError): ... class Composer: - anchors = ... # type: Any + anchors = ... # type: Any def __init__(self) -> None: ... def check_node(self): ... def get_node(self): ... diff --git a/third_party/2/yaml/constructor.pyi b/third_party/2/yaml/constructor.pyi index cb043a530bc1..36b71241355f 100644 --- a/third_party/2/yaml/constructor.pyi +++ b/third_party/2/yaml/constructor.pyi @@ -10,12 +10,12 @@ from typing import Any class ConstructorError(MarkedYAMLError): ... class BaseConstructor: - yaml_constructors = ... # type: Any - yaml_multi_constructors = ... # type: Any - constructed_objects = ... # type: Any - recursive_objects = ... # type: Any - state_generators = ... # type: Any - deep_construct = ... # type: Any + yaml_constructors = ... # type: Any + yaml_multi_constructors = ... # type: Any + constructed_objects = ... # type: Any + recursive_objects = ... # type: Any + state_generators = ... # type: Any + deep_construct = ... # type: Any def __init__(self) -> None: ... def check_data(self): ... def get_data(self): ... @@ -34,14 +34,14 @@ class SafeConstructor(BaseConstructor): def flatten_mapping(self, node): ... def construct_mapping(self, node, deep=...): ... def construct_yaml_null(self, node): ... - bool_values = ... # type: Any + bool_values = ... # type: Any def construct_yaml_bool(self, node): ... def construct_yaml_int(self, node): ... - inf_value = ... # type: Any - nan_value = ... # type: Any + inf_value = ... # type: Any + nan_value = ... # type: Any def construct_yaml_float(self, node): ... def construct_yaml_binary(self, node): ... - timestamp_regexp = ... # type: Any + timestamp_regexp = ... # type: Any def construct_yaml_timestamp(self, node): ... def construct_yaml_omap(self, node): ... def construct_yaml_pairs(self, node): ... diff --git a/third_party/2/yaml/emitter.pyi b/third_party/2/yaml/emitter.pyi index 37cb581330bc..99e72aca6d23 100644 --- a/third_party/2/yaml/emitter.pyi +++ b/third_party/2/yaml/emitter.pyi @@ -8,46 +8,46 @@ from yaml.error import YAMLError class EmitterError(YAMLError): ... class ScalarAnalysis: - scalar = ... # type: Any - empty = ... # type: Any - multiline = ... # type: Any - allow_flow_plain = ... # type: Any - allow_block_plain = ... # type: Any - allow_single_quoted = ... # type: Any - allow_double_quoted = ... # type: Any - allow_block = ... # type: Any + scalar = ... # type: Any + empty = ... # type: Any + multiline = ... # type: Any + allow_flow_plain = ... # type: Any + allow_block_plain = ... # type: Any + allow_single_quoted = ... # type: Any + allow_double_quoted = ... # type: Any + allow_block = ... # type: Any def __init__(self, scalar, empty, multiline, allow_flow_plain, allow_block_plain, allow_single_quoted, allow_double_quoted, allow_block) -> None: ... class Emitter: - DEFAULT_TAG_PREFIXES = ... # type: Any - stream = ... # type: Any - encoding = ... # type: Any - states = ... # type: Any - state = ... # type: Any - events = ... # type: Any - event = ... # type: Any - indents = ... # type: Any - indent = ... # type: Any - flow_level = ... # type: Any - root_context = ... # type: Any - sequence_context = ... # type: Any - mapping_context = ... # type: Any - simple_key_context = ... # type: Any - line = ... # type: Any - column = ... # type: Any - whitespace = ... # type: Any - indention = ... # type: Any - open_ended = ... # type: Any - canonical = ... # type: Any - allow_unicode = ... # type: Any - best_indent = ... # type: Any - best_width = ... # type: Any - best_line_break = ... # type: Any - tag_prefixes = ... # type: Any - prepared_anchor = ... # type: Any - prepared_tag = ... # type: Any - analysis = ... # type: Any - style = ... # type: Any + DEFAULT_TAG_PREFIXES = ... # type: Any + stream = ... # type: Any + encoding = ... # type: Any + states = ... # type: Any + state = ... # type: Any + events = ... # type: Any + event = ... # type: Any + indents = ... # type: Any + indent = ... # type: Any + flow_level = ... # type: Any + root_context = ... # type: Any + sequence_context = ... # type: Any + mapping_context = ... # type: Any + simple_key_context = ... # type: Any + line = ... # type: Any + column = ... # type: Any + whitespace = ... # type: Any + indention = ... # type: Any + open_ended = ... # type: Any + canonical = ... # type: Any + allow_unicode = ... # type: Any + best_indent = ... # type: Any + best_width = ... # type: Any + best_line_break = ... # type: Any + tag_prefixes = ... # type: Any + prepared_anchor = ... # type: Any + prepared_tag = ... # type: Any + analysis = ... # type: Any + style = ... # type: Any def __init__(self, stream, canonical=..., indent=..., width=..., allow_unicode=..., line_break=...) -> None: ... def dispose(self): ... def emit(self, event): ... @@ -102,7 +102,7 @@ class Emitter: def write_version_directive(self, version_text): ... def write_tag_directive(self, handle_text, prefix_text): ... def write_single_quoted(self, text, split=...): ... - ESCAPE_REPLACEMENTS = ... # type: Any + ESCAPE_REPLACEMENTS = ... # type: Any def write_double_quoted(self, text, split=...): ... def determine_block_hints(self, text): ... def write_folded(self, text): ... diff --git a/third_party/2/yaml/error.pyi b/third_party/2/yaml/error.pyi index 0e1f6257ffcb..247e25def7b1 100644 --- a/third_party/2/yaml/error.pyi +++ b/third_party/2/yaml/error.pyi @@ -5,21 +5,21 @@ from typing import Any class Mark: - name = ... # type: Any - index = ... # type: Any - line = ... # type: Any - column = ... # type: Any - buffer = ... # type: Any - pointer = ... # type: Any + name = ... # type: Any + index = ... # type: Any + line = ... # type: Any + column = ... # type: Any + buffer = ... # type: Any + pointer = ... # type: Any def __init__(self, name, index, line, column, buffer, pointer) -> None: ... def get_snippet(self, indent=..., max_length=...): ... class YAMLError(Exception): ... class MarkedYAMLError(YAMLError): - context = ... # type: Any - context_mark = ... # type: Any - problem = ... # type: Any - problem_mark = ... # type: Any - note = ... # type: Any + context = ... # type: Any + context_mark = ... # type: Any + problem = ... # type: Any + problem_mark = ... # type: Any + note = ... # type: Any def __init__(self, context=..., context_mark=..., problem=..., problem_mark=..., note=...) -> None: ... diff --git a/third_party/2/yaml/events.pyi b/third_party/2/yaml/events.pyi index d00d55cad11b..ff5f12b063f1 100644 --- a/third_party/2/yaml/events.pyi +++ b/third_party/2/yaml/events.pyi @@ -5,59 +5,59 @@ from typing import Any class Event: - start_mark = ... # type: Any - end_mark = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, start_mark=..., end_mark=...) -> None: ... class NodeEvent(Event): - anchor = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + anchor = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, anchor, start_mark=..., end_mark=...) -> None: ... class CollectionStartEvent(NodeEvent): - anchor = ... # type: Any - tag = ... # type: Any - implicit = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - flow_style = ... # type: Any + anchor = ... # type: Any + tag = ... # type: Any + implicit = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + flow_style = ... # type: Any def __init__(self, anchor, tag, implicit, start_mark=..., end_mark=..., flow_style=...) -> None: ... class CollectionEndEvent(Event): ... class StreamStartEvent(Event): - start_mark = ... # type: Any - end_mark = ... # type: Any - encoding = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + encoding = ... # type: Any def __init__(self, start_mark=..., end_mark=..., encoding=...) -> None: ... class StreamEndEvent(Event): ... class DocumentStartEvent(Event): - start_mark = ... # type: Any - end_mark = ... # type: Any - explicit = ... # type: Any - version = ... # type: Any - tags = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + explicit = ... # type: Any + version = ... # type: Any + tags = ... # type: Any def __init__(self, start_mark=..., end_mark=..., explicit=..., version=..., tags=...) -> None: ... class DocumentEndEvent(Event): - start_mark = ... # type: Any - end_mark = ... # type: Any - explicit = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + explicit = ... # type: Any def __init__(self, start_mark=..., end_mark=..., explicit=...) -> None: ... class AliasEvent(NodeEvent): ... class ScalarEvent(NodeEvent): - anchor = ... # type: Any - tag = ... # type: Any - implicit = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - style = ... # type: Any + anchor = ... # type: Any + tag = ... # type: Any + implicit = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + style = ... # type: Any def __init__(self, anchor, tag, implicit, value, start_mark=..., end_mark=..., style=...) -> None: ... class SequenceStartEvent(CollectionStartEvent): ... diff --git a/third_party/2/yaml/nodes.pyi b/third_party/2/yaml/nodes.pyi index 2deb1bd67906..a4039cd7bc44 100644 --- a/third_party/2/yaml/nodes.pyi +++ b/third_party/2/yaml/nodes.pyi @@ -5,31 +5,31 @@ from typing import Any class Node: - tag = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + tag = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, tag, value, start_mark, end_mark) -> None: ... class ScalarNode(Node): - id = ... # type: Any - tag = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - style = ... # type: Any + id = ... # type: Any + tag = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + style = ... # type: Any def __init__(self, tag, value, start_mark=..., end_mark=..., style=...) -> None: ... class CollectionNode(Node): - tag = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - flow_style = ... # type: Any + tag = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + flow_style = ... # type: Any def __init__(self, tag, value, start_mark=..., end_mark=..., flow_style=...) -> None: ... class SequenceNode(CollectionNode): - id = ... # type: Any + id = ... # type: Any class MappingNode(CollectionNode): - id = ... # type: Any + id = ... # type: Any diff --git a/third_party/2/yaml/parser.pyi b/third_party/2/yaml/parser.pyi index a14486b651c4..ed47b39b28eb 100644 --- a/third_party/2/yaml/parser.pyi +++ b/third_party/2/yaml/parser.pyi @@ -8,13 +8,13 @@ from yaml.error import MarkedYAMLError class ParserError(MarkedYAMLError): ... class Parser: - DEFAULT_TAGS = ... # type: Any - current_event = ... # type: Any - yaml_version = ... # type: Any - tag_handles = ... # type: Any - states = ... # type: Any - marks = ... # type: Any - state = ... # type: Any + DEFAULT_TAGS = ... # type: Any + current_event = ... # type: Any + yaml_version = ... # type: Any + tag_handles = ... # type: Any + states = ... # type: Any + marks = ... # type: Any + state = ... # type: Any def __init__(self) -> None: ... def dispose(self): ... def check_event(self, *choices): ... diff --git a/third_party/2/yaml/reader.pyi b/third_party/2/yaml/reader.pyi index c3e84d6bcbfc..20bbc8faf684 100644 --- a/third_party/2/yaml/reader.pyi +++ b/third_party/2/yaml/reader.pyi @@ -6,33 +6,33 @@ from typing import Any from yaml.error import YAMLError class ReaderError(YAMLError): - name = ... # type: Any - character = ... # type: Any - position = ... # type: Any - encoding = ... # type: Any - reason = ... # type: Any + name = ... # type: Any + character = ... # type: Any + position = ... # type: Any + encoding = ... # type: Any + reason = ... # type: Any def __init__(self, name, position, character, encoding, reason) -> None: ... class Reader: - name = ... # type: Any - stream = ... # type: Any - stream_pointer = ... # type: Any - eof = ... # type: Any - buffer = ... # type: Any - pointer = ... # type: Any - raw_buffer = ... # type: Any - raw_decode = ... # type: Any - encoding = ... # type: Any - index = ... # type: Any - line = ... # type: Any - column = ... # type: Any + name = ... # type: Any + stream = ... # type: Any + stream_pointer = ... # type: Any + eof = ... # type: Any + buffer = ... # type: Any + pointer = ... # type: Any + raw_buffer = ... # type: Any + raw_decode = ... # type: Any + encoding = ... # type: Any + index = ... # type: Any + line = ... # type: Any + column = ... # type: Any def __init__(self, stream) -> None: ... def peek(self, index=...): ... def prefix(self, length=...): ... def forward(self, length=...): ... def get_mark(self): ... def determine_encoding(self): ... - NON_PRINTABLE = ... # type: Any + NON_PRINTABLE = ... # type: Any def check_printable(self, data): ... def update(self, length): ... def update_raw(self, size=...): ... diff --git a/third_party/2/yaml/representer.pyi b/third_party/2/yaml/representer.pyi index eaa01332a620..b2a3c50bd0a6 100644 --- a/third_party/2/yaml/representer.pyi +++ b/third_party/2/yaml/representer.pyi @@ -8,13 +8,13 @@ from yaml.error import YAMLError class RepresenterError(YAMLError): ... class BaseRepresenter: - yaml_representers = ... # type: Any - yaml_multi_representers = ... # type: Any - default_style = ... # type: Any - default_flow_style = ... # type: Any - represented_objects = ... # type: Any - object_keeper = ... # type: Any - alias_key = ... # type: Any + yaml_representers = ... # type: Any + yaml_multi_representers = ... # type: Any + default_style = ... # type: Any + default_flow_style = ... # type: Any + represented_objects = ... # type: Any + object_keeper = ... # type: Any + alias_key = ... # type: Any def __init__(self, default_style=..., default_flow_style=...) -> None: ... def represent(self, data): ... def get_classobj_bases(self, cls): ... @@ -34,7 +34,7 @@ class SafeRepresenter(BaseRepresenter): def represent_bool(self, data): ... def represent_int(self, data): ... def represent_long(self, data): ... - inf_value = ... # type: Any + inf_value = ... # type: Any def represent_float(self, data): ... def represent_list(self, data): ... def represent_dict(self, data): ... diff --git a/third_party/2/yaml/resolver.pyi b/third_party/2/yaml/resolver.pyi index 70a33b274149..0920e7c47410 100644 --- a/third_party/2/yaml/resolver.pyi +++ b/third_party/2/yaml/resolver.pyi @@ -8,13 +8,13 @@ from yaml.error import YAMLError class ResolverError(YAMLError): ... class BaseResolver: - DEFAULT_SCALAR_TAG = ... # type: Any - DEFAULT_SEQUENCE_TAG = ... # type: Any - DEFAULT_MAPPING_TAG = ... # type: Any - yaml_implicit_resolvers = ... # type: Any - yaml_path_resolvers = ... # type: Any - resolver_exact_paths = ... # type: Any - resolver_prefix_paths = ... # type: Any + DEFAULT_SCALAR_TAG = ... # type: Any + DEFAULT_SEQUENCE_TAG = ... # type: Any + DEFAULT_MAPPING_TAG = ... # type: Any + yaml_implicit_resolvers = ... # type: Any + yaml_path_resolvers = ... # type: Any + resolver_exact_paths = ... # type: Any + resolver_prefix_paths = ... # type: Any def __init__(self) -> None: ... def add_implicit_resolver(cls, tag, regexp, first): ... def add_path_resolver(cls, tag, path, kind=...): ... diff --git a/third_party/2/yaml/scanner.pyi b/third_party/2/yaml/scanner.pyi index 226ec837b6e7..b4058ef8512d 100644 --- a/third_party/2/yaml/scanner.pyi +++ b/third_party/2/yaml/scanner.pyi @@ -8,23 +8,23 @@ from yaml.error import MarkedYAMLError class ScannerError(MarkedYAMLError): ... class SimpleKey: - token_number = ... # type: Any - required = ... # type: Any - index = ... # type: Any - line = ... # type: Any - column = ... # type: Any - mark = ... # type: Any + token_number = ... # type: Any + required = ... # type: Any + index = ... # type: Any + line = ... # type: Any + column = ... # type: Any + mark = ... # type: Any def __init__(self, token_number, required, index, line, column, mark) -> None: ... class Scanner: - done = ... # type: Any - flow_level = ... # type: Any - tokens = ... # type: Any - tokens_taken = ... # type: Any - indent = ... # type: Any - indents = ... # type: Any - allow_simple_key = ... # type: Any - possible_simple_keys = ... # type: Any + done = ... # type: Any + flow_level = ... # type: Any + tokens = ... # type: Any + tokens_taken = ... # type: Any + indent = ... # type: Any + indents = ... # type: Any + allow_simple_key = ... # type: Any + possible_simple_keys = ... # type: Any def __init__(self) -> None: ... def check_token(self, *choices): ... def peek_token(self): ... @@ -87,8 +87,8 @@ class Scanner: def scan_block_scalar_indentation(self): ... def scan_block_scalar_breaks(self, indent): ... def scan_flow_scalar(self, style): ... - ESCAPE_REPLACEMENTS = ... # type: Any - ESCAPE_CODES = ... # type: Any + ESCAPE_REPLACEMENTS = ... # type: Any + ESCAPE_CODES = ... # type: Any def scan_flow_scalar_non_spaces(self, double, start_mark): ... def scan_flow_scalar_spaces(self, double, start_mark): ... def scan_flow_scalar_breaks(self, double, start_mark): ... diff --git a/third_party/2/yaml/serializer.pyi b/third_party/2/yaml/serializer.pyi index b40c64c5ba24..c5020563c570 100644 --- a/third_party/2/yaml/serializer.pyi +++ b/third_party/2/yaml/serializer.pyi @@ -8,16 +8,16 @@ from yaml.error import YAMLError class SerializerError(YAMLError): ... class Serializer: - ANCHOR_TEMPLATE = ... # type: Any - use_encoding = ... # type: Any - use_explicit_start = ... # type: Any - use_explicit_end = ... # type: Any - use_version = ... # type: Any - use_tags = ... # type: Any - serialized_nodes = ... # type: Any - anchors = ... # type: Any - last_anchor_id = ... # type: Any - closed = ... # type: Any + ANCHOR_TEMPLATE = ... # type: Any + use_encoding = ... # type: Any + use_explicit_start = ... # type: Any + use_explicit_end = ... # type: Any + use_version = ... # type: Any + use_tags = ... # type: Any + serialized_nodes = ... # type: Any + anchors = ... # type: Any + last_anchor_id = ... # type: Any + closed = ... # type: Any def __init__(self, encoding=..., explicit_start=..., explicit_end=..., version=..., tags=...) -> None: ... def open(self): ... def close(self): ... diff --git a/third_party/2/yaml/tokens.pyi b/third_party/2/yaml/tokens.pyi index 19f70a1bb7ad..0d659f7fe77e 100644 --- a/third_party/2/yaml/tokens.pyi +++ b/third_party/2/yaml/tokens.pyi @@ -5,93 +5,93 @@ from typing import Any class Token: - start_mark = ... # type: Any - end_mark = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, start_mark, end_mark) -> None: ... class DirectiveToken(Token): - id = ... # type: Any - name = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + id = ... # type: Any + name = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, name, value, start_mark, end_mark) -> None: ... class DocumentStartToken(Token): - id = ... # type: Any + id = ... # type: Any class DocumentEndToken(Token): - id = ... # type: Any + id = ... # type: Any class StreamStartToken(Token): - id = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - encoding = ... # type: Any + id = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + encoding = ... # type: Any def __init__(self, start_mark=..., end_mark=..., encoding=...) -> None: ... class StreamEndToken(Token): - id = ... # type: Any + id = ... # type: Any class BlockSequenceStartToken(Token): - id = ... # type: Any + id = ... # type: Any class BlockMappingStartToken(Token): - id = ... # type: Any + id = ... # type: Any class BlockEndToken(Token): - id = ... # type: Any + id = ... # type: Any class FlowSequenceStartToken(Token): - id = ... # type: Any + id = ... # type: Any class FlowMappingStartToken(Token): - id = ... # type: Any + id = ... # type: Any class FlowSequenceEndToken(Token): - id = ... # type: Any + id = ... # type: Any class FlowMappingEndToken(Token): - id = ... # type: Any + id = ... # type: Any class KeyToken(Token): - id = ... # type: Any + id = ... # type: Any class ValueToken(Token): - id = ... # type: Any + id = ... # type: Any class BlockEntryToken(Token): - id = ... # type: Any + id = ... # type: Any class FlowEntryToken(Token): - id = ... # type: Any + id = ... # type: Any class AliasToken(Token): - id = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + id = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, value, start_mark, end_mark) -> None: ... class AnchorToken(Token): - id = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + id = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, value, start_mark, end_mark) -> None: ... class TagToken(Token): - id = ... # type: Any - value = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any + id = ... # type: Any + value = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any def __init__(self, value, start_mark, end_mark) -> None: ... class ScalarToken(Token): - id = ... # type: Any - value = ... # type: Any - plain = ... # type: Any - start_mark = ... # type: Any - end_mark = ... # type: Any - style = ... # type: Any + id = ... # type: Any + value = ... # type: Any + plain = ... # type: Any + start_mark = ... # type: Any + end_mark = ... # type: Any + style = ... # type: Any def __init__(self, value, plain, start_mark, end_mark, style=...) -> None: ... diff --git a/third_party/2and3/backports_abc.pyi b/third_party/2and3/backports_abc.pyi index a82293fa4606..1b4c3a2bb8f5 100644 --- a/third_party/2and3/backports_abc.pyi +++ b/third_party/2and3/backports_abc.pyi @@ -8,12 +8,12 @@ def mk_gen(): ... def mk_awaitable(): ... def mk_coroutine(): ... -Generator = ... # type: Any -Awaitable = ... # type: Any -Coroutine = ... # type: Any +Generator = ... # type: Any +Awaitable = ... # type: Any +Coroutine = ... # type: Any def isawaitable(obj): ... -PATCHED = ... # type: Any +PATCHED = ... # type: Any def patch(patch_inspect=True): ... diff --git a/third_party/3/dateutil/relativedelta.pyi b/third_party/3/dateutil/relativedelta.pyi index b37ef5dea7ac..3a99eaf40fef 100644 --- a/third_party/3/dateutil/relativedelta.pyi +++ b/third_party/3/dateutil/relativedelta.pyi @@ -13,16 +13,16 @@ class weekday(object): def __repr__(self) -> str: ... - weekday = ... # type: int - n = ... # type: int - -MO = ... # type: weekday -TU = ... # type: weekday -WE = ... # type: weekday -TH = ... # type: weekday -FR = ... # type: weekday -SA = ... # type: weekday -SU = ... # type: weekday + weekday = ... # type: int + n = ... # type: int + +MO = ... # type: weekday +TU = ... # type: weekday +WE = ... # type: weekday +TH = ... # type: weekday +FR = ... # type: weekday +SA = ... # type: weekday +SU = ... # type: weekday class relativedelta(object): diff --git a/third_party/3/lxml/etree.pyi b/third_party/3/lxml/etree.pyi index bf7b150e6786..39e5077e3d12 100644 --- a/third_party/3/lxml/etree.pyi +++ b/third_party/3/lxml/etree.pyi @@ -26,7 +26,7 @@ class _Element(Iterable['_Element']): pass attrib = ... # type: MutableMapping[str, str] - text = ... # type: AnyStr + text = ... # type: AnyStr tag = ... # type: str def append(self, element: '_Element') -> '_Element': ... def __iter__(self) -> ElementChildIterator: ... diff --git a/third_party/3/requests/packages/urllib3/response.pyi b/third_party/3/requests/packages/urllib3/response.pyi index 62cdaf4888a0..3c528d131148 100644 --- a/third_party/3/requests/packages/urllib3/response.pyi +++ b/third_party/3/requests/packages/urllib3/response.pyi @@ -14,8 +14,8 @@ HTTPHeaderDict = _collections.HTTPHeaderDict ProtocolError = exceptions.ProtocolError DecodeError = exceptions.DecodeError ReadTimeoutError = exceptions.ReadTimeoutError -binary_type = bytes # six.binary_type -PY3 = True # six.PY3 +binary_type = bytes # six.binary_type +PY3 = True # six.PY3 is_fp_closed = response.is_fp_closed class DeflateDecoder: diff --git a/third_party/3/requests/sessions.pyi b/third_party/3/requests/sessions.pyi index d81191cee1da..d1b79fcdba89 100644 --- a/third_party/3/requests/sessions.pyi +++ b/third_party/3/requests/sessions.pyi @@ -44,7 +44,7 @@ get_auth_from_url = utils.get_auth_from_url codes = status_codes.codes REDIRECT_STATI = models.REDIRECT_STATI -REDIRECT_CACHE_SIZE = ... # type: Any +REDIRECT_CACHE_SIZE = ... # type: Any def merge_setting(request_setting, session_setting, dict_class=...): ... def merge_hooks(request_hooks, session_hooks, dict_class=...): ... @@ -56,20 +56,20 @@ class SessionRedirectMixin: def rebuild_proxies(self, prepared_request, proxies): ... class Session(SessionRedirectMixin): - __attrs__ = ... # type: Any - headers = ... # type: Optional[MutableMapping[Text, Text]] - auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]] - proxies = ... # type: Optional[MutableMapping[Text, Text]] - hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]] - params = ... # type: Union[None, bytes, MutableMapping[Text, Text]] - stream = ... # type: bool - verify = ... # type: bool - cert = ... # type: Union[None, Text, Tuple[Text, Text]] - max_redirects = ... # type: int - trust_env = ... # type: bool - cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] - adapters = ... # type: MutableMapping - redirect_cache = ... # type: RecentlyUsedContainer + __attrs__ = ... # type: Any + headers = ... # type: Optional[MutableMapping[Text, Text]] + auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]] + proxies = ... # type: Optional[MutableMapping[Text, Text]] + hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]] + params = ... # type: Union[None, bytes, MutableMapping[Text, Text]] + stream = ... # type: bool + verify = ... # type: bool + cert = ... # type: Union[None, Text, Tuple[Text, Text]] + max_redirects = ... # type: int + trust_env = ... # type: bool + cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]] + adapters = ... # type: MutableMapping + redirect_cache = ... # type: RecentlyUsedContainer def __init__(self) -> None: ... def __enter__(self) -> 'Session': ... def __exit__(self, *args) -> None: ... diff --git a/third_party/3/six/__init__.pyi b/third_party/3/six/__init__.pyi index 0e7eb93e109c..e99c638c9e22 100644 --- a/third_party/3/six/__init__.pyi +++ b/third_party/3/six/__init__.pyi @@ -40,7 +40,7 @@ class_types = type, text_type = str binary_type = bytes -MAXSIZE = ... # type: int +MAXSIZE = ... # type: int #def add_move #def remove_move diff --git a/third_party/3/typed_ast/ast27.pyi b/third_party/3/typed_ast/ast27.pyi index dd26314e6b65..28e0dfee3c1c 100644 --- a/third_party/3/typed_ast/ast27.pyi +++ b/third_party/3/typed_ast/ast27.pyi @@ -19,15 +19,15 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ... def literal_eval(node_or_string: Union[str, AST]) -> Any: ... def walk(node: AST) -> Iterator[AST]: ... -PyCF_ONLY_AST = ... # type: int +PyCF_ONLY_AST = ... # type: int # ast classes identifier = str class AST: - _attributes = ... # type: typing.Tuple[str, ...] - _fields = ... # type: typing.Tuple[str, ...] + _attributes = ... # type: typing.Tuple[str, ...] + _fields = ... # type: typing.Tuple[str, ...] def __init__(self, *args, **kwargs) -> None: ... class mod(AST): diff --git a/third_party/3/typed_ast/ast35.pyi b/third_party/3/typed_ast/ast35.pyi index 2a18ff7d88aa..71ac1bae386b 100644 --- a/third_party/3/typed_ast/ast35.pyi +++ b/third_party/3/typed_ast/ast35.pyi @@ -19,15 +19,15 @@ def iter_fields(node: AST) -> Iterator[typing.Tuple[str, Any]]: ... def literal_eval(node_or_string: Union[str, AST]) -> Any: ... def walk(node: AST) -> Iterator[AST]: ... -PyCF_ONLY_AST = ... # type: int +PyCF_ONLY_AST = ... # type: int # ast classes identifier = str class AST: - _attributes = ... # type: typing.Tuple[str, ...] - _fields = ... # type: typing.Tuple[str, ...] + _attributes = ... # type: typing.Tuple[str, ...] + _fields = ... # type: typing.Tuple[str, ...] def __init__(self, *args, **kwargs) -> None: ... class mod(AST): diff --git a/third_party/3/werkzeug/__init__.pyi b/third_party/3/werkzeug/__init__.pyi index 490871e23f99..4c11ddf7dc50 100644 --- a/third_party/3/werkzeug/__init__.pyi +++ b/third_party/3/werkzeug/__init__.pyi @@ -26,7 +26,7 @@ class module(ModuleType): def __dir__(self): ... -__version__ = ... # type: Any +__version__ = ... # type: Any run_simple = serving.run_simple test_app = testapp.test_app