From 4fe8915d444b6b81d46edb57326ab9ba7033d209 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Mon, 9 Nov 2015 10:25:08 -0800 Subject: [PATCH] Add missing '-> None' to all __init__ methods. --- README.md | 2 +- builtins/2.7/_ast.pyi | 176 +++++++++--------- builtins/2.7/select.pyi | 2 +- builtins/3/_io.pyi | 2 +- stdlib/2.7/argparse.pyi | 30 +-- stdlib/2.7/distutils/version.pyi | 4 +- stdlib/2.7/email/MIMEText.pyi | 2 +- stdlib/2.7/email/mime/base.pyi | 2 +- stdlib/2.7/email/mime/multipart.pyi | 2 +- stdlib/2.7/email/mime/text.pyi | 2 +- stdlib/2.7/logging/__init__.pyi | 18 +- stdlib/2.7/logging/handlers.pyi | 18 +- stdlib/2.7/smtplib.pyi | 12 +- stdlib/2.7/tarfile.pyi | 26 +-- stdlib/2.7/textwrap.pyi | 2 +- stdlib/2.7/typing.pyi | 2 +- stdlib/2.7/urllib.pyi | 14 +- stdlib/2.7/xml/sax/handler.pyi | 2 +- stdlib/2.7/xml/sax/saxutils.pyi | 4 +- stdlib/2.7/xml/sax/xmlreader.pyi | 10 +- stdlib/3.3/ipaddress.pyi | 20 +- stdlib/3.4/pathlib.pyi | 16 +- stdlib/3/argparse.pyi | 22 +-- stdlib/3/csv.pyi | 6 +- stdlib/3/email/_header_value_parser.pyi | 4 +- stdlib/3/email/_parseaddr.pyi | 4 +- stdlib/3/email/_policybase.pyi | 2 +- stdlib/3/email/charset.pyi | 2 +- stdlib/3/email/contentmanager.pyi | 2 +- stdlib/3/email/errors.pyi | 6 +- stdlib/3/email/feedparser.pyi | 4 +- stdlib/3/email/generator.pyi | 4 +- stdlib/3/email/header.pyi | 4 +- stdlib/3/email/headerregistry.pyi | 6 +- stdlib/3/email/message.pyi | 4 +- stdlib/3/email/mime/application.pyi | 2 +- stdlib/3/email/mime/audio.pyi | 2 +- stdlib/3/email/mime/base.pyi | 2 +- stdlib/3/email/mime/image.pyi | 2 +- stdlib/3/email/mime/message.pyi | 2 +- stdlib/3/email/mime/multipart.pyi | 2 +- stdlib/3/email/mime/text.pyi | 2 +- stdlib/3/email/parser.pyi | 4 +- stdlib/3/email/policy.pyi | 2 +- stdlib/3/gettext.pyi | 2 +- stdlib/3/http/client.pyi | 12 +- stdlib/3/http/cookiejar.pyi | 4 +- stdlib/3/io.pyi | 12 +- stdlib/3/logging/__init__.pyi | 30 +-- stdlib/3/logging/handlers.pyi | 22 +-- stdlib/3/smtplib.pyi | 8 +- stdlib/3/ssl.pyi | 4 +- stdlib/3/typing.pyi | 2 +- stdlib/3/webbrowser.pyi | 8 +- stdlib/3/xml/etree/ElementPath.pyi | 2 +- stdlib/3/xml/etree/ElementTree.pyi | 16 +- third_party/2.7/boto/connection.pyi | 10 +- third_party/2.7/boto/ec2/elb/__init__.pyi | 2 +- third_party/2.7/croniter.pyi | 2 +- third_party/2.7/fb303/FacebookService.pyi | 32 ++-- .../2.7/google/protobuf/descriptor.pyi | 20 +- third_party/2.7/google/protobuf/message.pyi | 2 +- .../2.7/google/protobuf/reflection.pyi | 2 +- third_party/2.7/kazoo/client.pyi | 4 +- third_party/2.7/kazoo/recipe/watchers.pyi | 6 +- third_party/2.7/redis/client.pyi | 8 +- third_party/2.7/redis/connection.pyi | 18 +- third_party/2.7/requests/adapters.pyi | 2 +- third_party/2.7/requests/auth.pyi | 4 +- third_party/2.7/requests/cookies.pyi | 4 +- third_party/2.7/requests/exceptions.pyi | 2 +- third_party/2.7/requests/models.pyi | 2 +- .../2.7/requests/packages/__init__.pyi | 2 +- .../packages/urllib3/_collections.pyi | 4 +- .../requests/packages/urllib3/connection.pyi | 4 +- .../packages/urllib3/connectionpool.pyi | 6 +- .../requests/packages/urllib3/exceptions.pyi | 10 +- .../2.7/requests/packages/urllib3/fields.pyi | 2 +- .../requests/packages/urllib3/poolmanager.pyi | 4 +- .../2.7/requests/packages/urllib3/request.pyi | 2 +- .../requests/packages/urllib3/response.pyi | 6 +- .../requests/packages/urllib3/util/retry.pyi | 2 +- .../packages/urllib3/util/timeout.pyi | 2 +- third_party/2.7/requests/structures.pyi | 4 +- third_party/2.7/routes/mapper.pyi | 4 +- third_party/2.7/routes/util.pyi | 2 +- third_party/2.7/scribe/scribe.pyi | 8 +- third_party/2.7/scribe/ttypes.pyi | 2 +- .../2.7/sqlalchemy/dialects/mysql/base.pyi | 70 +++---- .../2.7/sqlalchemy/engine/strategies.pyi | 4 +- third_party/2.7/sqlalchemy/engine/url.pyi | 2 +- third_party/2.7/sqlalchemy/exc.pyi | 12 +- third_party/2.7/sqlalchemy/orm/session.pyi | 6 +- third_party/2.7/sqlalchemy/pool.pyi | 14 +- third_party/2.7/sqlalchemy/sql/visitors.pyi | 2 +- .../2.7/sqlalchemy/util/_collections.pyi | 26 +-- .../2.7/sqlalchemy/util/langhelpers.pyi | 20 +- third_party/2.7/thrift/Thrift.pyi | 4 +- .../2.7/thrift/protocol/TBinaryProtocol.pyi | 4 +- third_party/2.7/thrift/protocol/TProtocol.pyi | 4 +- third_party/2.7/thrift/transport/TSocket.pyi | 4 +- .../2.7/thrift/transport/TTransport.pyi | 12 +- third_party/2.7/tornado/concurrent.pyi | 4 +- third_party/2.7/tornado/gen.pyi | 16 +- third_party/2.7/tornado/httpclient.pyi | 10 +- third_party/2.7/tornado/httpserver.pyi | 6 +- third_party/2.7/tornado/httputil.pyi | 6 +- third_party/2.7/tornado/ioloop.pyi | 4 +- third_party/2.7/tornado/tcpserver.pyi | 2 +- third_party/2.7/tornado/util.pyi | 4 +- third_party/2.7/tornado/web.pyi | 22 +-- third_party/2.7/yaml/__init__.pyi | 2 +- third_party/2.7/yaml/composer.pyi | 2 +- third_party/2.7/yaml/constructor.pyi | 2 +- third_party/2.7/yaml/dumper.pyi | 6 +- third_party/2.7/yaml/emitter.pyi | 4 +- third_party/2.7/yaml/error.pyi | 4 +- third_party/2.7/yaml/events.pyi | 14 +- third_party/2.7/yaml/loader.pyi | 6 +- third_party/2.7/yaml/nodes.pyi | 6 +- third_party/2.7/yaml/parser.pyi | 2 +- third_party/2.7/yaml/reader.pyi | 4 +- third_party/2.7/yaml/representer.pyi | 2 +- third_party/2.7/yaml/resolver.pyi | 2 +- third_party/2.7/yaml/scanner.pyi | 4 +- third_party/2.7/yaml/serializer.pyi | 2 +- third_party/2.7/yaml/tokens.pyi | 14 +- third_party/3/requests/adapters.pyi | 2 +- third_party/3/requests/auth.pyi | 4 +- third_party/3/requests/cookies.pyi | 4 +- third_party/3/requests/exceptions.pyi | 2 +- third_party/3/requests/models.pyi | 2 +- third_party/3/requests/packages/__init__.pyi | 2 +- .../packages/urllib3/_collections.pyi | 4 +- .../requests/packages/urllib3/connection.pyi | 4 +- .../packages/urllib3/connectionpool.pyi | 6 +- .../requests/packages/urllib3/exceptions.pyi | 10 +- .../3/requests/packages/urllib3/fields.pyi | 2 +- .../requests/packages/urllib3/poolmanager.pyi | 4 +- .../3/requests/packages/urllib3/request.pyi | 2 +- .../3/requests/packages/urllib3/response.pyi | 6 +- .../requests/packages/urllib3/util/retry.pyi | 2 +- .../packages/urllib3/util/timeout.pyi | 2 +- third_party/3/requests/structures.pyi | 4 +- 144 files changed, 580 insertions(+), 580 deletions(-) diff --git a/README.md b/README.md index 87932a48f..4637b0821 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ __name__ = ... # type: str __package__ = ... # type: None class date(object): - def __init__(self, year: int, month: int, day: int): ... + def __init__(self, year: int, month: int, day: int) -> None: ... @classmethod def fromtimestamp(cls, timestamp: int or float) -> date: ... @classmethod diff --git a/builtins/2.7/_ast.pyi b/builtins/2.7/_ast.pyi index 961c2e64d..4fb5b5cfb 100644 --- a/builtins/2.7/_ast.pyi +++ b/builtins/2.7/_ast.pyi @@ -52,74 +52,74 @@ class unaryop(AST): class Add(operator): - def __init__(self): + def __init__(self) -> None: pass class And(boolop): - def __init__(self): + def __init__(self) -> None: pass class Assert(stmt): test = ... # type: Any msg = ... # type: Any - def __init__(self, test = ..., msg = ...): + def __init__(self, test = ..., msg = ...) -> None: pass class Assign(stmt): targets = ... # type: Any value = ... # type: Any - def __init__(self, targets = ..., value = ...): + def __init__(self, targets = ..., value = ...) -> None: pass class Attribute(expr): value = ... # type: Any attr = ... # type: Any ctx = ... # type: Any - def __init__(self, value = ..., attr = ..., ctx = ...): + def __init__(self, value = ..., attr = ..., ctx = ...) -> None: pass class AugAssign(stmt): target = ... # type: Any op = ... # type: Any value = ... # type: Any - def __init__(self, target = ..., op = ..., value = ...): + def __init__(self, target = ..., op = ..., value = ...) -> None: pass class AugLoad(expr_context): - def __init__(self): + def __init__(self) -> None: pass class AugStore(expr_context): - def __init__(self): + def __init__(self) -> None: pass class BinOp(expr): left = ... # type: Any op = ... # type: Any right = ... # type: Any - def __init__(self, left = ..., op = ..., right = ...): + def __init__(self, left = ..., op = ..., right = ...) -> None: pass class BitAnd(operator): - def __init__(self): + def __init__(self) -> None: pass class BitOr(operator): - def __init__(self): + def __init__(self) -> None: pass class BitXor(operator): - def __init__(self): + def __init__(self) -> None: pass class BoolOp(expr): op = ... # type: Any values = ... # type: Any - def __init__(self, op = ..., values = ...): + def __init__(self, op = ..., values = ...) -> None: pass class Break(stmt): - def __init__(self): + def __init__(self) -> None: pass class Call(expr): @@ -128,7 +128,7 @@ class Call(expr): keywords = ... # type: Any starargs = ... # type: Any kwargs = ... # type: Any - def __init__(self, func = ..., args = ..., keywords = ..., starargs = ..., kwargs = ...): + def __init__(self, func = ..., args = ..., keywords = ..., starargs = ..., kwargs = ...) -> None: pass class ClassDef(stmt): @@ -136,85 +136,85 @@ class ClassDef(stmt): bases = ... # type: Any body = ... # type: Any decorator_list = ... # type: Any - def __init__(self, name = ..., bases = ..., body = ..., decorator_list = ...): + def __init__(self, name = ..., bases = ..., body = ..., decorator_list = ...) -> None: pass class Compare(expr): left = ... # type: Any ops = ... # type: Any comparators = ... # type: Any - def __init__(self, left = ..., ops = ..., comparators = ...): + def __init__(self, left = ..., ops = ..., comparators = ...) -> None: pass class Continue(stmt): - def __init__(self): + def __init__(self) -> None: pass class Del(expr_context): - def __init__(self): + def __init__(self) -> None: pass class Delete(stmt): targets = ... # type: Any - def __init__(self, targets = ...): + def __init__(self, targets = ...) -> None: pass class Dict(expr): keys = ... # type: Any values = ... # type: Any - def __init__(self, keys = ..., values = ...): + def __init__(self, keys = ..., values = ...) -> None: pass class DictComp(expr): key = ... # type: Any value = ... # type: Any generators = ... # type: Any - def __init__(self, key = ..., value = ..., generators = ...): + def __init__(self, key = ..., value = ..., generators = ...) -> None: pass class Div(operator): - def __init__(self): + def __init__(self) -> None: pass class Ellipsis(slice): - def __init__(self): + def __init__(self) -> None: pass class Eq(cmpop): - def __init__(self): + def __init__(self) -> None: pass class ExceptHandler(excepthandler): type = ... # type: Any name = ... # type: Any body = ... # type: Any - def __init__(self, type = ..., name = ..., body = ...): + def __init__(self, type = ..., name = ..., body = ...) -> None: pass class Exec(stmt): body = ... # type: Any globals = ... # type: Any locals = ... # type: Any - def __init__(self, body = ..., globals = ..., locals = ...): + def __init__(self, body = ..., globals = ..., locals = ...) -> None: pass class Expr(stmt): value = ... # type: Any - def __init__(self, value = ...): + def __init__(self, value = ...) -> None: pass class Expression(mod): body = ... # type: Any - def __init__(self, body = ...): + def __init__(self, body = ...) -> None: pass class ExtSlice(slice): dims = ... # type: Any - def __init__(self, dims = ...): + def __init__(self, dims = ...) -> None: pass class FloorDiv(operator): - def __init__(self): + def __init__(self) -> None: pass class For(stmt): @@ -222,7 +222,7 @@ class For(stmt): iter = ... # type: Any body = ... # type: Any orelse = ... # type: Any - def __init__(self, target = ..., iter = ..., body = ..., orelse = ...): + def __init__(self, target = ..., iter = ..., body = ..., orelse = ...) -> None: pass class FunctionDef(stmt): @@ -230,285 +230,285 @@ class FunctionDef(stmt): args = ... # type: Any body = ... # type: Any decorator_list = ... # type: Any - def __init__(self, name = ..., args = ..., body = ..., decorator_list = ...): + def __init__(self, name = ..., args = ..., body = ..., decorator_list = ...) -> None: pass class GeneratorExp(expr): elt = ... # type: Any generators = ... # type: Any - def __init__(self, elt = ..., generators = ...): + def __init__(self, elt = ..., generators = ...) -> None: pass class Global(stmt): names = ... # type: Any - def __init__(self, names = ...): + def __init__(self, names = ...) -> None: pass class Gt(cmpop): - def __init__(self): + def __init__(self) -> None: pass class GtE(cmpop): - def __init__(self): + def __init__(self) -> None: pass class If(stmt): test = ... # type: Any body = ... # type: Any orelse = ... # type: Any - def __init__(self, test = ..., body = ..., orelse = ...): + def __init__(self, test = ..., body = ..., orelse = ...) -> None: pass class IfExp(expr): test = ... # type: Any body = ... # type: Any orelse = ... # type: Any - def __init__(self, test = ..., body = ..., orelse = ...): + def __init__(self, test = ..., body = ..., orelse = ...) -> None: pass class Import(stmt): names = ... # type: Any - def __init__(self, names = ...): + def __init__(self, names = ...) -> None: pass class ImportFrom(stmt): module = ... # type: Any names = ... # type: Any level = ... # type: Any - def __init__(self, module = ..., names = ..., level = ...): + def __init__(self, module = ..., names = ..., level = ...) -> None: pass class In(cmpop): - def __init__(self): + def __init__(self) -> None: pass class Index(slice): value = ... # type: Any - def __init__(self, value = ...): + def __init__(self, value = ...) -> None: pass class Interactive(mod): body = ... # type: Any - def __init__(self, body = ...): + def __init__(self, body = ...) -> None: pass class Invert(unaryop): - def __init__(self): + def __init__(self) -> None: pass class Is(cmpop): - def __init__(self): + def __init__(self) -> None: pass class IsNot(cmpop): - def __init__(self): + def __init__(self) -> None: pass class LShift(operator): - def __init__(self): + def __init__(self) -> None: pass class Lambda(expr): args = ... # type: Any body = ... # type: Any - def __init__(self, args = ..., body = ...): + def __init__(self, args = ..., body = ...) -> None: pass class List(expr): elts = ... # type: Any ctx = ... # type: Any - def __init__(self, elts = ..., ctx = ...): + def __init__(self, elts = ..., ctx = ...) -> None: pass class ListComp(expr): elt = ... # type: Any generators = ... # type: Any - def __init__(self, elt = ..., generators = ...): + def __init__(self, elt = ..., generators = ...) -> None: pass class Load(expr_context): - def __init__(self): + def __init__(self) -> None: pass class Lt(cmpop): - def __init__(self): + def __init__(self) -> None: pass class LtE(cmpop): - def __init__(self): + def __init__(self) -> None: pass class Mod(operator): - def __init__(self): + def __init__(self) -> None: pass class Module(mod): body = ... # type: Any - def __init__(self, body = ...): + def __init__(self, body = ...) -> None: pass class Mult(operator): - def __init__(self): + def __init__(self) -> None: pass class Name(expr): id = ... # type: Any ctx = ... # type: Any - def __init__(self, id = ..., ctx = ...): + def __init__(self, id = ..., ctx = ...) -> None: pass class Not(unaryop): - def __init__(self): + def __init__(self) -> None: pass class NotEq(cmpop): - def __init__(self): + def __init__(self) -> None: pass class NotIn(cmpop): - def __init__(self): + def __init__(self) -> None: pass class Num(expr): n = ... # type: Any - def __init__(self, n = ...): + def __init__(self, n = ...) -> None: pass class Or(boolop): - def __init__(self): + def __init__(self) -> None: pass class Param(expr_context): - def __init__(self): + def __init__(self) -> None: pass class Pass(stmt): - def __init__(self): + def __init__(self) -> None: pass class Pow(operator): - def __init__(self): + def __init__(self) -> None: pass class Print(stmt): dest = ... # type: Any values = ... # type: Any nl = ... # type: Any - def __init__(self, dest = ..., values = ..., nl = ...): + def __init__(self, dest = ..., values = ..., nl = ...) -> None: pass class RShift(operator): - def __init__(self): + def __init__(self) -> None: pass class Raise(stmt): type = ... # type: Any inst = ... # type: Any tback = ... # type: Any - def __init__(self, type = ..., inst = ..., tback = ...): + def __init__(self, type = ..., inst = ..., tback = ...) -> None: pass class Repr(expr): value = ... # type: Any - def __init__(self, value = ...): + def __init__(self, value = ...) -> None: pass class Return(stmt): value = ... # type: Any - def __init__(self, value = ...): + def __init__(self, value = ...) -> None: pass class Set(expr): elts = ... # type: Any - def __init__(self, elts = ...): + def __init__(self, elts = ...) -> None: pass class SetComp(expr): elt = ... # type: Any generators = ... # type: Any - def __init__(self, elt = ..., generators = ...): + def __init__(self, elt = ..., generators = ...) -> None: pass class Slice(slice): lower = ... # type: Any upper = ... # type: Any step = ... # type: Any - def __init__(self, lower = ..., upper = ..., step = ...): + def __init__(self, lower = ..., upper = ..., step = ...) -> None: pass class Store(expr_context): - def __init__(self): + def __init__(self) -> None: pass class Str(expr): s = ... # type: Any - def __init__(self, s = ...): + def __init__(self, s = ...) -> None: pass class Sub(operator): - def __init__(self): + def __init__(self) -> None: pass class Subscript(expr): value = ... # type: Any slice = ... # type: Any ctx = ... # type: Any - def __init__(self, value = ..., slice = ..., ctx = ...): + def __init__(self, value = ..., slice = ..., ctx = ...) -> None: pass class Suite(mod): body = ... # type: Any - def __init__(self, body = ...): + def __init__(self, body = ...) -> None: pass class TryExcept(stmt): body = ... # type: Any handlers = ... # type: Any orelse = ... # type: Any - def __init__(self, body = ..., handlers = ..., orelse = ...): + def __init__(self, body = ..., handlers = ..., orelse = ...) -> None: pass class TryFinally(stmt): body = ... # type: Any finalbody = ... # type: Any - def __init__(self, body = ..., finalbody = ...): + def __init__(self, body = ..., finalbody = ...) -> None: pass class Tuple(expr): elts = ... # type: Any ctx = ... # type: Any - def __init__(self, elts = ..., ctx = ...): + def __init__(self, elts = ..., ctx = ...) -> None: pass class UAdd(unaryop): - def __init__(self): + def __init__(self) -> None: pass class USub(unaryop): - def __init__(self): + def __init__(self) -> None: pass class UnaryOp(expr): op = ... # type: Any operand = ... # type: Any - def __init__(self, op = ..., operand = ...): + def __init__(self, op = ..., operand = ...) -> None: pass class While(stmt): test = ... # type: Any body = ... # type: Any orelse = ... # type: Any - def __init__(self, test = ..., body = ..., orelse = ...): + def __init__(self, test = ..., body = ..., orelse = ...) -> None: pass class With(stmt): context_expr = ... # type: Any optional_vars = ... # type: Any body = ... # type: Any - def __init__(self, context_expr = ..., optional_vars = ..., body = ...): + def __init__(self, context_expr = ..., optional_vars = ..., body = ...) -> None: pass class Yield(expr): value = ... # type: Any - def __init__(self, value = ...): + def __init__(self, value = ...) -> None: pass diff --git a/builtins/2.7/select.pyi b/builtins/2.7/select.pyi index 533114405..f17b22dae 100644 --- a/builtins/2.7/select.pyi +++ b/builtins/2.7/select.pyi @@ -77,7 +77,7 @@ class kevent(object): flags = ... # type: int ident = ... # type: Any udata = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... class kqueue(object): closed = ... # type: bool diff --git a/builtins/3/_io.pyi b/builtins/3/_io.pyi index 48bc504d3..25efa2f26 100644 --- a/builtins/3/_io.pyi +++ b/builtins/3/_io.pyi @@ -5,7 +5,7 @@ from typing import Any class _IOBase: - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... @property def closed(self): ... def close(self): ... diff --git a/stdlib/2.7/argparse.pyi b/stdlib/2.7/argparse.pyi index 44fde2a5a..ddbf93979 100644 --- a/stdlib/2.7/argparse.pyi +++ b/stdlib/2.7/argparse.pyi @@ -14,13 +14,13 @@ REMAINDER = ... # type: Any class _AttributeHolder: ... class HelpFormatter: - def __init__(self, prog, indent_increment=2, max_help_position=24, width=None): ... + def __init__(self, prog, indent_increment=2, max_help_position=24, width=None) -> None: ... class _Section: formatter = ... # type: Any parent = ... # type: Any heading = ... # type: Any items = ... # type: Any - def __init__(self, formatter, parent, heading=None): ... + def __init__(self, formatter, parent, heading=None) -> None: ... def format_help(self): ... def start_section(self, heading): ... def end_section(self): ... @@ -37,7 +37,7 @@ class ArgumentDefaultsHelpFormatter(HelpFormatter): ... class ArgumentError(Exception): argument_name = ... # type: Any message = ... # type: Any - def __init__(self, argument, message): ... + def __init__(self, argument, message) -> None: ... class ArgumentTypeError(Exception): ... @@ -67,10 +67,10 @@ class _StoreConstAction(Action): def __call__(self, parser, namespace, values, option_string=None): ... class _StoreTrueAction(_StoreConstAction): - def __init__(self, option_strings, dest, default=False, required=False, help=None): ... + def __init__(self, option_strings, dest, default=False, required=False, help=None) -> None: ... class _StoreFalseAction(_StoreConstAction): - def __init__(self, option_strings, dest, default=True, required=False, help=None): ... + def __init__(self, option_strings, dest, default=True, required=False, help=None) -> None: ... class _AppendAction(Action): def __init__(self, option_strings, dest, nargs=None, const=None, default=None, type=None, @@ -83,31 +83,31 @@ class _AppendConstAction(Action): def __call__(self, parser, namespace, values, option_string=None): ... class _CountAction(Action): - def __init__(self, option_strings, dest, default=None, required=False, help=None): ... + def __init__(self, option_strings, dest, default=None, required=False, help=None) -> None: ... def __call__(self, parser, namespace, values, option_string=None): ... class _HelpAction(Action): - def __init__(self, option_strings, dest=..., default=..., help=None): ... + def __init__(self, option_strings, dest=..., default=..., help=None) -> None: ... def __call__(self, parser, namespace, values, option_string=None): ... class _VersionAction(Action): version = ... # type: Any - def __init__(self, option_strings, version=None, dest=..., default=..., help=''): ... + def __init__(self, option_strings, version=None, dest=..., default=..., help='') -> None: ... def __call__(self, parser, namespace, values, option_string=None): ... class _SubParsersAction(Action): class _ChoicesPseudoAction(Action): - def __init__(self, name, help): ... - def __init__(self, option_strings, prog, parser_class, dest=..., help=None, metavar=None): ... + def __init__(self, name, help) -> None: ... + def __init__(self, option_strings, prog, parser_class, dest=..., help=None, metavar=None) -> None: ... def add_parser(self, name, **kwargs): ... def __call__(self, parser, namespace, values, option_string=None): ... class FileType: - def __init__(self, mode='', bufsize=-1): ... + def __init__(self, mode='', bufsize=-1) -> None: ... def __call__(self, string): ... class Namespace(_AttributeHolder): - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... __hash__ = ... # type: Any def __eq__(self, other): ... def __ne__(self, other): ... @@ -118,7 +118,7 @@ class _ActionsContainer: argument_default = ... # type: Any prefix_chars = ... # type: Any conflict_handler = ... # type: Any - def __init__(self, description, prefix_chars, argument_default, conflict_handler): ... + def __init__(self, description, prefix_chars, argument_default, conflict_handler) -> None: ... def register(self, registry_name, value, object): ... def set_defaults(self, **kwargs): ... def get_default(self, dest): ... @@ -140,11 +140,11 @@ class _ActionsContainer: class _ArgumentGroup(_ActionsContainer): title = ... # type: Any - def __init__(self, container, title=None, description=None, **kwargs): ... + def __init__(self, container, title=None, description=None, **kwargs) -> None: ... class _MutuallyExclusiveGroup(_ArgumentGroup): required = ... # type: Any - def __init__(self, container, required=False): ... + def __init__(self, container, required=False) -> None: ... class ArgumentParser(_AttributeHolder, _ActionsContainer): prog = ... # type: Any diff --git a/stdlib/2.7/distutils/version.pyi b/stdlib/2.7/distutils/version.pyi index 4b8ef7ffc..dbf76befc 100644 --- a/stdlib/2.7/distutils/version.pyi +++ b/stdlib/2.7/distutils/version.pyi @@ -5,7 +5,7 @@ from typing import Any class Version: - def __init__(self, vstring=None): ... + def __init__(self, vstring=None) -> None: ... class StrictVersion(Version): version_re = ... # type: Any @@ -16,7 +16,7 @@ class StrictVersion(Version): class LooseVersion(Version): component_re = ... # type: Any - def __init__(self, vstring=None): ... + def __init__(self, vstring=None) -> None: ... vstring = ... # type: Any version = ... # type: Any def parse(self, vstring): ... diff --git a/stdlib/2.7/email/MIMEText.pyi b/stdlib/2.7/email/MIMEText.pyi index 220c6e7fb..163a86a97 100644 --- a/stdlib/2.7/email/MIMEText.pyi +++ b/stdlib/2.7/email/MIMEText.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEText(MIMENonMultipart): - def __init__(self, _text, _subtype='', _charset=''): ... + def __init__(self, _text, _subtype='', _charset='') -> None: ... diff --git a/stdlib/2.7/email/mime/base.pyi b/stdlib/2.7/email/mime/base.pyi index 3cfabd24e..82554dadd 100644 --- a/stdlib/2.7/email/mime/base.pyi +++ b/stdlib/2.7/email/mime/base.pyi @@ -7,4 +7,4 @@ # TODO #class MIMEBase(message.Message): class MIMEBase: - def __init__(self, _maintype, _subtype, **_params): ... + def __init__(self, _maintype, _subtype, **_params) -> None: ... diff --git a/stdlib/2.7/email/mime/multipart.pyi b/stdlib/2.7/email/mime/multipart.pyi index 682faf498..f4408fce0 100644 --- a/stdlib/2.7/email/mime/multipart.pyi +++ b/stdlib/2.7/email/mime/multipart.pyi @@ -5,4 +5,4 @@ from email.mime.base import MIMEBase class MIMEMultipart(MIMEBase): - def __init__(self, _subtype='', boundary=None, _subparts=None, **_params): ... + def __init__(self, _subtype='', boundary=None, _subparts=None, **_params) -> None: ... diff --git a/stdlib/2.7/email/mime/text.pyi b/stdlib/2.7/email/mime/text.pyi index b48956f6b..4d86f7d18 100644 --- a/stdlib/2.7/email/mime/text.pyi +++ b/stdlib/2.7/email/mime/text.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEText(MIMENonMultipart): - def __init__(self, _text, _subtype='', _charset=''): ... + def __init__(self, _text, _subtype='', _charset='') -> None: ... diff --git a/stdlib/2.7/logging/__init__.pyi b/stdlib/2.7/logging/__init__.pyi index 64c7eb0bf..a29748b4c 100644 --- a/stdlib/2.7/logging/__init__.pyi +++ b/stdlib/2.7/logging/__init__.pyi @@ -46,7 +46,7 @@ class PercentStyle: default_format = ... # type: Any asctime_format = ... # type: Any asctime_search = ... # type: Any - def __init__(self, fmt): ... + def __init__(self, fmt) -> None: ... def usesTime(self): ... def format(self, record): ... @@ -60,7 +60,7 @@ class StringTemplateStyle(PercentStyle): default_format = ... # type: Any asctime_format = ... # type: Any asctime_search = ... # type: Any - def __init__(self, fmt): ... + def __init__(self, fmt) -> None: ... def usesTime(self): ... def format(self, record): ... @@ -81,7 +81,7 @@ class Formatter: class BufferingFormatter: linefmt = ... # type: Any - def __init__(self, linefmt=None): ... + def __init__(self, linefmt=None) -> None: ... def formatHeader(self, records): ... def formatFooter(self, records): ... def format(self, records): ... @@ -122,7 +122,7 @@ class Handler(Filterer): class StreamHandler(Handler): terminator = ... # type: Any stream = ... # type: Any - def __init__(self, stream=None): ... + def __init__(self, stream=None) -> None: ... def flush(self): ... def emit(self, record): ... @@ -137,13 +137,13 @@ class FileHandler(StreamHandler): def emit(self, record): ... class _StderrHandler(StreamHandler): - def __init__(self, level=...): ... + def __init__(self, level=...) -> None: ... lastResort = ... # type: Any class PlaceHolder: loggerMap = ... # type: Any - def __init__(self, alogger): ... + def __init__(self, alogger) -> None: ... def append(self, alogger): ... def setLoggerClass(klass): ... @@ -156,7 +156,7 @@ class Manager: loggerDict = ... # type: Any loggerClass = ... # type: Any logRecordFactory = ... # type: Any - def __init__(self, rootnode): ... + def __init__(self, rootnode) -> None: ... def getLogger(self, name): ... def setLoggerClass(self, klass): ... def setLogRecordFactory(self, factory): ... @@ -192,12 +192,12 @@ class Logger(Filterer): def getChild(self, suffix: str) -> Logger: ... class RootLogger(Logger): - def __init__(self, level): ... + def __init__(self, level) -> None: ... class LoggerAdapter: logger = ... # type: Any extra = ... # type: Any - def __init__(self, logger, extra): ... + def __init__(self, logger, extra) -> None: ... def process(self, msg, kwargs): ... def debug(self, msg: str, *args, **kwargs) -> None: ... def info(self, msg: str, *args, **kwargs) -> None: ... diff --git a/stdlib/2.7/logging/handlers.pyi b/stdlib/2.7/logging/handlers.pyi index b69f41f4a..ea0127129 100644 --- a/stdlib/2.7/logging/handlers.pyi +++ b/stdlib/2.7/logging/handlers.pyi @@ -18,7 +18,7 @@ class BaseRotatingHandler(logging.FileHandler): encoding = ... # type: Any namer = ... # type: Any rotator = ... # type: Any - def __init__(self, filename, mode, encoding=None, delay=0): ... + def __init__(self, filename, mode, encoding=None, delay=0) -> None: ... def emit(self, record): ... def rotation_filename(self, default_name): ... def rotate(self, source, dest): ... @@ -65,7 +65,7 @@ class SocketHandler(logging.Handler): retryStart = ... # type: Any retryMax = ... # type: Any retryFactor = ... # type: Any - def __init__(self, host, port): ... + def __init__(self, host, port) -> None: ... def makeSocket(self, timeout=1): ... retryPeriod = ... # type: Any def createSocket(self): ... @@ -77,7 +77,7 @@ class SocketHandler(logging.Handler): class DatagramHandler(SocketHandler): closeOnError = ... # type: Any - def __init__(self, host, port): ... + def __init__(self, host, port) -> None: ... def makeSocket(self, timeout=1): ... # TODO: Actually does not have the timeout argument. def send(self, s): ... @@ -119,7 +119,7 @@ class SysLogHandler(logging.Handler): unixsocket = ... # type: Any socket = ... # type: Any formatter = ... # type: Any - def __init__(self, address=..., facility=..., socktype=None): ... + def __init__(self, address=..., facility=..., socktype=None) -> None: ... def encodePriority(self, facility, priority): ... def close(self): ... def mapPriority(self, levelName): ... @@ -145,7 +145,7 @@ class NTEventLogHandler(logging.Handler): logtype = ... # type: Any deftype = ... # type: Any typemap = ... # type: Any - def __init__(self, appname, dllname=None, logtype=''): ... + def __init__(self, appname, dllname=None, logtype='') -> None: ... def getMessageID(self, record): ... def getEventCategory(self, record): ... def getEventType(self, record): ... @@ -158,7 +158,7 @@ class HTTPHandler(logging.Handler): method = ... # type: Any secure = ... # type: Any credentials = ... # type: Any - def __init__(self, host, url, method='', secure=False, credentials=None): ... + def __init__(self, host, url, method='', secure=False, credentials=None) -> None: ... def mapLogRecord(self, record): ... def emit(self, record): ... @@ -174,7 +174,7 @@ class BufferingHandler(logging.Handler): class MemoryHandler(BufferingHandler): flushLevel = ... # type: Any target = ... # type: Any - def __init__(self, capacity, flushLevel=..., target=None): ... + def __init__(self, capacity, flushLevel=..., target=None) -> None: ... def shouldFlush(self, record): ... def setTarget(self, target): ... buffer = ... # type: Any @@ -183,7 +183,7 @@ class MemoryHandler(BufferingHandler): class QueueHandler(logging.Handler): queue = ... # type: Any - def __init__(self, queue): ... + def __init__(self, queue) -> None: ... def enqueue(self, record): ... def prepare(self, record): ... def emit(self, record): ... @@ -191,7 +191,7 @@ class QueueHandler(logging.Handler): class QueueListener: queue = ... # type: Any handlers = ... # type: Any - def __init__(self, queue, *handlers): ... + def __init__(self, queue, *handlers) -> None: ... def dequeue(self, block): ... def start(self): ... def prepare(self, record): ... diff --git a/stdlib/2.7/smtplib.pyi b/stdlib/2.7/smtplib.pyi index 89c56c62a..85bc7c585 100644 --- a/stdlib/2.7/smtplib.pyi +++ b/stdlib/2.7/smtplib.pyi @@ -11,19 +11,19 @@ class SMTPResponseException(SMTPException): smtp_code = ... # type: Any smtp_error = ... # type: Any args = ... # type: Any - def __init__(self, code, msg): ... + def __init__(self, code, msg) -> None: ... class SMTPSenderRefused(SMTPResponseException): smtp_code = ... # type: Any smtp_error = ... # type: Any sender = ... # type: Any args = ... # type: Any - def __init__(self, code, msg, sender): ... + def __init__(self, code, msg, sender) -> None: ... class SMTPRecipientsRefused(SMTPException): recipients = ... # type: Any args = ... # type: Any - def __init__(self, recipients): ... + def __init__(self, recipients) -> None: ... class SMTPDataError(SMTPResponseException): ... class SMTPConnectError(SMTPResponseException): ... @@ -35,7 +35,7 @@ def quotedata(data): ... class SSLFakeFile: sslobj = ... # type: Any - def __init__(self, sslobj): ... + def __init__(self, sslobj) -> None: ... def readline(self, size=-1): ... def close(self): ... @@ -81,10 +81,10 @@ class SMTP_SSL(SMTP): default_port = ... # type: Any keyfile = ... # type: Any certfile = ... # type: Any - def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None, timeout=...): ... + def __init__(self, host='', port=0, local_hostname=None, keyfile=None, certfile=None, timeout=...) -> None: ... class LMTP(SMTP): ehlo_msg = ... # type: Any - def __init__(self, host='', port=..., local_hostname=None): ... + def __init__(self, host='', port=..., local_hostname=None) -> None: ... sock = ... # type: Any def connect(self, host='', port=0): ... diff --git a/stdlib/2.7/tarfile.pyi b/stdlib/2.7/tarfile.pyi index 994828d1d..fd5ea2198 100644 --- a/stdlib/2.7/tarfile.pyi +++ b/stdlib/2.7/tarfile.pyi @@ -18,7 +18,7 @@ class SubsequentHeaderError(HeaderError): ... class _LowLevelFile: fd = ... # type: Any - def __init__(self, name, mode): ... + def __init__(self, name, mode) -> None: ... def close(self): ... def read(self, size): ... def write(self, s): ... @@ -36,7 +36,7 @@ class _Stream: crc = ... # type: Any dbuf = ... # type: Any cmp = ... # type: Any - def __init__(self, name, mode, comptype, fileobj, bufsize): ... + def __init__(self, name, mode, comptype, fileobj, bufsize) -> None: ... def __del__(self): ... def write(self, s): ... def close(self): ... @@ -47,7 +47,7 @@ class _Stream: class _StreamProxy: fileobj = ... # type: Any buf = ... # type: Any - def __init__(self, fileobj): ... + def __init__(self, fileobj) -> None: ... def read(self, size): ... def getcomptype(self): ... def close(self): ... @@ -57,7 +57,7 @@ class _BZ2Proxy: fileobj = ... # type: Any mode = ... # type: Any name = ... # type: Any - def __init__(self, fileobj, mode): ... + def __init__(self, fileobj, mode) -> None: ... pos = ... # type: Any bz2obj = ... # type: Any buf = ... # type: Any @@ -74,7 +74,7 @@ class _FileInFile: size = ... # type: Any sparse = ... # type: Any position = ... # type: Any - def __init__(self, fileobj, offset, size, sparse=None): ... + def __init__(self, fileobj, offset, size, sparse=None) -> None: ... def tell(self): ... def seek(self, position): ... def read(self, size=None): ... @@ -91,7 +91,7 @@ class ExFileObject: size = ... # type: Any position = ... # type: Any buffer = ... # type: Any - def __init__(self, tarfile, tarinfo): ... + def __init__(self, tarfile, tarinfo) -> None: ... def read(self, size=None): ... def readline(self, size=-1): ... def readlines(self): ... @@ -117,7 +117,7 @@ class TarInfo: offset = ... # type: Any offset_data = ... # type: Any pax_headers = ... # type: Any - def __init__(self, name=''): ... + def __init__(self, name='') -> None: ... path = ... # type: Any linkpath = ... # type: Any def get_info(self, encoding, errors): ... @@ -161,7 +161,7 @@ class TarFile: offset = ... # type: Any inodes = ... # type: Any firstmember = ... # type: Any - def __init__(self, name=None, mode='', fileobj=None, format=None, tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, errors=None, pax_headers=None, debug=None, errorlevel=None): ... + def __init__(self, name=None, mode='', fileobj=None, format=None, tarinfo=None, dereference=None, ignore_zeros=None, encoding=None, errors=None, pax_headers=None, debug=None, errorlevel=None) -> None: ... posix = ... # type: Any @classmethod def open(cls, name=None, mode='', fileobj=None, bufsize=..., **kwargs): ... @@ -200,30 +200,30 @@ class TarFile: class TarIter: tarfile = ... # type: Any index = ... # type: Any - def __init__(self, tarfile): ... + def __init__(self, tarfile) -> None: ... def __iter__(self): ... def next(self): ... class _section: offset = ... # type: Any size = ... # type: Any - def __init__(self, offset, size): ... + def __init__(self, offset, size) -> None: ... def __contains__(self, offset): ... class _data(_section): realpos = ... # type: Any - def __init__(self, offset, size, realpos): ... + def __init__(self, offset, size, realpos) -> None: ... class _hole(_section): ... class _ringbuffer(list): idx = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def find(self, offset): ... class TarFileCompat: tarfile = ... # type: Any - def __init__(self, file, mode='', compression=...): ... + def __init__(self, file, mode='', compression=...) -> None: ... def namelist(self): ... def infolist(self): ... def printdir(self): ... diff --git a/stdlib/2.7/textwrap.pyi b/stdlib/2.7/textwrap.pyi index f0b5feaef..d362425c6 100644 --- a/stdlib/2.7/textwrap.pyi +++ b/stdlib/2.7/textwrap.pyi @@ -24,7 +24,7 @@ class TextWrapper: break_on_hyphens = ... # type: Any wordsep_re_uni = ... # type: Any wordsep_simple_re_uni = ... # type: Any - def __init__(self, width=70, initial_indent='', subsequent_indent='', expand_tabs=True, replace_whitespace=True, fix_sentence_endings=False, break_long_words=True, drop_whitespace=True, break_on_hyphens=True): ... + def __init__(self, width=70, initial_indent='', subsequent_indent='', expand_tabs=True, replace_whitespace=True, fix_sentence_endings=False, break_long_words=True, drop_whitespace=True, break_on_hyphens=True) -> None: ... def wrap(self, text): ... def fill(self, text): ... diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index 287b970bc..ad5fc2e39 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -20,7 +20,7 @@ NamedTuple = object() class TypeAlias: # Class for defining generic aliases for library types. - def __init__(self, target_type): ... + def __init__(self, target_type) -> None: ... def __getitem__(self, typeargs): ... Union = TypeAlias(object) diff --git a/stdlib/2.7/urllib.pyi b/stdlib/2.7/urllib.pyi index 42863257d..2a5d9bc58 100644 --- a/stdlib/2.7/urllib.pyi +++ b/stdlib/2.7/urllib.pyi @@ -11,7 +11,7 @@ def urlcleanup() -> None: ... class ContentTooShortError(IOError): content = ... # type: Any - def __init__(self, message, content): ... + def __init__(self, message, content) -> None: ... class URLopener: version = ... # type: Any @@ -45,7 +45,7 @@ class FancyURLopener(URLopener): auth_cache = ... # type: Any tries = ... # type: Any maxtries = ... # type: Any - def __init__(self, *args, **kwargs): ... + 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=None): ... def redirect_internal(self, url, fp, errcode, errmsg, headers, data): ... @@ -70,7 +70,7 @@ class ftpwrapper: timeout = ... # type: Any refcount = ... # type: Any keepalive = ... # type: Any - def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=True): ... + def __init__(self, user, passwd, host, port, dirs, timeout=..., persistent=True) -> None: ... busy = ... # type: Any ftp = ... # type: Any def init(self): ... @@ -88,25 +88,25 @@ class addbase: fileno = ... # type: Any __iter__ = ... # type: Any next = ... # type: Any - def __init__(self, fp): ... + def __init__(self, fp) -> None: ... def close(self): ... class addclosehook(addbase): closehook = ... # type: Any hookargs = ... # type: Any - def __init__(self, fp, closehook, *hookargs): ... + def __init__(self, fp, closehook, *hookargs) -> None: ... def close(self): ... class addinfo(addbase): headers = ... # type: Any - def __init__(self, fp, headers): ... + def __init__(self, fp, headers) -> None: ... def info(self): ... class addinfourl(addbase): headers = ... # type: Any url = ... # type: Any code = ... # type: Any - def __init__(self, fp, headers, url, code=None): ... + def __init__(self, fp, headers, url, code=None) -> None: ... def info(self): ... def getcode(self): ... def geturl(self): ... diff --git a/stdlib/2.7/xml/sax/handler.pyi b/stdlib/2.7/xml/sax/handler.pyi index 64b40ad83..935a5a324 100644 --- a/stdlib/2.7/xml/sax/handler.pyi +++ b/stdlib/2.7/xml/sax/handler.pyi @@ -12,7 +12,7 @@ class ErrorHandler: def warning(self, exception): ... class ContentHandler: - def __init__(self): ... + def __init__(self) -> None: ... def setDocumentLocator(self, locator): ... def startDocument(self): ... def endDocument(self): ... diff --git a/stdlib/2.7/xml/sax/saxutils.pyi b/stdlib/2.7/xml/sax/saxutils.pyi index 3b4d7687c..c308f3305 100644 --- a/stdlib/2.7/xml/sax/saxutils.pyi +++ b/stdlib/2.7/xml/sax/saxutils.pyi @@ -12,7 +12,7 @@ def unescape(data: str, entities: Mapping[str, str] = None) -> str: ... def quoteattr(data: str, entities: Mapping[str, str] = None) -> str: ... class XMLGenerator(handler.ContentHandler): - def __init__(self, out=None, encoding=''): ... + def __init__(self, out=None, encoding='') -> None: ... def startDocument(self): ... def endDocument(self): ... def startPrefixMapping(self, prefix, uri): ... @@ -26,7 +26,7 @@ class XMLGenerator(handler.ContentHandler): def processingInstruction(self, target, data): ... class XMLFilterBase(xmlreader.XMLReader): - def __init__(self, parent=None): ... + def __init__(self, parent=None) -> None: ... def error(self, exception): ... def fatalError(self, exception): ... def warning(self, exception): ... diff --git a/stdlib/2.7/xml/sax/xmlreader.pyi b/stdlib/2.7/xml/sax/xmlreader.pyi index b28ac3195..e4493de5c 100644 --- a/stdlib/2.7/xml/sax/xmlreader.pyi +++ b/stdlib/2.7/xml/sax/xmlreader.pyi @@ -3,7 +3,7 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. class XMLReader: - def __init__(self): ... + def __init__(self) -> None: ... def parse(self, source): ... def getContentHandler(self): ... def setContentHandler(self, handler): ... @@ -20,7 +20,7 @@ class XMLReader: def setProperty(self, name, value): ... class IncrementalParser(XMLReader): - def __init__(self, bufsize=...): ... + def __init__(self, bufsize=...) -> None: ... def parse(self, source): ... def feed(self, data): ... def prepareParser(self, source): ... @@ -34,7 +34,7 @@ class Locator: def getSystemId(self): ... class InputSource: - def __init__(self, system_id=None): ... + def __init__(self, system_id=None) -> None: ... def setPublicId(self, public_id): ... def getPublicId(self): ... def setSystemId(self, system_id): ... @@ -47,7 +47,7 @@ class InputSource: def getCharacterStream(self): ... class AttributesImpl: - def __init__(self, attrs): ... + def __init__(self, attrs) -> None: ... def getLength(self): ... def getType(self, name): ... def getValue(self, name): ... @@ -67,7 +67,7 @@ class AttributesImpl: def values(self): ... class AttributesNSImpl(AttributesImpl): - def __init__(self, attrs, qnames): ... + def __init__(self, attrs, qnames) -> None: ... def getValueByQName(self, name): ... def getNameByQName(self, name): ... def getQNameByName(self, name): ... diff --git a/stdlib/3.3/ipaddress.pyi b/stdlib/3.3/ipaddress.pyi index 19ba2c20e..1b2986d81 100644 --- a/stdlib/3.3/ipaddress.pyi +++ b/stdlib/3.3/ipaddress.pyi @@ -36,7 +36,7 @@ class _IPAddressBase(_TotalOrderingMixin): def version(self): ... class _BaseAddress(_IPAddressBase): - def __init__(self, address): ... + def __init__(self, address) -> None: ... def __int__(self): ... def __eq__(self, other): ... def __lt__(self, other): ... @@ -45,7 +45,7 @@ class _BaseAddress(_IPAddressBase): def __hash__(self): ... class _BaseNetwork(_IPAddressBase): - def __init__(self, address): ... + def __init__(self, address) -> None: ... def hosts(self): ... def __iter__(self): ... def __getitem__(self, n): ... @@ -88,14 +88,14 @@ class _BaseNetwork(_IPAddressBase): def is_loopback(self): ... class _BaseV4: - def __init__(self, address): ... + def __init__(self, address) -> None: ... @property def max_prefixlen(self): ... @property def version(self): ... class IPv4Address(_BaseV4, _BaseAddress): - def __init__(self, address): ... + def __init__(self, address) -> None: ... @property def packed(self): ... @property @@ -115,7 +115,7 @@ class IPv4Interface(IPv4Address): network = ... # type: Any netmask = ... # type: Any hostmask = ... # type: Any - def __init__(self, address): ... + def __init__(self, address) -> None: ... def __eq__(self, other): ... def __lt__(self, other): ... def __hash__(self): ... @@ -132,19 +132,19 @@ class IPv4Network(_BaseV4, _BaseNetwork): network_address = ... # type: Any netmask = ... # type: Any hosts = ... # type: Any - def __init__(self, address, strict=True): ... + def __init__(self, address, strict=True) -> None: ... @property def is_global(self): ... class _BaseV6: - def __init__(self, address): ... + def __init__(self, address) -> None: ... @property def max_prefixlen(self): ... @property def version(self): ... class IPv6Address(_BaseV6, _BaseAddress): - def __init__(self, address): ... + def __init__(self, address) -> None: ... @property def packed(self): ... @property @@ -174,7 +174,7 @@ class IPv6Interface(IPv6Address): network = ... # type: Any netmask = ... # type: Any hostmask = ... # type: Any - def __init__(self, address): ... + def __init__(self, address) -> None: ... def __eq__(self, other): ... def __lt__(self, other): ... def __hash__(self): ... @@ -194,7 +194,7 @@ class IPv6Interface(IPv6Address): class IPv6Network(_BaseV6, _BaseNetwork): network_address = ... # type: Any netmask = ... # type: Any - def __init__(self, address, strict=True): ... + def __init__(self, address, strict=True) -> None: ... def hosts(self): ... @property def is_site_local(self): ... diff --git a/stdlib/3.4/pathlib.pyi b/stdlib/3.4/pathlib.pyi index 0dc26a6d1..171a28d60 100644 --- a/stdlib/3.4/pathlib.pyi +++ b/stdlib/3.4/pathlib.pyi @@ -7,7 +7,7 @@ from collections import Sequence class _Flavour: join = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def parse_parts(self, parts): ... def join_parsed_parts(self, drv, root, parts, drv2, root2, parts2): ... @@ -61,29 +61,29 @@ class _NormalAccessor(_Accessor): class _Selector: child_parts = ... # type: Any successor = ... # type: Any - def __init__(self, child_parts): ... + def __init__(self, child_parts) -> None: ... def select_from(self, parent_path): ... class _TerminatingSelector: ... class _PreciseSelector(_Selector): name = ... # type: Any - def __init__(self, name, child_parts): ... + def __init__(self, name, child_parts) -> None: ... class _WildcardSelector(_Selector): pat = ... # type: Any - def __init__(self, pat, child_parts): ... + def __init__(self, pat, child_parts) -> None: ... class _RecursiveWildcardSelector(_Selector): - def __init__(self, pat, child_parts): ... + def __init__(self, pat, child_parts) -> None: ... class _PathParents(Sequence): - def __init__(self, path): ... + def __init__(self, path) -> None: ... def __len__(self): ... def __getitem__(self, idx): ... class PurePath: - def __init__(self, *args): ... + def __init__(self, *args) -> None: ... def __reduce__(self): ... def as_posix(self): ... def __bytes__(self): ... @@ -127,7 +127,7 @@ class PurePosixPath(PurePath): ... class PureWindowsPath(PurePath): ... class Path(PurePath): - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... def __enter__(self): ... def __exit__(self, t, v, tb): ... @classmethod diff --git a/stdlib/3/argparse.pyi b/stdlib/3/argparse.pyi index 1ce65b6f1..cdbff50c0 100644 --- a/stdlib/3/argparse.pyi +++ b/stdlib/3/argparse.pyi @@ -14,7 +14,7 @@ REMAINDER = ... # type: Any class _AttributeHolder: ... class HelpFormatter: - def __init__(self, prog, indent_increment=2, max_help_position=24, width=None): ... + def __init__(self, prog, indent_increment=2, max_help_position=24, width=None) -> None: ... def start_section(self, heading): ... def end_section(self): ... def add_text(self, text): ... @@ -31,7 +31,7 @@ class MetavarTypeHelpFormatter(HelpFormatter): ... class ArgumentError(Exception): argument_name = ... # type: Any message = ... # type: Any - def __init__(self, argument, message): ... + def __init__(self, argument, message) -> None: ... class ArgumentTypeError(Exception): ... @@ -61,10 +61,10 @@ class _StoreConstAction(Action): def __call__(self, parser, namespace, values, option_string=None): ... class _StoreTrueAction(_StoreConstAction): - def __init__(self, option_strings, dest, default=False, required=False, help=None): ... + def __init__(self, option_strings, dest, default=False, required=False, help=None) -> None: ... class _StoreFalseAction(_StoreConstAction): - def __init__(self, option_strings, dest, default=True, required=False, help=None): ... + def __init__(self, option_strings, dest, default=True, required=False, help=None) -> None: ... class _AppendAction(Action): def __init__(self, option_strings, dest, nargs=None, const=None, default=None, type=None, @@ -77,11 +77,11 @@ class _AppendConstAction(Action): def __call__(self, parser, namespace, values, option_string=None): ... class _CountAction(Action): - def __init__(self, option_strings, dest, default=None, required=False, help=None): ... + def __init__(self, option_strings, dest, default=None, required=False, help=None) -> None: ... def __call__(self, parser, namespace, values, option_string=None): ... class _HelpAction(Action): - def __init__(self, option_strings, dest=..., default=..., help=None): ... + def __init__(self, option_strings, dest=..., default=..., help=None) -> None: ... def __call__(self, parser, namespace, values, option_string=None): ... class _VersionAction(Action): @@ -97,11 +97,11 @@ class _SubParsersAction(Action): def __call__(self, parser, namespace, values, option_string=None): ... class FileType: - def __init__(self, mode='', bufsize=-1, encoding=None, errors=None): ... + def __init__(self, mode='', bufsize=-1, encoding=None, errors=None) -> None: ... def __call__(self, string): ... class Namespace(_AttributeHolder): - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... def __eq__(self, other): ... def __ne__(self, other): ... def __contains__(self, key): ... @@ -111,7 +111,7 @@ class _ActionsContainer: argument_default = ... # type: Any prefix_chars = ... # type: Any conflict_handler = ... # type: Any - def __init__(self, description, prefix_chars, argument_default, conflict_handler): ... + def __init__(self, description, prefix_chars, argument_default, conflict_handler) -> None: ... def register(self, registry_name, value, object): ... def set_defaults(self, **kwargs): ... def get_default(self, dest): ... @@ -133,11 +133,11 @@ class _ActionsContainer: class _ArgumentGroup(_ActionsContainer): title = ... # type: Any - def __init__(self, container, title=None, description=None, **kwargs): ... + def __init__(self, container, title=None, description=None, **kwargs) -> None: ... class _MutuallyExclusiveGroup(_ArgumentGroup): required = ... # type: Any - def __init__(self, container, required=False): ... + def __init__(self, container, required=False) -> None: ... class ArgumentParser(_AttributeHolder, _ActionsContainer): prog = ... # type: Any diff --git a/stdlib/3/csv.pyi b/stdlib/3/csv.pyi index fb7fd190b..d211136f5 100644 --- a/stdlib/3/csv.pyi +++ b/stdlib/3/csv.pyi @@ -27,7 +27,7 @@ class Dialect: skipinitialspace = ... # type: Any lineterminator = ... # type: Any quoting = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... class excel(Dialect): delimiter = ... # type: Any @@ -65,13 +65,13 @@ class DictWriter: restval = ... # type: Any extrasaction = ... # type: Any writer = ... # type: Any - def __init__(self, f, fieldnames, restval='', extrasaction='', dialect='', *args, **kwds): ... + def __init__(self, f, fieldnames, restval='', extrasaction='', dialect='', *args, **kwds) -> None: ... def writeheader(self): ... def writerow(self, rowdict): ... def writerows(self, rowdicts): ... class Sniffer: preferred = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def sniff(self, sample, delimiters=None): ... def has_header(self, sample): ... diff --git a/stdlib/3/email/_header_value_parser.pyi b/stdlib/3/email/_header_value_parser.pyi index 8d5afc629..43f4e7ae3 100644 --- a/stdlib/3/email/_header_value_parser.pyi +++ b/stdlib/3/email/_header_value_parser.pyi @@ -26,7 +26,7 @@ class _Folded: firstline = ... # type: Any done = ... # type: Any current = ... # type: Any - def __init__(self, maxlen, policy): ... + def __init__(self, maxlen, policy) -> None: ... def newline(self): ... def finalize(self): ... def append(self, stoken): ... @@ -35,7 +35,7 @@ class _Folded: class TokenList(list): token_type = ... # type: Any defects = ... # type: Any - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... @property def value(self): ... @property diff --git a/stdlib/3/email/_parseaddr.pyi b/stdlib/3/email/_parseaddr.pyi index ef37b96b9..920861fb5 100644 --- a/stdlib/3/email/_parseaddr.pyi +++ b/stdlib/3/email/_parseaddr.pyi @@ -19,7 +19,7 @@ class AddrlistClass: phraseends = ... # type: Any field = ... # type: Any commentlist = ... # type: Any - def __init__(self, field): ... + def __init__(self, field) -> None: ... def gotonext(self): ... def getaddrlist(self): ... def getaddress(self): ... @@ -35,7 +35,7 @@ class AddrlistClass: class AddressList(AddrlistClass): addresslist = ... # type: Any - def __init__(self, field): ... + def __init__(self, field) -> None: ... def __len__(self): ... def __add__(self, other): ... def __iadd__(self, other): ... diff --git a/stdlib/3/email/_policybase.pyi b/stdlib/3/email/_policybase.pyi index 786b0ae05..49af14c9e 100644 --- a/stdlib/3/email/_policybase.pyi +++ b/stdlib/3/email/_policybase.pyi @@ -5,7 +5,7 @@ from typing import Any class _PolicyBase: - def __init__(self, **kw): ... + def __init__(self, **kw) -> None: ... def clone(self, **kw): ... def __setattr__(self, name, value): ... def __add__(self, other): ... diff --git a/stdlib/3/email/charset.pyi b/stdlib/3/email/charset.pyi index 9e9d9d462..64dfd2e2d 100644 --- a/stdlib/3/email/charset.pyi +++ b/stdlib/3/email/charset.pyi @@ -15,7 +15,7 @@ class Charset: output_charset = ... # type: Any input_codec = ... # type: Any output_codec = ... # type: Any - def __init__(self, input_charset=...): ... + def __init__(self, input_charset=...) -> None: ... def __eq__(self, other): ... def __ne__(self, other): ... def get_body_encoding(self): ... diff --git a/stdlib/3/email/contentmanager.pyi b/stdlib/3/email/contentmanager.pyi index fdc871817..cb71cf682 100644 --- a/stdlib/3/email/contentmanager.pyi +++ b/stdlib/3/email/contentmanager.pyi @@ -7,7 +7,7 @@ from typing import Any class ContentManager: get_handlers = ... # type: Any set_handlers = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def add_get_handler(self, key, handler): ... def get_content(self, msg, *args, **kw): ... def add_set_handler(self, typekey, handler): ... diff --git a/stdlib/3/email/errors.pyi b/stdlib/3/email/errors.pyi index 08bb800d7..4fbb6a4e4 100644 --- a/stdlib/3/email/errors.pyi +++ b/stdlib/3/email/errors.pyi @@ -13,7 +13,7 @@ class CharsetError(MessageError): ... class MessageDefect(ValueError): line = ... # type: Any - def __init__(self, line=None): ... + def __init__(self, line=None) -> None: ... class NoBoundaryInMultipartDefect(MessageDefect): ... class StartBoundaryNotFoundDefect(MessageDefect): ... @@ -31,14 +31,14 @@ class InvalidBase64PaddingDefect(MessageDefect): ... class InvalidBase64CharactersDefect(MessageDefect): ... class HeaderDefect(MessageDefect): - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... class InvalidHeaderDefect(HeaderDefect): ... class HeaderMissingRequiredValue(HeaderDefect): ... class NonPrintableDefect(HeaderDefect): non_printables = ... # type: Any - def __init__(self, non_printables): ... + def __init__(self, non_printables) -> None: ... class ObsoleteHeaderDefect(HeaderDefect): ... class NonASCIILocalPartDefect(HeaderDefect): ... diff --git a/stdlib/3/email/feedparser.pyi b/stdlib/3/email/feedparser.pyi index 8fe1a23f9..1bc5a7795 100644 --- a/stdlib/3/email/feedparser.pyi +++ b/stdlib/3/email/feedparser.pyi @@ -5,7 +5,7 @@ from typing import Any class BufferedSubFile: - def __init__(self): ... + def __init__(self) -> None: ... def push_eof_matcher(self, pred): ... def pop_eof_matcher(self): ... def close(self): ... @@ -18,7 +18,7 @@ class BufferedSubFile: class FeedParser: policy = ... # type: Any - def __init__(self, _factory=None, *, policy=...): ... + def __init__(self, _factory=None, *, policy=...) -> None: ... def feed(self, data): ... def close(self): ... diff --git a/stdlib/3/email/generator.pyi b/stdlib/3/email/generator.pyi index f776eb0c4..d118a0333 100644 --- a/stdlib/3/email/generator.pyi +++ b/stdlib/3/email/generator.pyi @@ -7,7 +7,7 @@ from typing import Any class Generator: maxheaderlen = ... # type: Any policy = ... # type: Any - def __init__(self, outfp, mangle_from_=True, maxheaderlen=None, *, policy=None): ... + def __init__(self, outfp, mangle_from_=True, maxheaderlen=None, *, policy=None) -> None: ... def write(self, s): ... def flatten(self, msg, unixfrom=False, linesep=None): ... def clone(self, fp): ... @@ -16,4 +16,4 @@ class BytesGenerator(Generator): def write(self, s): ... class DecodedGenerator(Generator): - def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None): ... + def __init__(self, outfp, mangle_from_=True, maxheaderlen=78, fmt=None) -> None: ... diff --git a/stdlib/3/email/header.pyi b/stdlib/3/email/header.pyi index 54a3632d3..1d5d8f471 100644 --- a/stdlib/3/email/header.pyi +++ b/stdlib/3/email/header.pyi @@ -14,13 +14,13 @@ class Header: def encode(self, splitchars='', maxlinelen=None, linesep=''): ... class _ValueFormatter: - def __init__(self, headerlen, maxlen, continuation_ws, splitchars): ... + def __init__(self, headerlen, maxlen, continuation_ws, splitchars) -> None: ... def newline(self): ... def add_transition(self): ... def feed(self, fws, string, charset): ... class _Accumulator(list): - def __init__(self, initial_size=0): ... + def __init__(self, initial_size=0) -> None: ... def push(self, fws, string): ... def pop_from(self, i=0): ... def __len__(self): ... diff --git a/stdlib/3/email/headerregistry.pyi b/stdlib/3/email/headerregistry.pyi index adb454258..10440b7db 100644 --- a/stdlib/3/email/headerregistry.pyi +++ b/stdlib/3/email/headerregistry.pyi @@ -5,7 +5,7 @@ from typing import Any class Address: - def __init__(self, display_name='', username='', domain='', addr_spec=None): ... + def __init__(self, display_name='', username='', domain='', addr_spec=None) -> None: ... @property def display_name(self): ... @property @@ -17,7 +17,7 @@ class Address: def __eq__(self, other): ... class Group: - def __init__(self, display_name=None, addresses=None): ... + def __init__(self, display_name=None, addresses=None) -> None: ... @property def display_name(self): ... @property @@ -127,7 +127,7 @@ class HeaderRegistry: registry = ... # type: Any base_class = ... # type: Any default_class = ... # type: Any - def __init__(self, base_class=..., default_class=..., use_default_map=True): ... + def __init__(self, base_class=..., default_class=..., use_default_map=True) -> None: ... def map_to_type(self, name, cls): ... def __getitem__(self, name): ... def __call__(self, name, value): ... diff --git a/stdlib/3/email/message.pyi b/stdlib/3/email/message.pyi index 45c3073c9..1acd10e85 100644 --- a/stdlib/3/email/message.pyi +++ b/stdlib/3/email/message.pyi @@ -8,7 +8,7 @@ class Message: policy = ... # type: Any preamble = ... # type: Any defects = ... # type: Any - def __init__(self, policy=...): ... + def __init__(self, policy=...) -> None: ... def as_string(self, unixfrom=False, maxheaderlen=0, policy=None): ... def __bytes__(self): ... def as_bytes(self, unixfrom=False, policy=None): ... @@ -53,7 +53,7 @@ class Message: def get_charsets(self, failobj=None): ... class MIMEPart(Message): - def __init__(self, policy=None): ... + def __init__(self, policy=None) -> None: ... @property def is_attachment(self): ... def get_body(self, preferencelist=...): ... diff --git a/stdlib/3/email/mime/application.pyi b/stdlib/3/email/mime/application.pyi index 2e95616e5..ace3818dd 100644 --- a/stdlib/3/email/mime/application.pyi +++ b/stdlib/3/email/mime/application.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEApplication(MIMENonMultipart): - def __init__(self, _data, _subtype='', _encoder=..., **_params): ... + def __init__(self, _data, _subtype='', _encoder=..., **_params) -> None: ... diff --git a/stdlib/3/email/mime/audio.pyi b/stdlib/3/email/mime/audio.pyi index 7a4648e91..b0a0f7b9b 100644 --- a/stdlib/3/email/mime/audio.pyi +++ b/stdlib/3/email/mime/audio.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEAudio(MIMENonMultipart): - def __init__(self, _audiodata, _subtype=None, _encoder=..., **_params): ... + def __init__(self, _audiodata, _subtype=None, _encoder=..., **_params) -> None: ... diff --git a/stdlib/3/email/mime/base.pyi b/stdlib/3/email/mime/base.pyi index 4cbef4fe7..3fe87d5f7 100644 --- a/stdlib/3/email/mime/base.pyi +++ b/stdlib/3/email/mime/base.pyi @@ -5,4 +5,4 @@ from email import message class MIMEBase(message.Message): - def __init__(self, _maintype, _subtype, **_params): ... + def __init__(self, _maintype, _subtype, **_params) -> None: ... diff --git a/stdlib/3/email/mime/image.pyi b/stdlib/3/email/mime/image.pyi index 5afd05502..146165731 100644 --- a/stdlib/3/email/mime/image.pyi +++ b/stdlib/3/email/mime/image.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEImage(MIMENonMultipart): - def __init__(self, _imagedata, _subtype=None, _encoder=..., **_params): ... + def __init__(self, _imagedata, _subtype=None, _encoder=..., **_params) -> None: ... diff --git a/stdlib/3/email/mime/message.pyi b/stdlib/3/email/mime/message.pyi index 67ab9346e..ef1f913db 100644 --- a/stdlib/3/email/mime/message.pyi +++ b/stdlib/3/email/mime/message.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEMessage(MIMENonMultipart): - def __init__(self, _msg, _subtype=''): ... + def __init__(self, _msg, _subtype='') -> None: ... diff --git a/stdlib/3/email/mime/multipart.pyi b/stdlib/3/email/mime/multipart.pyi index 943da614f..a37505f00 100644 --- a/stdlib/3/email/mime/multipart.pyi +++ b/stdlib/3/email/mime/multipart.pyi @@ -5,4 +5,4 @@ from email.mime.base import MIMEBase class MIMEMultipart(MIMEBase): - def __init__(self, _subtype='', boundary=None, _subparts=None, **_params): ... + def __init__(self, _subtype='', boundary=None, _subparts=None, **_params) -> None: ... diff --git a/stdlib/3/email/mime/text.pyi b/stdlib/3/email/mime/text.pyi index 8263c13ee..67e708093 100644 --- a/stdlib/3/email/mime/text.pyi +++ b/stdlib/3/email/mime/text.pyi @@ -5,4 +5,4 @@ from email.mime.nonmultipart import MIMENonMultipart class MIMEText(MIMENonMultipart): - def __init__(self, _text, _subtype='', _charset=None): ... + def __init__(self, _text, _subtype='', _charset=None) -> None: ... diff --git a/stdlib/3/email/parser.pyi b/stdlib/3/email/parser.pyi index 9cca73726..b99a966e7 100644 --- a/stdlib/3/email/parser.pyi +++ b/stdlib/3/email/parser.pyi @@ -10,7 +10,7 @@ BytesFeedParser = email.feedparser.BytesFeedParser class Parser: policy = ... # type: Any - def __init__(self, _class=None, *, policy=...): ... + def __init__(self, _class=None, *, policy=...) -> None: ... def parse(self, fp, headersonly=False): ... def parsestr(self, text, headersonly=False): ... @@ -20,7 +20,7 @@ class HeaderParser(Parser): class BytesParser: parser = ... # type: Any - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... def parse(self, fp, headersonly=False): ... def parsebytes(self, text, headersonly=False): ... diff --git a/stdlib/3/email/policy.pyi b/stdlib/3/email/policy.pyi index 6484e2c1b..26c5dc3b2 100644 --- a/stdlib/3/email/policy.pyi +++ b/stdlib/3/email/policy.pyi @@ -12,7 +12,7 @@ class EmailPolicy(Policy): refold_source = ... # type: Any header_factory = ... # type: Any content_manager = ... # type: Any - def __init__(self, **kw): ... + def __init__(self, **kw) -> None: ... def header_max_count(self, name): ... def header_source_parse(self, sourcelines): ... def header_store_parse(self, name, value): ... diff --git a/stdlib/3/gettext.pyi b/stdlib/3/gettext.pyi index b9bff623c..a9d48c18d 100644 --- a/stdlib/3/gettext.pyi +++ b/stdlib/3/gettext.pyi @@ -5,7 +5,7 @@ from typing import Any class NullTranslations: - def __init__(self, fp=None): ... + def __init__(self, fp=None) -> None: ... def add_fallback(self, fallback): ... def gettext(self, message): ... def lgettext(self, message): ... diff --git a/stdlib/3/http/client.pyi b/stdlib/3/http/client.pyi index 173cd8f26..a4b93fbda 100644 --- a/stdlib/3/http/client.pyi +++ b/stdlib/3/http/client.pyi @@ -20,7 +20,7 @@ class HTTPResponse(io.RawIOBase): chunk_left = ... # type: Any length = ... # type: Any will_close = ... # type: Any - def __init__(self, sock, debuglevel=0, method=None, url=None): ... + def __init__(self, sock, debuglevel=0, method=None, url=None) -> None: ... code = ... # type: Any def begin(self): ... def close(self): ... @@ -46,7 +46,7 @@ class HTTPConnection: timeout = ... # type: Any source_address = ... # type: Any sock = ... # type: Any - def __init__(self, host, port=None, timeout=..., source_address=None): ... + def __init__(self, host, port=None, timeout=..., source_address=None) -> None: ... def set_tunnel(self, host, port=None, headers=None): ... def set_debuglevel(self, level): ... def connect(self): ... @@ -74,7 +74,7 @@ class InvalidURL(HTTPException): ... class UnknownProtocol(HTTPException): args = ... # type: Any version = ... # type: Any - def __init__(self, version): ... + def __init__(self, version) -> None: ... class UnknownTransferEncoding(HTTPException): ... class UnimplementedFileMode(HTTPException): ... @@ -83,7 +83,7 @@ class IncompleteRead(HTTPException): args = ... # type: Any partial = ... # type: Any expected = ... # type: Any - def __init__(self, partial, expected=None): ... + def __init__(self, partial, expected=None) -> None: ... class ImproperConnectionState(HTTPException): ... class CannotSendRequest(ImproperConnectionState): ... @@ -93,9 +93,9 @@ class ResponseNotReady(ImproperConnectionState): ... class BadStatusLine(HTTPException): args = ... # type: Any line = ... # type: Any - def __init__(self, line): ... + def __init__(self, line) -> None: ... class LineTooLong(HTTPException): - def __init__(self, line_type): ... + def __init__(self, line_type) -> None: ... error = HTTPException diff --git a/stdlib/3/http/cookiejar.pyi b/stdlib/3/http/cookiejar.pyi index ca7c14e3f..f986aa0fb 100644 --- a/stdlib/3/http/cookiejar.pyi +++ b/stdlib/3/http/cookiejar.pyi @@ -88,7 +88,7 @@ class CookieJar: domain_re = ... # type: Any dots_re = ... # type: Any magic_re = ... # type: Any - def __init__(self, policy=None): ... + def __init__(self, policy=None) -> None: ... def set_policy(self, policy): ... def add_cookie_header(self, request): ... def make_cookies(self, response, request): ... @@ -106,7 +106,7 @@ class LoadError(OSError): ... class FileCookieJar(CookieJar): filename = ... # type: Any delayload = ... # type: Any - def __init__(self, filename=None, delayload=False, policy=None): ... + def __init__(self, filename=None, delayload=False, policy=None) -> None: ... def save(self, filename=None, ignore_discard=False, ignore_expires=False): ... def load(self, filename=None, ignore_discard=False, ignore_expires=False): ... def revert(self, filename=None, ignore_discard=False, ignore_expires=False): ... diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 4865690f6..bffa05a63 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -19,7 +19,7 @@ class UnsupportedOperation(ValueError, OSError): ... class IncrementalNewlineDecoder(codecs.IncrementalDecoder): newlines = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... def decode(self, input, final=False): ... def getstate(self): ... def reset(self): ... @@ -33,7 +33,7 @@ class TextIOBase(_io._TextIOBase, IOBase): ... class FileIO(_io._RawIOBase): closefd = ... # type: Any mode = ... # type: Any - def __init__(self, name, mode=..., closefd=..., opener=...): ... + def __init__(self, name, mode=..., closefd=..., opener=...) -> None: ... def readinto(self, b): ... def write(self, b): ... @@ -41,24 +41,24 @@ class BufferedReader(_io._BufferedIOBase): mode = ... # type: Any name = ... # type: Any raw = ... # type: Any - def __init__(self, raw, buffer_size=...): ... + def __init__(self, raw, buffer_size=...) -> None: ... def peek(self, size: int = -1): ... class BufferedWriter(_io._BufferedIOBase): mode = ... # type: Any name = ... # type: Any raw = ... # type: Any - def __init__(self, raw, buffer_size=...): ... + def __init__(self, raw, buffer_size=...) -> None: ... class BufferedRWPair(_io._BufferedIOBase): - def __init__(self, reader, writer, buffer_size=...): ... + def __init__(self, reader, writer, buffer_size=...) -> None: ... def peek(self, size: int = -1): ... class BufferedRandom(_io._BufferedIOBase): mode = ... # type: Any name = ... # type: Any raw = ... # type: Any - def __init__(self, raw, buffer_size=...): ... + def __init__(self, raw, buffer_size=...) -> None: ... def peek(self, size: int = -1): ... class BytesIO(BinaryIO): diff --git a/stdlib/3/logging/__init__.pyi b/stdlib/3/logging/__init__.pyi index be8370a10..0b1929c81 100644 --- a/stdlib/3/logging/__init__.pyi +++ b/stdlib/3/logging/__init__.pyi @@ -49,7 +49,7 @@ class PercentStyle: default_format = ... # type: Any asctime_format = ... # type: Any asctime_search = ... # type: Any - def __init__(self, fmt): ... + def __init__(self, fmt) -> None: ... def usesTime(self): ... def format(self, record): ... @@ -63,7 +63,7 @@ class StringTemplateStyle(PercentStyle): default_format = ... # type: Any asctime_format = ... # type: Any asctime_search = ... # type: Any - def __init__(self, fmt): ... + def __init__(self, fmt) -> None: ... def usesTime(self): ... def format(self, record): ... @@ -72,7 +72,7 @@ BASIC_FORMAT = ... # type: Any class Formatter: converter = ... # type: Any datefmt = ... # type: Any - def __init__(self, fmt=None, datefmt=None, style=''): ... + def __init__(self, fmt=None, datefmt=None, style='') -> None: ... default_time_format = ... # type: Any default_msec_format = ... # type: Any def formatTime(self, record, datefmt=None): ... @@ -84,7 +84,7 @@ class Formatter: class BufferingFormatter: linefmt = ... # type: Any - def __init__(self, linefmt=None): ... + def __init__(self, linefmt=None) -> None: ... def formatHeader(self, records): ... def formatFooter(self, records): ... def format(self, records): ... @@ -92,12 +92,12 @@ class BufferingFormatter: class Filter: name = ... # type: Any nlen = ... # type: Any - def __init__(self, name=''): ... + def __init__(self, name='') -> None: ... def filter(self, record): ... class Filterer: filters = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def addFilter(self, filter): ... def removeFilter(self, filter): ... def filter(self, record): ... @@ -105,7 +105,7 @@ class Filterer: class Handler(Filterer): level = ... # type: Any formatter = ... # type: Any - def __init__(self, level=...): ... + def __init__(self, level=...) -> None: ... def get_name(self): ... def set_name(self, name): ... name = ... # type: Any @@ -125,7 +125,7 @@ class Handler(Filterer): class StreamHandler(Handler): terminator = ... # type: Any stream = ... # type: Any - def __init__(self, stream=None): ... + def __init__(self, stream=None) -> None: ... def flush(self): ... def emit(self, record): ... @@ -135,18 +135,18 @@ class FileHandler(StreamHandler): encoding = ... # type: Any delay = ... # type: Any stream = ... # type: Any - def __init__(self, filename, mode='', encoding=None, delay=False): ... + def __init__(self, filename, mode='', encoding=None, delay=False) -> None: ... def close(self): ... def emit(self, record): ... class _StderrHandler(StreamHandler): - def __init__(self, level=...): ... + def __init__(self, level=...) -> None: ... lastResort = ... # type: Any class PlaceHolder: loggerMap = ... # type: Any - def __init__(self, alogger): ... + def __init__(self, alogger) -> None: ... def append(self, alogger): ... def setLoggerClass(klass): ... @@ -159,7 +159,7 @@ class Manager: loggerDict = ... # type: Any loggerClass = ... # type: Any logRecordFactory = ... # type: Any - def __init__(self, rootnode): ... + def __init__(self, rootnode) -> None: ... def getLogger(self, name): ... def setLoggerClass(self, klass): ... def setLogRecordFactory(self, factory): ... @@ -171,7 +171,7 @@ class Logger(Filterer): propagate = ... # type: Any handlers = ... # type: Any disabled = ... # type: Any - def __init__(self, name, level=...): ... + def __init__(self, name, level=...) -> None: ... def setLevel(self, level): ... def debug(self, msg, *args, **kwargs): ... def info(self, msg, *args, **kwargs): ... @@ -195,12 +195,12 @@ class Logger(Filterer): def getChild(self, suffix): ... class RootLogger(Logger): - def __init__(self, level): ... + def __init__(self, level) -> None: ... class LoggerAdapter: logger = ... # type: Any extra = ... # type: Any - def __init__(self, logger, extra): ... + def __init__(self, logger, extra) -> None: ... def process(self, msg, kwargs): ... def debug(self, msg, *args, **kwargs): ... def info(self, msg, *args, **kwargs): ... diff --git a/stdlib/3/logging/handlers.pyi b/stdlib/3/logging/handlers.pyi index 20ee72f3f..de075d78e 100644 --- a/stdlib/3/logging/handlers.pyi +++ b/stdlib/3/logging/handlers.pyi @@ -18,7 +18,7 @@ class BaseRotatingHandler(logging.FileHandler): encoding = ... # type: Any namer = ... # type: Any rotator = ... # type: Any - def __init__(self, filename, mode, encoding=None, delay=False): ... + def __init__(self, filename, mode, encoding=None, delay=False) -> None: ... def emit(self, record): ... def rotation_filename(self, default_name): ... def rotate(self, source, dest): ... @@ -51,7 +51,7 @@ class TimedRotatingFileHandler(BaseRotatingHandler): def doRollover(self): ... class WatchedFileHandler(logging.FileHandler): - def __init__(self, filename, mode='', encoding=None, delay=False): ... + def __init__(self, filename, mode='', encoding=None, delay=False) -> None: ... stream = ... # type: Any def emit(self, record): ... @@ -65,7 +65,7 @@ class SocketHandler(logging.Handler): retryStart = ... # type: Any retryMax = ... # type: Any retryFactor = ... # type: Any - def __init__(self, host, port): ... + def __init__(self, host, port) -> None: ... def makeSocket(self, timeout=1): ... retryPeriod = ... # type: Any def createSocket(self): ... @@ -77,7 +77,7 @@ class SocketHandler(logging.Handler): class DatagramHandler(SocketHandler): closeOnError = ... # type: Any - def __init__(self, host, port): ... + def __init__(self, host, port) -> None: ... def makeSocket(self, timeout=1): ... # TODO: Actually does not have the timeout argument. def send(self, s): ... @@ -119,7 +119,7 @@ class SysLogHandler(logging.Handler): unixsocket = ... # type: Any socket = ... # type: Any formatter = ... # type: Any - def __init__(self, address=..., facility=..., socktype=None): ... + def __init__(self, address=..., facility=..., socktype=None) -> None: ... def encodePriority(self, facility, priority): ... def close(self): ... def mapPriority(self, levelName): ... @@ -145,7 +145,7 @@ class NTEventLogHandler(logging.Handler): logtype = ... # type: Any deftype = ... # type: Any typemap = ... # type: Any - def __init__(self, appname, dllname=None, logtype=''): ... + def __init__(self, appname, dllname=None, logtype='') -> None: ... def getMessageID(self, record): ... def getEventCategory(self, record): ... def getEventType(self, record): ... @@ -158,14 +158,14 @@ class HTTPHandler(logging.Handler): method = ... # type: Any secure = ... # type: Any credentials = ... # type: Any - def __init__(self, host, url, method='', secure=False, credentials=None): ... + def __init__(self, host, url, method='', secure=False, credentials=None) -> None: ... def mapLogRecord(self, record): ... def emit(self, record): ... class BufferingHandler(logging.Handler): capacity = ... # type: Any buffer = ... # type: Any - def __init__(self, capacity): ... + def __init__(self, capacity) -> None: ... def shouldFlush(self, record): ... def emit(self, record): ... def flush(self): ... @@ -174,7 +174,7 @@ class BufferingHandler(logging.Handler): class MemoryHandler(BufferingHandler): flushLevel = ... # type: Any target = ... # type: Any - def __init__(self, capacity, flushLevel=..., target=None): ... + def __init__(self, capacity, flushLevel=..., target=None) -> None: ... def shouldFlush(self, record): ... def setTarget(self, target): ... buffer = ... # type: Any @@ -183,7 +183,7 @@ class MemoryHandler(BufferingHandler): class QueueHandler(logging.Handler): queue = ... # type: Any - def __init__(self, queue): ... + def __init__(self, queue) -> None: ... def enqueue(self, record): ... def prepare(self, record): ... def emit(self, record): ... @@ -191,7 +191,7 @@ class QueueHandler(logging.Handler): class QueueListener: queue = ... # type: Any handlers = ... # type: Any - def __init__(self, queue, *handlers): ... + def __init__(self, queue, *handlers) -> None: ... def dequeue(self, block): ... def start(self): ... def prepare(self, record): ... diff --git a/stdlib/3/smtplib.pyi b/stdlib/3/smtplib.pyi index fd510df15..269c2f86b 100644 --- a/stdlib/3/smtplib.pyi +++ b/stdlib/3/smtplib.pyi @@ -11,19 +11,19 @@ class SMTPResponseException(SMTPException): smtp_code = ... # type: Any smtp_error = ... # type: Any args = ... # type: Any - def __init__(self, code, msg): ... + def __init__(self, code, msg) -> None: ... class SMTPSenderRefused(SMTPResponseException): smtp_code = ... # type: Any smtp_error = ... # type: Any sender = ... # type: Any args = ... # type: Any - def __init__(self, code, msg, sender): ... + def __init__(self, code, msg, sender) -> None: ... class SMTPRecipientsRefused(SMTPException): recipients = ... # type: Any args = ... # type: Any - def __init__(self, recipients): ... + def __init__(self, recipients) -> None: ... class SMTPDataError(SMTPResponseException): ... class SMTPConnectError(SMTPResponseException): ... @@ -88,7 +88,7 @@ class SMTP_SSL(SMTP): class LMTP(SMTP): ehlo_msg = ... # type: Any - def __init__(self, host='', port=..., local_hostname=None, source_address=None): ... + def __init__(self, host='', port=..., local_hostname=None, source_address=None) -> None: ... sock = ... # type: Any file = ... # type: Any def connect(self, host='', port=0, source_address=None): ... diff --git a/stdlib/3/ssl.pyi b/stdlib/3/ssl.pyi index 1ba5dbbc3..3b603cf8d 100644 --- a/stdlib/3/ssl.pyi +++ b/stdlib/3/ssl.pyi @@ -120,7 +120,7 @@ class _SSLContext: options = ... # type: Any verify_flags = ... # type: Any verify_mode = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... def _set_npn_protocols(self, *args, **kwargs): ... def _wrap_socket(self, *args, **kwargs): ... def cert_store_stats(self): ... @@ -137,7 +137,7 @@ class _SSLContext: class SSLContext(_SSLContext): def __new__(cls, protocol, *args, **kwargs): ... protocol = ... # type: Any - def __init__(self, protocol): ... + def __init__(self, protocol) -> None: ... def wrap_socket(self, sock, server_side=False, do_handshake_on_connect=True, suppress_ragged_eofs=True, server_hostname=None): ... def set_npn_protocols(self, npn_protocols): ... diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index c6d50b79b..33fc06c56 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -21,7 +21,7 @@ no_type_check = object() class TypeAlias: # Class for defining generic aliases for library types. - def __init__(self, target_type): ... + def __init__(self, target_type) -> None: ... def __getitem__(self, typeargs): ... Union = TypeAlias(object) diff --git a/stdlib/3/webbrowser.pyi b/stdlib/3/webbrowser.pyi index 3c8e6181d..4d9c16aad 100644 --- a/stdlib/3/webbrowser.pyi +++ b/stdlib/3/webbrowser.pyi @@ -16,7 +16,7 @@ class BaseBrowser: args = ... # type: Any name = ... # type: Any basename = ... # type: Any - def __init__(self, name=''): ... + def __init__(self, name='') -> None: ... def open(self, url, new=0, autoraise=True): ... def open_new(self, url): ... def open_new_tab(self, url): ... @@ -25,7 +25,7 @@ class GenericBrowser(BaseBrowser): name = ... # type: Any args = ... # type: Any basename = ... # type: Any - def __init__(self, name): ... + def __init__(self, name) -> None: ... def open(self, url, new=0, autoraise=True): ... class BackgroundBrowser(GenericBrowser): @@ -90,9 +90,9 @@ class WindowsDefault(BaseBrowser): class MacOSX(BaseBrowser): name = ... # type: Any - def __init__(self, name): ... + def __init__(self, name) -> None: ... def open(self, url, new=0, autoraise=True): ... class MacOSXOSAScript(BaseBrowser): - def __init__(self, name): ... + def __init__(self, name) -> None: ... def open(self, url, new=0, autoraise=True): ... diff --git a/stdlib/3/xml/etree/ElementPath.pyi b/stdlib/3/xml/etree/ElementPath.pyi index 072a71953..81c00907b 100644 --- a/stdlib/3/xml/etree/ElementPath.pyi +++ b/stdlib/3/xml/etree/ElementPath.pyi @@ -20,7 +20,7 @@ ops = ... # type: Any class _SelectorContext: parent_map = ... # type: Any root = ... # type: Any - def __init__(self, root): ... + def __init__(self, root) -> None: ... def iterfind(elem, path, namespaces=None): ... def find(elem, path, namespaces=None): ... diff --git a/stdlib/3/xml/etree/ElementTree.pyi b/stdlib/3/xml/etree/ElementTree.pyi index 96fddb7af..e5e958987 100644 --- a/stdlib/3/xml/etree/ElementTree.pyi +++ b/stdlib/3/xml/etree/ElementTree.pyi @@ -12,7 +12,7 @@ class ParseError(SyntaxError): ... def iselement(element): ... class Element: - def __init__(self, tag, attrib=..., **extra): ... + def __init__(self, tag, attrib=..., **extra) -> None: ... def append(self, *args, **kwargs): ... def clear(self, *args, **kwargs): ... def extend(self, *args, **kwargs): ... @@ -51,7 +51,7 @@ PI = ... # type: Any class QName: text = ... # type: Any - def __init__(self, text_or_uri, tag=None): ... + def __init__(self, text_or_uri, tag=None) -> None: ... def __hash__(self): ... def __le__(self, other): ... def __lt__(self, other): ... @@ -61,7 +61,7 @@ class QName: def __ne__(self, other): ... class ElementTree: - def __init__(self, element=None, file=None): ... + def __init__(self, element=None, file=None) -> None: ... def getroot(self): ... def parse(self, source, parser=None): ... def iter(self, tag=None): ... @@ -78,7 +78,7 @@ def tostring(element, encoding=None, method=None, *, short_empty_elements=True): class _ListDataStream(io.BufferedIOBase): lst = ... # type: Any - def __init__(self, lst): ... + def __init__(self, lst) -> None: ... def writable(self): ... def seekable(self): ... def write(self, b): ... @@ -90,14 +90,14 @@ def parse(source, parser=None): ... def iterparse(source, events=None, parser=None): ... class XMLPullParser: - def __init__(self, events=None, *, _parser=None): ... + def __init__(self, events=None, *, _parser=None) -> None: ... def feed(self, data): ... def close(self): ... def read_events(self): ... class _IterParseIterator: root = ... # type: Any - def __init__(self, source, events, parser, close_source=False): ... + def __init__(self, source, events, parser, close_source=False) -> None: ... def __next__(self): ... def __iter__(self): ... @@ -109,7 +109,7 @@ fromstring = ... # type: Any def fromstringlist(sequence, parser=None): ... class TreeBuilder: - def __init__(self, element_factory=None): ... + def __init__(self, element_factory=None) -> None: ... def close(self): ... def data(self, data): ... def start(self, tag, attrs): ... @@ -119,7 +119,7 @@ class XMLParser: target = ... # type: Any entity = ... # type: Any version = ... # type: Any - def __init__(self, html=..., target=..., encoding=...): ... + def __init__(self, html=..., target=..., encoding=...) -> None: ... def _parse_whole(self, *args, **kwargs): ... def _setevents(self, *args, **kwargs): ... def close(self, *args, **kwargs): ... diff --git a/third_party/2.7/boto/connection.pyi b/third_party/2.7/boto/connection.pyi index daac8cfb5..50a0b04c3 100644 --- a/third_party/2.7/boto/connection.pyi +++ b/third_party/2.7/boto/connection.pyi @@ -11,7 +11,7 @@ DEFAULT_CA_CERTS_FILE = ... # type: Any class HostConnectionPool: queue = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def size(self): ... def put(self, conn): ... def get(self): ... @@ -23,7 +23,7 @@ class ConnectionPool: host_to_pool = ... # type: Any last_clean_time = ... # type: Any mutex = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def size(self): ... def get_http_connection(self, host, port, is_secure): ... def put_http_connection(self, host, port, is_secure, conn): ... @@ -39,7 +39,7 @@ class HTTPRequest: params = ... # type: Any headers = ... # type: Any body = ... # type: Any - def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body): ... + def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ... def authorize(self, connection, **kwargs): ... class AWSAuthConnection: @@ -62,7 +62,7 @@ class AWSAuthConnection: provider = ... # type: Any auth_service_name = ... # type: Any request_hook = ... # type: Any - def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='', provider='', security_token=None, suppress_consec_slashes=True, validate_certs=True, profile_name=None): ... + def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='', provider='', security_token=None, suppress_consec_slashes=True, validate_certs=True, profile_name=None) -> None: ... auth_region_name = ... # type: Any def connection(self): ... def aws_access_key_id(self): ... @@ -98,7 +98,7 @@ class AWSAuthConnection: class AWSQueryConnection(AWSAuthConnection): APIVersion = ... # type: Any ResponseError = ... # type: Any - def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host=None, debug=0, https_connection_factory=None, path='', security_token=None, validate_certs=True, profile_name=None, provider=''): ... + def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host=None, debug=0, https_connection_factory=None, path='', security_token=None, validate_certs=True, profile_name=None, provider='') -> None: ... def get_utf8_value(self, value): ... def make_request(self, action, params=None, path='', verb=''): ... def build_list_params(self, params, items, label): ... diff --git a/third_party/2.7/boto/ec2/elb/__init__.pyi b/third_party/2.7/boto/ec2/elb/__init__.pyi index 7ea74763c..54bd957ba 100644 --- a/third_party/2.7/boto/ec2/elb/__init__.pyi +++ b/third_party/2.7/boto/ec2/elb/__init__.pyi @@ -15,7 +15,7 @@ class ELBConnection(AWSQueryConnection): DefaultRegionName = ... # type: Any DefaultRegionEndpoint = ... # type: Any region = ... # type: Any - def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, region=None, path='', security_token=None, validate_certs=True, profile_name=None): ... + def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, region=None, path='', security_token=None, validate_certs=True, profile_name=None) -> None: ... def build_list_params(self, params, items, label): ... def get_all_load_balancers(self, load_balancer_names=None, marker=None): ... def create_load_balancer(self, name, zones, listeners=None, subnets=None, security_groups=None, scheme='', complex_listeners=None): ... diff --git a/third_party/2.7/croniter.pyi b/third_party/2.7/croniter.pyi index 154e1cfb7..b452c0046 100644 --- a/third_party/2.7/croniter.pyi +++ b/third_party/2.7/croniter.pyi @@ -15,7 +15,7 @@ class croniter: cur = ... # type: Any exprs = ... # type: Any expanded = ... # type: Any - def __init__(self, expr_format, start_time=None): ... + def __init__(self, expr_format, start_time=None) -> None: ... def get_next(self, ret_type=...): ... def get_prev(self, ret_type=...): ... def get_current(self, ret_type=...): ... diff --git a/third_party/2.7/fb303/FacebookService.pyi b/third_party/2.7/fb303/FacebookService.pyi index def29ced0..b2922921c 100644 --- a/third_party/2.7/fb303/FacebookService.pyi +++ b/third_party/2.7/fb303/FacebookService.pyi @@ -23,7 +23,7 @@ class Iface: def shutdown(self): ... class Client(Iface): - def __init__(self, iprot, oprot=None): ... + def __init__(self, iprot, oprot=None) -> None: ... def getName(self): ... def send_getName(self): ... def recv_getName(self): ... @@ -63,7 +63,7 @@ class Client(Iface): def send_shutdown(self): ... class Processor(Iface, TProcessor): - def __init__(self, handler): ... + def __init__(self, handler) -> None: ... def process(self, iprot, oprot): ... def process_getName(self, seqid, iprot, oprot): ... def process_getVersion(self, seqid, iprot, oprot): ... @@ -90,7 +90,7 @@ class getName_args: class getName_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -108,7 +108,7 @@ class getVersion_args: class getVersion_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -126,7 +126,7 @@ class getStatus_args: class getStatus_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -144,7 +144,7 @@ class getStatusDetails_args: class getStatusDetails_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -162,7 +162,7 @@ class getCounters_args: class getCounters_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -172,7 +172,7 @@ class getCounters_result: class getCounter_args: thrift_spec = ... # type: Any key = ... # type: Any - def __init__(self, key=None): ... + def __init__(self, key=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -182,7 +182,7 @@ class getCounter_args: class getCounter_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -193,7 +193,7 @@ class setOption_args: thrift_spec = ... # type: Any key = ... # type: Any value = ... # type: Any - def __init__(self, key=None, value=None): ... + def __init__(self, key=None, value=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -211,7 +211,7 @@ class setOption_result: class getOption_args: thrift_spec = ... # type: Any key = ... # type: Any - def __init__(self, key=None): ... + def __init__(self, key=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -221,7 +221,7 @@ class getOption_args: class getOption_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -239,7 +239,7 @@ class getOptions_args: class getOptions_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -249,7 +249,7 @@ class getOptions_result: class getCpuProfile_args: thrift_spec = ... # type: Any profileDurationInSec = ... # type: Any - def __init__(self, profileDurationInSec=None): ... + def __init__(self, profileDurationInSec=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -259,7 +259,7 @@ class getCpuProfile_args: class getCpuProfile_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -277,7 +277,7 @@ class aliveSince_args: class aliveSince_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... diff --git a/third_party/2.7/google/protobuf/descriptor.pyi b/third_party/2.7/google/protobuf/descriptor.pyi index 1ac0e18d7..9185100f3 100644 --- a/third_party/2.7/google/protobuf/descriptor.pyi +++ b/third_party/2.7/google/protobuf/descriptor.pyi @@ -13,7 +13,7 @@ class DescriptorMetaclass(type): class DescriptorBase: __metaclass__ = ... # type: Any has_options = ... # type: Any - def __init__(self, options, options_class_name): ... + def __init__(self, options, options_class_name) -> None: ... def GetOptions(self): ... class _NestedDescriptorBase(DescriptorBase): @@ -21,7 +21,7 @@ class _NestedDescriptorBase(DescriptorBase): 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=None, serialized_end=None): ... + def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None) -> None: ... def GetTopLevelContainingType(self): ... def CopyToProto(self, proto): ... @@ -42,7 +42,7 @@ class Descriptor(_NestedDescriptorBase): 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=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None): ... + def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None) -> None: ... def EnumValueName(self, enum, value): ... def CopyToProto(self, proto): ... @@ -100,7 +100,7 @@ class FieldDescriptor(DescriptorBase): 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=None, has_default_value=True, containing_oneof=None): ... + 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=None, has_default_value=True, containing_oneof=None) -> None: ... @staticmethod def ProtoTypeToCppProtoType(proto_type): ... @@ -109,7 +109,7 @@ class EnumDescriptor(_NestedDescriptorBase): values = ... # type: Any values_by_name = ... # type: Any values_by_number = ... # type: Any - def __init__(self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None): ... + def __init__(self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None) -> None: ... def CopyToProto(self, proto): ... class EnumValueDescriptor(DescriptorBase): @@ -118,7 +118,7 @@ class EnumValueDescriptor(DescriptorBase): index = ... # type: Any number = ... # type: Any type = ... # type: Any - def __init__(self, name, index, number, type=None, options=None): ... + def __init__(self, name, index, number, type=None, options=None) -> None: ... class OneofDescriptor: def __new__(cls, name, full_name, index, containing_type, fields): ... @@ -127,12 +127,12 @@ class OneofDescriptor: index = ... # type: Any containing_type = ... # type: Any fields = ... # type: Any - def __init__(self, name, full_name, index, containing_type, fields): ... + def __init__(self, name, full_name, index, containing_type, fields) -> None: ... class ServiceDescriptor(_NestedDescriptorBase): index = ... # type: Any methods = ... # type: Any - def __init__(self, name, full_name, index, methods, options=None, file=None, serialized_start=None, serialized_end=None): ... + def __init__(self, name, full_name, index, methods, options=None, file=None, serialized_start=None, serialized_end=None) -> None: ... def FindMethodByName(self, name): ... def CopyToProto(self, proto): ... @@ -143,7 +143,7 @@ class MethodDescriptor(DescriptorBase): 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): ... + def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=None) -> None: ... class FileDescriptor(DescriptorBase): def __new__(cls, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ... @@ -156,7 +156,7 @@ class FileDescriptor(DescriptorBase): enum_types_by_name = ... # type: Any extensions_by_name = ... # type: Any dependencies = ... # type: Any - def __init__(self, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ... + def __init__(self, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None) -> None: ... def CopyToProto(self, proto): ... def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True, syntax=None): ... diff --git a/third_party/2.7/google/protobuf/message.pyi b/third_party/2.7/google/protobuf/message.pyi index 0ad3325d4..f90d616b9 100644 --- a/third_party/2.7/google/protobuf/message.pyi +++ b/third_party/2.7/google/protobuf/message.pyi @@ -33,4 +33,4 @@ class Message: def ByteSize(self) -> int: ... # TODO: check kwargs - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... diff --git a/third_party/2.7/google/protobuf/reflection.pyi b/third_party/2.7/google/protobuf/reflection.pyi index ddd734724..3d3e76baf 100644 --- a/third_party/2.7/google/protobuf/reflection.pyi +++ b/third_party/2.7/google/protobuf/reflection.pyi @@ -4,7 +4,7 @@ class GeneratedProtocolMessageType(type): def __new__(cls, name, bases, dictionary): ... - def __init__(cls, name, bases, dictionary): ... + def __init__(cls, name, bases, dictionary) -> None: ... def ParseMessage(descriptor, byte_str): ... def MakeClass(descriptor): ... diff --git a/third_party/2.7/kazoo/client.pyi b/third_party/2.7/kazoo/client.pyi index e069ccb9a..9c87c3807 100644 --- a/third_party/2.7/kazoo/client.pyi +++ b/third_party/2.7/kazoo/client.pyi @@ -38,7 +38,7 @@ class KazooClient: SetPartitioner = ... # type: Any Semaphore = ... # type: Any ShallowParty = ... # type: Any - def __init__(self, hosts='', timeout=0.0, client_id=None, handler=None, default_acl=None, auth_data=None, read_only=None, randomize_hosts=True, connection_retry=None, command_retry=None, logger=None, **kwargs): ... + def __init__(self, hosts='', timeout=0.0, client_id=None, handler=None, default_acl=None, auth_data=None, read_only=None, randomize_hosts=True, connection_retry=None, command_retry=None, logger=None, **kwargs) -> None: ... @property def client_state(self): ... @property @@ -86,7 +86,7 @@ class TransactionRequest: client = ... # type: Any operations = ... # type: Any committed = ... # type: Any - def __init__(self, client): ... + def __init__(self, client) -> None: ... def create(self, path, value='', acl=None, ephemeral=False, sequence=False): ... def delete(self, path, version=-1): ... def set_data(self, path, value, version=-1): ... diff --git a/third_party/2.7/kazoo/recipe/watchers.pyi b/third_party/2.7/kazoo/recipe/watchers.pyi index 256a022cf..41a20d6ea 100644 --- a/third_party/2.7/kazoo/recipe/watchers.pyi +++ b/third_party/2.7/kazoo/recipe/watchers.pyi @@ -7,11 +7,11 @@ from typing import Any log = ... # type: Any class DataWatch: - def __init__(self, client, path, func=None, *args, **kwargs): ... + def __init__(self, client, path, func=None, *args, **kwargs) -> None: ... def __call__(self, func): ... class ChildrenWatch: - def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False): ... + def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False) -> None: ... def __call__(self, func): ... class PatientChildrenWatch: @@ -20,6 +20,6 @@ class PatientChildrenWatch: children = ... # type: Any time_boundary = ... # type: Any children_changed = ... # type: Any - def __init__(self, client, path, time_boundary=30): ... + def __init__(self, client, path, time_boundary=30) -> None: ... asy = ... # type: Any def start(self): ... diff --git a/third_party/2.7/redis/client.pyi b/third_party/2.7/redis/client.pyi index 4c5c293f6..169a3b5d5 100644 --- a/third_party/2.7/redis/client.pyi +++ b/third_party/2.7/redis/client.pyi @@ -41,7 +41,7 @@ class StrictRedis: def from_url(cls, url, db=None, **kwargs): ... connection_pool = ... # type: Any response_callbacks = ... # type: Any - def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, encoding='', encoding_errors='', charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None): ... + def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, encoding='', encoding_errors='', charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None) -> None: ... def set_response_callback(self, command, callback): ... def pipeline(self, transaction=True, shard_hint=None): ... def transaction(self, func, *watches, **kwargs): ... @@ -231,7 +231,7 @@ class PubSub: encoding = ... # type: Any encoding_errors = ... # type: Any decode_responses = ... # type: Any - def __init__(self, connection_pool, shard_hint=None, ignore_subscribe_messages=False): ... + def __init__(self, connection_pool, shard_hint=None, ignore_subscribe_messages=False) -> None: ... def __del__(self): ... channels = ... # type: Any patterns = ... # type: Any @@ -260,7 +260,7 @@ class BasePipeline: transaction = ... # type: Any shard_hint = ... # type: Any watching = ... # type: Any - def __init__(self, connection_pool, response_callbacks, transaction, shard_hint): ... + 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): ... @@ -289,5 +289,5 @@ class Script: registered_client = ... # type: Any script = ... # type: Any sha = ... # type: Any - def __init__(self, registered_client, script): ... + def __init__(self, registered_client, script) -> None: ... def __call__(self, keys=..., args=..., client=None): ... diff --git a/third_party/2.7/redis/connection.pyi b/third_party/2.7/redis/connection.pyi index 160d9153a..dfe2569d7 100644 --- a/third_party/2.7/redis/connection.pyi +++ b/third_party/2.7/redis/connection.pyi @@ -18,7 +18,7 @@ SERVER_CLOSED_CONNECTION_ERROR = ... # type: Any class Token: value = ... # type: Any - def __init__(self, value): ... + def __init__(self, value) -> None: ... class BaseParser: EXCEPTION_CLASSES = ... # type: Any @@ -28,7 +28,7 @@ class SocketBuffer: socket_read_size = ... # type: Any bytes_written = ... # type: Any bytes_read = ... # type: Any - def __init__(self, socket, socket_read_size): ... + def __init__(self, socket, socket_read_size) -> None: ... @property def length(self): ... def read(self, length): ... @@ -39,7 +39,7 @@ class SocketBuffer: class PythonParser(BaseParser): encoding = ... # type: Any socket_read_size = ... # type: Any - def __init__(self, socket_read_size): ... + def __init__(self, socket_read_size) -> None: ... def __del__(self): ... def on_connect(self, connection): ... def on_disconnect(self): ... @@ -48,7 +48,7 @@ class PythonParser(BaseParser): class HiredisParser(BaseParser): socket_read_size = ... # type: Any - def __init__(self, socket_read_size): ... + def __init__(self, socket_read_size) -> None: ... def __del__(self): ... def on_connect(self, connection): ... def on_disconnect(self): ... @@ -72,7 +72,7 @@ class Connection: encoding = ... # type: Any encoding_errors = ... # type: Any decode_responses = ... # type: Any - def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=False, socket_keepalive_options=None, retry_on_timeout=False, encoding='', encoding_errors='', decode_responses=False, parser_class=..., socket_read_size=65536): ... + def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=False, socket_keepalive_options=None, retry_on_timeout=False, encoding='', encoding_errors='', decode_responses=False, parser_class=..., socket_read_size=65536) -> None: ... def __del__(self): ... def register_connect_callback(self, callback): ... def clear_connect_callbacks(self): ... @@ -93,7 +93,7 @@ class SSLConnection(Connection): certfile = ... # type: Any cert_reqs = ... # type: Any ca_certs = ... # type: Any - def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None, **kwargs): ... + def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None, **kwargs) -> None: ... class UnixDomainSocketConnection(Connection): description_format = ... # type: Any @@ -106,7 +106,7 @@ class UnixDomainSocketConnection(Connection): encoding = ... # type: Any encoding_errors = ... # type: Any decode_responses = ... # type: Any - def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='', encoding_errors='', decode_responses=False, retry_on_timeout=False, parser_class=..., socket_read_size=65536): ... + def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='', encoding_errors='', decode_responses=False, retry_on_timeout=False, parser_class=..., socket_read_size=65536) -> None: ... class ConnectionPool: @classmethod @@ -114,7 +114,7 @@ class ConnectionPool: connection_class = ... # type: Any connection_kwargs = ... # type: Any max_connections = ... # type: Any - def __init__(self, connection_class=..., max_connections=None, **connection_kwargs): ... + def __init__(self, connection_class=..., max_connections=None, **connection_kwargs) -> None: ... pid = ... # type: Any def reset(self): ... def get_connection(self, command_name, *keys, **options): ... @@ -125,7 +125,7 @@ class ConnectionPool: class BlockingConnectionPool(ConnectionPool): queue_class = ... # type: Any timeout = ... # type: Any - def __init__(self, max_connections=50, timeout=20, connection_class=..., queue_class=..., **connection_kwargs): ... + def __init__(self, max_connections=50, timeout=20, connection_class=..., queue_class=..., **connection_kwargs) -> None: ... pid = ... # type: Any pool = ... # type: Any def reset(self): ... diff --git a/third_party/2.7/requests/adapters.pyi b/third_party/2.7/requests/adapters.pyi index bed0758b4..1602b56d6 100644 --- a/third_party/2.7/requests/adapters.pyi +++ b/third_party/2.7/requests/adapters.pyi @@ -42,7 +42,7 @@ DEFAULT_POOLSIZE = ... # type: Any DEFAULT_RETRIES = ... # type: Any class BaseAdapter: - def __init__(self): ... + def __init__(self) -> None: ... # TODO: "request" parameter not actually supported, added to please mypy. def send(self, request=None): ... def close(self): ... diff --git a/third_party/2.7/requests/auth.pyi b/third_party/2.7/requests/auth.pyi index 43238dcba..8eea2b0e0 100644 --- a/third_party/2.7/requests/auth.pyi +++ b/third_party/2.7/requests/auth.pyi @@ -20,7 +20,7 @@ class AuthBase: class HTTPBasicAuth(AuthBase): username = ... # type: Any password = ... # type: Any - def __init__(self, username, password): ... + def __init__(self, username, password) -> None: ... def __call__(self, r): ... class HTTPProxyAuth(HTTPBasicAuth): @@ -34,7 +34,7 @@ class HTTPDigestAuth(AuthBase): chal = ... # type: Any pos = ... # type: Any num_401_calls = ... # type: Any - def __init__(self, username, password): ... + def __init__(self, username, password) -> None: ... def build_digest_header(self, method, url): ... def handle_redirect(self, r, **kwargs): ... def handle_401(self, r, **kwargs): ... diff --git a/third_party/2.7/requests/cookies.pyi b/third_party/2.7/requests/cookies.pyi index 1cb398414..29040b9a2 100644 --- a/third_party/2.7/requests/cookies.pyi +++ b/third_party/2.7/requests/cookies.pyi @@ -6,7 +6,7 @@ from . import compat class MockRequest: type = ... # type: Any - def __init__(self, request): ... + def __init__(self, request) -> None: ... def get_type(self): ... def get_host(self): ... def get_origin_req_host(self): ... @@ -25,7 +25,7 @@ class MockRequest: def host(self): ... class MockResponse: - def __init__(self, headers): ... + def __init__(self, headers) -> None: ... def info(self): ... def getheaders(self, name): ... diff --git a/third_party/2.7/requests/exceptions.pyi b/third_party/2.7/requests/exceptions.pyi index 295796783..ff0c32883 100644 --- a/third_party/2.7/requests/exceptions.pyi +++ b/third_party/2.7/requests/exceptions.pyi @@ -6,7 +6,7 @@ from .packages.urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): response = ... # type: Any request = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... class HTTPError(RequestException): ... class ConnectionError(RequestException): ... diff --git a/third_party/2.7/requests/models.pyi b/third_party/2.7/requests/models.pyi index b16c2ea2f..1d0f9521a 100644 --- a/third_party/2.7/requests/models.pyi +++ b/third_party/2.7/requests/models.pyi @@ -82,7 +82,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): headers = ... # type: Any body = ... # type: Any hooks = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None, cookies=None, hooks=None, json=None): ... def copy(self): ... diff --git a/third_party/2.7/requests/packages/__init__.pyi b/third_party/2.7/requests/packages/__init__.pyi index 835913f46..f6d006828 100644 --- a/third_party/2.7/requests/packages/__init__.pyi +++ b/third_party/2.7/requests/packages/__init__.pyi @@ -3,6 +3,6 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. class VendorAlias: - def __init__(self, package_names): ... + def __init__(self, package_names) -> None: ... def find_module(self, fullname, path=None): ... def load_module(self, name): ... diff --git a/third_party/2.7/requests/packages/urllib3/_collections.pyi b/third_party/2.7/requests/packages/urllib3/_collections.pyi index 452b77292..0a6491a78 100644 --- a/third_party/2.7/requests/packages/urllib3/_collections.pyi +++ b/third_party/2.7/requests/packages/urllib3/_collections.pyi @@ -13,7 +13,7 @@ class RecentlyUsedContainer(MutableMapping): ContainerCls = ... # type: Any dispose_func = ... # type: Any lock = ... # type: Any - def __init__(self, maxsize=10, dispose_func=None): ... + def __init__(self, maxsize=10, dispose_func=None) -> None: ... def __getitem__(self, key): ... def __setitem__(self, key, value): ... def __delitem__(self, key): ... @@ -23,7 +23,7 @@ class RecentlyUsedContainer(MutableMapping): def keys(self): ... class HTTPHeaderDict(dict): - def __init__(self, headers=None, **kwargs): ... + def __init__(self, headers=None, **kwargs) -> None: ... def __setitem__(self, key, val): ... def __getitem__(self, key): ... def __delitem__(self, key): ... diff --git a/third_party/2.7/requests/packages/urllib3/connection.pyi b/third_party/2.7/requests/packages/urllib3/connection.pyi index 4daa1ac85..5390b72b8 100644 --- a/third_party/2.7/requests/packages/urllib3/connection.pyi +++ b/third_party/2.7/requests/packages/urllib3/connection.pyi @@ -21,14 +21,14 @@ class HTTPConnection(object): is_verified = ... # type: Any source_address = ... # type: Any socket_options = ... # type: Any - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... def connect(self): ... class HTTPSConnection(HTTPConnection): 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=..., **kw): ... + def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw) -> None: ... sock = ... # type: Any def connect(self): ... diff --git a/third_party/2.7/requests/packages/urllib3/connectionpool.pyi b/third_party/2.7/requests/packages/urllib3/connectionpool.pyi index 57ebe57b4..194463847 100644 --- a/third_party/2.7/requests/packages/urllib3/connectionpool.pyi +++ b/third_party/2.7/requests/packages/urllib3/connectionpool.pyi @@ -49,7 +49,7 @@ class ConnectionPool: QueueCls = ... # type: Any host = ... # type: Any port = ... # type: Any - def __init__(self, host, port=None): ... + def __init__(self, host, port=None) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_val, exc_tb): ... def close(self): ... @@ -67,7 +67,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): num_connections = ... # type: Any num_requests = ... # type: Any conn_kw = ... # type: Any - def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw): ... + def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw) -> None: ... def close(self): ... def is_same_host(self, url): ... def urlopen(self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=..., pool_timeout=None, release_conn=None, **response_kw): ... @@ -82,6 +82,6 @@ class HTTPSConnectionPool(HTTPConnectionPool): ssl_version = ... # type: Any assert_hostname = ... # type: Any assert_fingerprint = ... # type: Any - def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw): ... + def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw) -> None: ... def connection_from_url(url, **kw): ... diff --git a/third_party/2.7/requests/packages/urllib3/exceptions.pyi b/third_party/2.7/requests/packages/urllib3/exceptions.pyi index 39bba4746..03523283a 100644 --- a/third_party/2.7/requests/packages/urllib3/exceptions.pyi +++ b/third_party/2.7/requests/packages/urllib3/exceptions.pyi @@ -9,12 +9,12 @@ class HTTPWarning(Warning): ... class PoolError(HTTPError): pool = ... # type: Any - def __init__(self, pool, message): ... + def __init__(self, pool, message) -> None: ... def __reduce__(self): ... class RequestError(PoolError): url = ... # type: Any - def __init__(self, pool, url, message): ... + def __init__(self, pool, url, message) -> None: ... def __reduce__(self): ... class SSLError(HTTPError): ... @@ -26,11 +26,11 @@ ConnectionError = ... # type: Any class MaxRetryError(RequestError): reason = ... # type: Any - def __init__(self, pool, url, reason=None): ... + def __init__(self, pool, url, reason=None) -> None: ... class HostChangedError(RequestError): retries = ... # type: Any - def __init__(self, pool, url, retries=3): ... + def __init__(self, pool, url, retries=3) -> None: ... class TimeoutStateError(HTTPError): ... class TimeoutError(HTTPError): ... @@ -42,7 +42,7 @@ class LocationValueError(ValueError, HTTPError): ... class LocationParseError(LocationValueError): location = ... # type: Any - def __init__(self, location): ... + def __init__(self, location) -> None: ... class ResponseError(HTTPError): GENERIC_ERROR = ... # type: Any diff --git a/third_party/2.7/requests/packages/urllib3/fields.pyi b/third_party/2.7/requests/packages/urllib3/fields.pyi index ea43fb955..917c7ec9e 100644 --- a/third_party/2.7/requests/packages/urllib3/fields.pyi +++ b/third_party/2.7/requests/packages/urllib3/fields.pyi @@ -9,7 +9,7 @@ def format_header_param(name, value): ... class RequestField: data = ... # type: Any headers = ... # type: Any - def __init__(self, name, data, filename=None, headers=None): ... + def __init__(self, name, data, filename=None, headers=None) -> None: ... @classmethod def from_tuples(cls, fieldname, value): ... def render_headers(self): ... diff --git a/third_party/2.7/requests/packages/urllib3/poolmanager.pyi b/third_party/2.7/requests/packages/urllib3/poolmanager.pyi index 2c9fdb0cd..861af7ede 100644 --- a/third_party/2.7/requests/packages/urllib3/poolmanager.pyi +++ b/third_party/2.7/requests/packages/urllib3/poolmanager.pyi @@ -9,7 +9,7 @@ class PoolManager(RequestMethods): proxy = ... # type: Any connection_pool_kw = ... # type: Any pools = ... # type: Any - def __init__(self, num_pools=10, headers=None, **connection_pool_kw): ... + def __init__(self, num_pools=10, headers=None, **connection_pool_kw) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_val, exc_tb): ... def clear(self): ... @@ -22,7 +22,7 @@ class PoolManager(RequestMethods): class ProxyManager(PoolManager): proxy = ... # type: Any proxy_headers = ... # type: Any - def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw): ... + def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw) -> None: ... def connection_from_host(self, host, port=None, scheme=''): ... # TODO: This was the original signature -- copied another one from base class to fix complaint. # def urlopen(self, method, url, redirect=True, **kw): ... diff --git a/third_party/2.7/requests/packages/urllib3/request.pyi b/third_party/2.7/requests/packages/urllib3/request.pyi index ec03d6d12..591a9d4e2 100644 --- a/third_party/2.7/requests/packages/urllib3/request.pyi +++ b/third_party/2.7/requests/packages/urllib3/request.pyi @@ -6,7 +6,7 @@ from typing import Any class RequestMethods: headers = ... # type: Any - def __init__(self, headers=None): ... + def __init__(self, headers=None) -> None: ... def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ... def request(self, method, url, fields=None, headers=None, **urlopen_kw): ... def request_encode_url(self, method, url, fields=None, **urlopen_kw): ... diff --git a/third_party/2.7/requests/packages/urllib3/response.pyi b/third_party/2.7/requests/packages/urllib3/response.pyi index c7e89177f..d587e21a9 100644 --- a/third_party/2.7/requests/packages/urllib3/response.pyi +++ b/third_party/2.7/requests/packages/urllib3/response.pyi @@ -19,12 +19,12 @@ PY3 = True # six.PY3 is_fp_closed = response.is_fp_closed class DeflateDecoder: - def __init__(self): ... + def __init__(self) -> None: ... def __getattr__(self, name): ... def decompress(self, data): ... class GzipDecoder: - def __init__(self): ... + def __init__(self) -> None: ... def __getattr__(self, name): ... def decompress(self, data): ... @@ -37,7 +37,7 @@ class HTTPResponse(IO[Any]): reason = ... # type: Any strict = ... # type: Any decode_content = ... # type: Any - def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None): ... + def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None) -> None: ... def get_redirect_location(self): ... def release_conn(self): ... @property diff --git a/third_party/2.7/requests/packages/urllib3/util/retry.pyi b/third_party/2.7/requests/packages/urllib3/util/retry.pyi index a4ff661a6..7030158da 100644 --- a/third_party/2.7/requests/packages/urllib3/util/retry.pyi +++ b/third_party/2.7/requests/packages/urllib3/util/retry.pyi @@ -25,7 +25,7 @@ class Retry: method_whitelist = ... # type: Any backoff_factor = ... # type: Any raise_on_redirect = ... # type: Any - def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0): ... + def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0) -> None: ... def new(self, **kw): ... @classmethod def from_int(cls, retries, redirect=True, default=None): ... diff --git a/third_party/2.7/requests/packages/urllib3/util/timeout.pyi b/third_party/2.7/requests/packages/urllib3/util/timeout.pyi index 8bad19567..3879b5f59 100644 --- a/third_party/2.7/requests/packages/urllib3/util/timeout.pyi +++ b/third_party/2.7/requests/packages/urllib3/util/timeout.pyi @@ -12,7 +12,7 @@ def current_time(): ... class Timeout: DEFAULT_TIMEOUT = ... # type: Any total = ... # type: Any - def __init__(self, total=None, connect=..., read=...): ... + def __init__(self, total=None, connect=..., read=...) -> None: ... @classmethod def from_float(cls, timeout): ... def clone(self): ... diff --git a/third_party/2.7/requests/structures.pyi b/third_party/2.7/requests/structures.pyi index 6d9e0da59..df60803a4 100644 --- a/third_party/2.7/requests/structures.pyi +++ b/third_party/2.7/requests/structures.pyi @@ -4,7 +4,7 @@ from typing import Any import collections class CaseInsensitiveDict(collections.MutableMapping): - def __init__(self, data=None, **kwargs): ... + def __init__(self, data=None, **kwargs) -> None: ... def __setitem__(self, key, value): ... def __getitem__(self, key): ... def __delitem__(self, key): ... @@ -16,6 +16,6 @@ class CaseInsensitiveDict(collections.MutableMapping): class LookupDict(dict): name = ... # type: Any - def __init__(self, name=None): ... + def __init__(self, name=None) -> None: ... def __getitem__(self, key): ... def get(self, key, default=None): ... diff --git a/third_party/2.7/routes/mapper.pyi b/third_party/2.7/routes/mapper.pyi index e4657fda4..26f0b1ab8 100644 --- a/third_party/2.7/routes/mapper.pyi +++ b/third_party/2.7/routes/mapper.pyi @@ -20,7 +20,7 @@ class SubMapper(SubMapperParent): member = ... # type: Any resource_name = ... # type: Any formatted = ... # type: Any - def __init__(self, obj, resource_name=None, collection_name=None, actions=None, formatted=None, **kwargs): ... + def __init__(self, obj, resource_name=None, collection_name=None, actions=None, formatted=None, **kwargs) -> None: ... def connect(self, *args, **kwargs): ... def link(self, rel=None, name=None, action=None, method='', formatted=None, **kwargs): ... def new(self, **kwargs): ... @@ -56,7 +56,7 @@ class Mapper(SubMapperParent): hardcode_names = ... # type: Any minimization = ... # type: Any create_regs_lock = ... # type: Any - def __init__(self, controller_scan=..., directory=None, always_scan=False, register=True, explicit=True): ... + def __init__(self, controller_scan=..., directory=None, always_scan=False, register=True, explicit=True) -> None: ... environ = ... # type: Any def extend(self, routes, path_prefix=''): ... def make_route(self, *args, **kargs): ... diff --git a/third_party/2.7/routes/util.pyi b/third_party/2.7/routes/util.pyi index f7ac1815f..851c81a2f 100644 --- a/third_party/2.7/routes/util.pyi +++ b/third_party/2.7/routes/util.pyi @@ -13,7 +13,7 @@ def url_for(*args, **kargs): ... class URLGenerator: mapper = ... # type: Any environ = ... # type: Any - def __init__(self, mapper, environ): ... + def __init__(self, mapper, environ) -> None: ... def __call__(self, *args, **kargs): ... def current(self, *args, **kwargs): ... diff --git a/third_party/2.7/scribe/scribe.pyi b/third_party/2.7/scribe/scribe.pyi index 24bf0c16c..20d85c957 100644 --- a/third_party/2.7/scribe/scribe.pyi +++ b/third_party/2.7/scribe/scribe.pyi @@ -12,20 +12,20 @@ class Iface(fb303.FacebookService.Iface): def Log(self, messages): ... class Client(fb303.FacebookService.Client, Iface): - def __init__(self, iprot, oprot=None): ... + def __init__(self, iprot, oprot=None) -> None: ... def Log(self, messages): ... def send_Log(self, messages): ... def recv_Log(self): ... class Processor(fb303.FacebookService.Processor, Iface, TProcessor): - def __init__(self, handler): ... + def __init__(self, handler) -> None: ... def process(self, iprot, oprot): ... def process_Log(self, seqid, iprot, oprot): ... class Log_args: thrift_spec = ... # type: Any messages = ... # type: Any - def __init__(self, messages=None): ... + def __init__(self, messages=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... @@ -35,7 +35,7 @@ class Log_args: class Log_result: thrift_spec = ... # type: Any success = ... # type: Any - def __init__(self, success=None): ... + def __init__(self, success=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... diff --git a/third_party/2.7/scribe/ttypes.pyi b/third_party/2.7/scribe/ttypes.pyi index c4f85966b..91cd03218 100644 --- a/third_party/2.7/scribe/ttypes.pyi +++ b/third_party/2.7/scribe/ttypes.pyi @@ -14,7 +14,7 @@ class LogEntry: thrift_spec = ... # type: Any category = ... # type: Any message = ... # type: Any - def __init__(self, category=None, message=None): ... + def __init__(self, category=None, message=None) -> None: ... def read(self, iprot): ... def write(self, oprot): ... def validate(self): ... diff --git a/third_party/2.7/sqlalchemy/dialects/mysql/base.pyi b/third_party/2.7/sqlalchemy/dialects/mysql/base.pyi index 4bbb77451..e1373c729 100644 --- a/third_party/2.7/sqlalchemy/dialects/mysql/base.pyi +++ b/third_party/2.7/sqlalchemy/dialects/mysql/base.pyi @@ -26,15 +26,15 @@ SET_RE = ... # type: Any class _NumericType: unsigned = ... # type: Any zerofill = ... # type: Any - def __init__(self, unsigned=False, zerofill=False, **kw): ... + def __init__(self, unsigned=False, zerofill=False, **kw) -> None: ... class _FloatType(_NumericType, sqltypes.Float): scale = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ... class _IntegerType(_NumericType, sqltypes.Integer): display_width = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class _StringType(sqltypes.String): charset = ... # type: Any @@ -42,110 +42,110 @@ class _StringType(sqltypes.String): unicode = ... # type: Any binary = ... # type: Any national = ... # type: Any - def __init__(self, charset=None, collation=None, ascii=False, binary=False, unicode=False, national=False, **kw): ... + def __init__(self, charset=None, collation=None, ascii=False, binary=False, unicode=False, national=False, **kw) -> None: ... class _MatchType(sqltypes.Float, sqltypes.MatchType): - def __init__(self, **kw): ... + def __init__(self, **kw) -> None: ... class NUMERIC(_NumericType, sqltypes.NUMERIC): __visit_name__ = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ... class DECIMAL(_NumericType, sqltypes.DECIMAL): __visit_name__ = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ... class DOUBLE(_FloatType): __visit_name__ = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ... class REAL(_FloatType, sqltypes.REAL): __visit_name__ = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ... class FLOAT(_FloatType, sqltypes.FLOAT): __visit_name__ = ... # type: Any - def __init__(self, precision=None, scale=None, asdecimal=False, **kw): ... + def __init__(self, precision=None, scale=None, asdecimal=False, **kw) -> None: ... def bind_processor(self, dialect): ... class INTEGER(_IntegerType, sqltypes.INTEGER): __visit_name__ = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class BIGINT(_IntegerType, sqltypes.BIGINT): __visit_name__ = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class MEDIUMINT(_IntegerType): __visit_name__ = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class TINYINT(_IntegerType): __visit_name__ = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class SMALLINT(_IntegerType, sqltypes.SMALLINT): __visit_name__ = ... # type: Any - def __init__(self, display_width=None, **kw): ... + def __init__(self, display_width=None, **kw) -> None: ... class BIT(sqltypes.TypeEngine): __visit_name__ = ... # type: Any length = ... # type: Any - def __init__(self, length=None): ... + def __init__(self, length=None) -> None: ... def result_processor(self, dialect, coltype): ... class TIME(sqltypes.TIME): __visit_name__ = ... # type: Any fsp = ... # type: Any - def __init__(self, timezone=False, fsp=None): ... + def __init__(self, timezone=False, fsp=None) -> None: ... def result_processor(self, dialect, coltype): ... class TIMESTAMP(sqltypes.TIMESTAMP): __visit_name__ = ... # type: Any fsp = ... # type: Any - def __init__(self, timezone=False, fsp=None): ... + def __init__(self, timezone=False, fsp=None) -> None: ... class DATETIME(sqltypes.DATETIME): __visit_name__ = ... # type: Any fsp = ... # type: Any - def __init__(self, timezone=False, fsp=None): ... + def __init__(self, timezone=False, fsp=None) -> None: ... class YEAR(sqltypes.TypeEngine): __visit_name__ = ... # type: Any display_width = ... # type: Any - def __init__(self, display_width=None): ... + def __init__(self, display_width=None) -> None: ... class TEXT(_StringType, sqltypes.TEXT): __visit_name__ = ... # type: Any - def __init__(self, length=None, **kw): ... + def __init__(self, length=None, **kw) -> None: ... class TINYTEXT(_StringType): __visit_name__ = ... # type: Any - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... class MEDIUMTEXT(_StringType): __visit_name__ = ... # type: Any - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... class LONGTEXT(_StringType): __visit_name__ = ... # type: Any - def __init__(self, **kwargs): ... + def __init__(self, **kwargs) -> None: ... class VARCHAR(_StringType, sqltypes.VARCHAR): __visit_name__ = ... # type: Any - def __init__(self, length=None, **kwargs): ... + def __init__(self, length=None, **kwargs) -> None: ... class CHAR(_StringType, sqltypes.CHAR): __visit_name__ = ... # type: Any - def __init__(self, length=None, **kwargs): ... + def __init__(self, length=None, **kwargs) -> None: ... class NVARCHAR(_StringType, sqltypes.NVARCHAR): __visit_name__ = ... # type: Any - def __init__(self, length=None, **kwargs): ... + def __init__(self, length=None, **kwargs) -> None: ... class NCHAR(_StringType, sqltypes.NCHAR): __visit_name__ = ... # type: Any - def __init__(self, length=None, **kwargs): ... + def __init__(self, length=None, **kwargs) -> None: ... class TINYBLOB(sqltypes._Binary): __visit_name__ = ... # type: Any @@ -161,7 +161,7 @@ class _EnumeratedValues(_StringType): ... class ENUM(sqltypes.Enum, _EnumeratedValues): __visit_name__ = ... # type: Any strict = ... # type: Any - def __init__(self, *enums, **kw): ... + def __init__(self, *enums, **kw) -> None: ... def bind_processor(self, dialect): ... def adapt(self, cls, **kw): ... @@ -169,7 +169,7 @@ class SET(_EnumeratedValues): __visit_name__ = ... # type: Any retrieve_as_bitwise = ... # type: Any values = ... # type: Any - def __init__(self, *values, **kw): ... + def __init__(self, *values, **kw) -> None: ... def column_expression(self, colexpr): ... def result_processor(self, dialect, coltype): ... def bind_processor(self, dialect): ... @@ -281,7 +281,7 @@ class MySQLTypeCompiler(compiler.GenericTypeCompiler): class MySQLIdentifierPreparer(compiler.IdentifierPreparer): reserved_words = ... # type: Any - def __init__(self, dialect, server_ansiquotes=False, **kw): ... + def __init__(self, dialect, server_ansiquotes=False, **kw) -> None: ... class MySQLDialect(default.DefaultDialect): name = ... # type: Any @@ -302,7 +302,7 @@ class MySQLDialect(default.DefaultDialect): preparer = ... # type: Any construct_arguments = ... # type: Any isolation_level = ... # type: Any - def __init__(self, isolation_level=None, **kwargs): ... + def __init__(self, isolation_level=None, **kwargs) -> None: ... def on_connect(self): ... def set_isolation_level(self, connection, level): ... def get_isolation_level(self, connection): ... @@ -334,17 +334,17 @@ class ReflectedState: table_name = ... # type: Any keys = ... # type: Any constraints = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... class MySQLTableDefinitionParser: dialect = ... # type: Any preparer = ... # type: Any - def __init__(self, dialect, preparer): ... + def __init__(self, dialect, preparer) -> None: ... def parse(self, show_create, charset): ... class _DecodingRowProxy: rowproxy = ... # type: Any charset = ... # type: Any - def __init__(self, rowproxy, charset): ... + def __init__(self, rowproxy, charset) -> None: ... def __getitem__(self, index): ... def __getattr__(self, attr): ... diff --git a/third_party/2.7/sqlalchemy/engine/strategies.pyi b/third_party/2.7/sqlalchemy/engine/strategies.pyi index afec44673..726741dee 100644 --- a/third_party/2.7/sqlalchemy/engine/strategies.pyi +++ b/third_party/2.7/sqlalchemy/engine/strategies.pyi @@ -8,7 +8,7 @@ import base strategies = ... # type: Any class EngineStrategy: - def __init__(self): ... + def __init__(self) -> None: ... def create(self, *args, **kwargs): ... class DefaultEngineStrategy(EngineStrategy): @@ -27,7 +27,7 @@ class MockEngineStrategy(EngineStrategy): def create(self, name_or_url, executor, **kwargs): ... class MockConnection(base.Connectable): execute = ... # type: Any - def __init__(self, dialect, execute): ... + def __init__(self, dialect, execute) -> None: ... engine = ... # type: Any dialect = ... # type: Any name = ... # type: Any diff --git a/third_party/2.7/sqlalchemy/engine/url.pyi b/third_party/2.7/sqlalchemy/engine/url.pyi index 21c979766..6635ad068 100644 --- a/third_party/2.7/sqlalchemy/engine/url.pyi +++ b/third_party/2.7/sqlalchemy/engine/url.pyi @@ -15,7 +15,7 @@ class URL: port = ... # type: Any database = ... # type: Any query = ... # type: Any - def __init__(self, drivername, username=None, password=None, host=None, port=None, database=None, query=None): ... + def __init__(self, drivername, username=None, password=None, host=None, port=None, database=None, query=None) -> None: ... def __to_string__(self, hide_password=True): ... def __hash__(self): ... def __eq__(self, other): ... diff --git a/third_party/2.7/sqlalchemy/exc.pyi b/third_party/2.7/sqlalchemy/exc.pyi index b7b45077c..581e45348 100644 --- a/third_party/2.7/sqlalchemy/exc.pyi +++ b/third_party/2.7/sqlalchemy/exc.pyi @@ -13,13 +13,13 @@ class AmbiguousForeignKeysError(ArgumentError): ... class CircularDependencyError(SQLAlchemyError): cycles = ... # type: Any edges = ... # type: Any - def __init__(self, message, cycles, edges, msg=None): ... + def __init__(self, message, cycles, edges, msg=None) -> None: ... def __reduce__(self): ... class CompileError(SQLAlchemyError): ... class UnsupportedCompilationError(CompileError): - def __init__(self, compiler, element_type): ... + def __init__(self, compiler, element_type) -> None: ... class IdentifierError(SQLAlchemyError): ... class DisconnectionError(SQLAlchemyError): ... @@ -32,13 +32,13 @@ class NoReferenceError(InvalidRequestError): ... class NoReferencedTableError(NoReferenceError): table_name = ... # type: Any - def __init__(self, message, tname): ... + def __init__(self, message, tname) -> None: ... def __reduce__(self): ... class NoReferencedColumnError(NoReferenceError): table_name = ... # type: Any column_name = ... # type: Any - def __init__(self, message, tname, cname): ... + def __init__(self, message, tname, cname) -> None: ... def __reduce__(self): ... class NoSuchTableError(InvalidRequestError): ... @@ -52,7 +52,7 @@ class StatementError(SQLAlchemyError): params = ... # type: Any orig = ... # type: Any detail = ... # type: Any - def __init__(self, message, statement, params, orig): ... + def __init__(self, message, statement, params, orig) -> None: ... def add_detail(self, msg): ... def __reduce__(self): ... def __unicode__(self): ... @@ -62,7 +62,7 @@ class DBAPIError(StatementError): def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated=False, dialect=None): ... def __reduce__(self): ... connection_invalidated = ... # type: Any - def __init__(self, statement, params, orig, connection_invalidated=False): ... + def __init__(self, statement, params, orig, connection_invalidated=False) -> None: ... class InterfaceError(DBAPIError): ... class DatabaseError(DBAPIError): ... diff --git a/third_party/2.7/sqlalchemy/orm/session.pyi b/third_party/2.7/sqlalchemy/orm/session.pyi index b2385e986..8507c7559 100644 --- a/third_party/2.7/sqlalchemy/orm/session.pyi +++ b/third_party/2.7/sqlalchemy/orm/session.pyi @@ -15,7 +15,7 @@ class _SessionClassMethods: class SessionTransaction: session = ... # type: Any nested = ... # type: Any - def __init__(self, session, parent=None, nested=False): ... + def __init__(self, session, parent=None, nested=False) -> None: ... @property def is_active(self): ... def connection(self, bindkey, execution_options=None, **kwargs): ... @@ -36,7 +36,7 @@ class Session(_SessionClassMethods): autocommit = ... # type: Any expire_on_commit = ... # type: Any twophase = ... # type: Any - def __init__(self, bind=None, autoflush=True, expire_on_commit=True, _enable_transaction_accounting=True, autocommit=False, twophase=False, weak_identity_map=True, binds=None, extension=None, info=None, query_cls=...): ... + def __init__(self, bind=None, autoflush=True, expire_on_commit=True, _enable_transaction_accounting=True, autocommit=False, twophase=False, weak_identity_map=True, binds=None, extension=None, info=None, query_cls=...) -> None: ... connection_callable = ... # type: Any def info(self): ... def begin(self, subtransactions=False, nested=False): ... @@ -85,7 +85,7 @@ class Session(_SessionClassMethods): class sessionmaker(_SessionClassMethods): kw = ... # type: Any class_ = ... # type: Any - def __init__(self, bind=None, class_=..., autoflush=True, autocommit=False, expire_on_commit=True, info=None, **kw): ... + def __init__(self, bind=None, class_=..., autoflush=True, autocommit=False, expire_on_commit=True, info=None, **kw) -> None: ... def __call__(self, **local_kw): ... def configure(self, **new_kw): ... diff --git a/third_party/2.7/sqlalchemy/pool.pyi b/third_party/2.7/sqlalchemy/pool.pyi index e6c57dda4..7a48ae2d9 100644 --- a/third_party/2.7/sqlalchemy/pool.pyi +++ b/third_party/2.7/sqlalchemy/pool.pyi @@ -27,7 +27,7 @@ class _ConnDialect: class Pool(log.Identified): logging_name = ... # type: Any echo = ... # type: Any - def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, logging_name=None, reset_on_return=True, listeners=None, events=None, _dispatch=None, _dialect=None): ... + def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, logging_name=None, reset_on_return=True, listeners=None, events=None, _dispatch=None, _dialect=None) -> None: ... def add_listener(self, listener): ... def unique_connection(self): ... def recreate(self): ... @@ -38,7 +38,7 @@ class Pool(log.Identified): class _ConnectionRecord: connection = ... # type: Any finalize_callback = ... # type: Any - def __init__(self, pool): ... + def __init__(self, pool) -> None: ... def info(self): ... @classmethod def checkout(cls, pool): ... @@ -50,7 +50,7 @@ class _ConnectionRecord: class _ConnectionFairy: connection = ... # type: Any - def __init__(self, dbapi_connection, connection_record, echo): ... + def __init__(self, dbapi_connection, connection_record, echo) -> None: ... @property def is_valid(self): ... def info(self): ... @@ -63,13 +63,13 @@ class _ConnectionFairy: class SingletonThreadPool(Pool): size = ... # type: Any - def __init__(self, creator, pool_size=5, **kw): ... + def __init__(self, creator, pool_size=5, **kw) -> None: ... def recreate(self): ... def dispose(self): ... def status(self): ... class QueuePool(Pool): - def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **kw): ... + def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **kw) -> None: ... def recreate(self): ... def dispose(self): ... def status(self): ... @@ -90,7 +90,7 @@ class StaticPool(Pool): def recreate(self): ... class AssertionPool(Pool): - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... def status(self): ... def dispose(self): ... def recreate(self): ... @@ -100,7 +100,7 @@ class _DBProxy: kw = ... # type: Any poolclass = ... # type: Any pools = ... # type: Any - def __init__(self, module, poolclass=..., **kw): ... + def __init__(self, module, poolclass=..., **kw) -> None: ... def close(self): ... def __del__(self): ... def __getattr__(self, key): ... diff --git a/third_party/2.7/sqlalchemy/sql/visitors.pyi b/third_party/2.7/sqlalchemy/sql/visitors.pyi index 0a7fb4cad..3b549b487 100644 --- a/third_party/2.7/sqlalchemy/sql/visitors.pyi +++ b/third_party/2.7/sqlalchemy/sql/visitors.pyi @@ -5,7 +5,7 @@ from typing import Any class VisitableType(type): - def __init__(cls, clsname, bases, clsdict): ... + def __init__(cls, clsname, bases, clsdict) -> None: ... class Visitable: ... diff --git a/third_party/2.7/sqlalchemy/util/_collections.pyi b/third_party/2.7/sqlalchemy/util/_collections.pyi index 593e26647..ecf9d21c8 100644 --- a/third_party/2.7/sqlalchemy/util/_collections.pyi +++ b/third_party/2.7/sqlalchemy/util/_collections.pyi @@ -28,12 +28,12 @@ class ImmutableContainer: class immutabledict(ImmutableContainer, dict): clear = ... # type: Any def __new__(cls, *args): ... - def __init__(self, *args): ... + def __init__(self, *args) -> None: ... def __reduce__(self): ... def union(self, d): ... class Properties: - def __init__(self, data): ... + def __init__(self, data) -> None: ... def __len__(self): ... def __iter__(self): ... def __add__(self, other): ... @@ -53,13 +53,13 @@ class Properties: def clear(self): ... class OrderedProperties(Properties): - def __init__(self): ... + def __init__(self) -> None: ... class ImmutableProperties(ImmutableContainer, Properties): ... class OrderedDict(dict): def __reduce__(self): ... - def __init__(self, ____sequence=None, **kwargs): ... + def __init__(self, ____sequence=None, **kwargs) -> None: ... def clear(self): ... def copy(self): ... def __copy__(self): ... @@ -79,7 +79,7 @@ class OrderedDict(dict): def popitem(self): ... class OrderedSet(set): - def __init__(self, d=None): ... + def __init__(self, d=None) -> None: ... def add(self, element): ... def remove(self, element): ... def insert(self, pos, element): ... @@ -106,7 +106,7 @@ class OrderedSet(set): __isub__ = ... # type: Any class IdentitySet: - def __init__(self, iterable=None): ... + def __init__(self, iterable=None) -> None: ... def add(self, value): ... def __contains__(self, value): ... def remove(self, value): ... @@ -145,7 +145,7 @@ class IdentitySet: def __hash__(self): ... class WeakSequence: - def __init__(self, __elements=...): ... + def __init__(self, __elements=...) -> None: ... def append(self, item): ... def __len__(self): ... def __iter__(self): ... @@ -154,11 +154,11 @@ class WeakSequence: class OrderedIdentitySet(IdentitySet): class _working_set(OrderedSet): __sa_hash_exempt__ = ... # type: Any - def __init__(self, iterable=None): ... + def __init__(self, iterable=None) -> None: ... class PopulateDict(dict): creator = ... # type: Any - def __init__(self, creator): ... + def __init__(self, creator) -> None: ... def __missing__(self, key): ... column_set = ... # type: Any @@ -170,7 +170,7 @@ def unique_list(seq, hashfunc=None): ... class UniqueAppender: data = ... # type: Any - def __init__(self, data, via=None): ... + def __init__(self, data, via=None) -> None: ... def append(self, item): ... def __iter__(self): ... @@ -185,7 +185,7 @@ def flatten_iterator(x): ... class LRUCache(dict): capacity = ... # type: Any threshold = ... # type: Any - def __init__(self, capacity=100, threshold=0.0): ... + def __init__(self, capacity=100, threshold=0.0) -> None: ... def get(self, key, default=None): ... def __getitem__(self, key): ... def values(self): ... @@ -198,7 +198,7 @@ class ScopedRegistry: createfunc = ... # type: Any scopefunc = ... # type: Any registry = ... # type: Any - def __init__(self, createfunc, scopefunc): ... + def __init__(self, createfunc, scopefunc) -> None: ... def __call__(self): ... def has(self): ... def set(self, obj): ... @@ -207,7 +207,7 @@ class ScopedRegistry: class ThreadLocalRegistry(ScopedRegistry): createfunc = ... # type: Any registry = ... # type: Any - def __init__(self, createfunc): ... + def __init__(self, createfunc) -> None: ... def __call__(self): ... def has(self): ... def set(self, obj): ... diff --git a/third_party/2.7/sqlalchemy/util/langhelpers.pyi b/third_party/2.7/sqlalchemy/util/langhelpers.pyi index bf0398794..7d81541db 100644 --- a/third_party/2.7/sqlalchemy/util/langhelpers.pyi +++ b/third_party/2.7/sqlalchemy/util/langhelpers.pyi @@ -20,7 +20,7 @@ class PluginLoader: group = ... # type: Any impls = ... # type: Any auto_fn = ... # type: Any - def __init__(self, group, auto_fn=None): ... + def __init__(self, group, auto_fn=None) -> None: ... def load(self, name): ... def register(self, name, modulepath, objname): ... @@ -38,7 +38,7 @@ def generic_repr(obj, additional_kw=..., to_inspect=None, omit_kwarg=...): ... class portable_instancemethod: target = ... # type: Any name = ... # type: Any - def __init__(self, meth): ... + def __init__(self, meth) -> None: ... def __call__(self, *arg, **kw): ... def class_hierarchy(cls): ... @@ -51,7 +51,7 @@ class memoized_property: fget = ... # type: Any __doc__ = ... # type: Any __name__ = ... # type: Any - def __init__(self, fget, doc=None): ... + def __init__(self, fget, doc=None) -> None: ... def __get__(self, obj, cls): ... @classmethod def reset(cls, obj, name): ... @@ -60,7 +60,7 @@ def memoized_instancemethod(fn): ... class group_expirable_memoized_property: attributes = ... # type: Any - def __init__(self, attributes=...): ... + def __init__(self, attributes=...) -> None: ... def expire_instance(self, instance): ... def __call__(self, fn): ... def method(self, fn): ... @@ -72,13 +72,13 @@ def dependency_for(modulename): ... class dependencies: import_deps = ... # type: Any - def __init__(self, *deps): ... + def __init__(self, *deps) -> None: ... def __call__(self, fn): ... @classmethod def resolve_all(cls, path): ... class _importlater: def __new__(cls, path, addtl): ... - def __init__(self, path, addtl): ... + def __init__(self, path, addtl) -> None: ... def module(self): ... def __getattr__(self, key): ... @@ -94,17 +94,17 @@ def dictlike_iteritems(dictlike): ... class classproperty(property): __doc__ = ... # type: Any - def __init__(self, fget, *arg, **kw): ... + def __init__(self, fget, *arg, **kw) -> None: ... def __get__(desc, self, cls): ... class hybridproperty: func = ... # type: Any - def __init__(self, func): ... + def __init__(self, func) -> None: ... def __get__(self, instance, owner): ... class hybridmethod: func = ... # type: Any - def __init__(self, func): ... + def __init__(self, func) -> None: ... def __get__(self, instance, owner): ... class _symbol(int): @@ -134,4 +134,4 @@ NoneType = ... # type: Any def attrsetter(attrname): ... class EnsureKWArgType(type): - def __init__(cls, clsname, bases, clsdict): ... + def __init__(cls, clsname, bases, clsdict) -> None: ... diff --git a/third_party/2.7/thrift/Thrift.pyi b/third_party/2.7/thrift/Thrift.pyi index 409b3fe19..cfafaf56c 100644 --- a/third_party/2.7/thrift/Thrift.pyi +++ b/third_party/2.7/thrift/Thrift.pyi @@ -34,7 +34,7 @@ class TProcessor: class TException(Exception): message = ... # type: Any - def __init__(self, message=None): ... + def __init__(self, message=None) -> None: ... class TApplicationException(TException): UNKNOWN = ... # type: Any @@ -49,7 +49,7 @@ class TApplicationException(TException): INVALID_PROTOCOL = ... # type: Any UNSUPPORTED_CLIENT_TYPE = ... # type: Any type = ... # type: Any - def __init__(self, type=..., message=None): ... + def __init__(self, type=..., message=None) -> None: ... message = ... # type: Any def read(self, iprot): ... def write(self, oprot): ... diff --git a/third_party/2.7/thrift/protocol/TBinaryProtocol.pyi b/third_party/2.7/thrift/protocol/TBinaryProtocol.pyi index a75bf88e6..6e8e588ce 100644 --- a/third_party/2.7/thrift/protocol/TBinaryProtocol.pyi +++ b/third_party/2.7/thrift/protocol/TBinaryProtocol.pyi @@ -12,7 +12,7 @@ class TBinaryProtocol(TProtocolBase): TYPE_MASK = ... # type: Any strictRead = ... # type: Any strictWrite = ... # type: Any - def __init__(self, trans, strictRead=False, strictWrite=True): ... + def __init__(self, trans, strictRead=False, strictWrite=True) -> None: ... def writeMessageBegin(self, name, type, seqid): ... def writeMessageEnd(self): ... def writeStructBegin(self, name): ... @@ -56,7 +56,7 @@ class TBinaryProtocol(TProtocolBase): class TBinaryProtocolFactory: strictRead = ... # type: Any strictWrite = ... # type: Any - def __init__(self, strictRead=False, strictWrite=True): ... + def __init__(self, strictRead=False, strictWrite=True) -> None: ... def getProtocol(self, trans): ... class TBinaryProtocolAccelerated(TBinaryProtocol): ... diff --git a/third_party/2.7/thrift/protocol/TProtocol.pyi b/third_party/2.7/thrift/protocol/TProtocol.pyi index 93e949fda..9f2a65f73 100644 --- a/third_party/2.7/thrift/protocol/TProtocol.pyi +++ b/third_party/2.7/thrift/protocol/TProtocol.pyi @@ -15,11 +15,11 @@ class TProtocolException(TException): NOT_IMPLEMENTED = ... # type: Any DEPTH_LIMIT = ... # type: Any type = ... # type: Any - def __init__(self, type=..., message=None): ... + def __init__(self, type=..., message=None) -> None: ... class TProtocolBase: trans = ... # type: Any - def __init__(self, trans): ... + def __init__(self, trans) -> None: ... def writeMessageBegin(self, name, ttype, seqid): ... def writeMessageEnd(self): ... def writeStructBegin(self, name): ... diff --git a/third_party/2.7/thrift/transport/TSocket.pyi b/third_party/2.7/thrift/transport/TSocket.pyi index da9746297..adee3ca49 100644 --- a/third_party/2.7/thrift/transport/TSocket.pyi +++ b/third_party/2.7/thrift/transport/TSocket.pyi @@ -14,7 +14,7 @@ class TSocket(TSocketBase): host = ... # type: Any port = ... # type: Any handle = ... # type: Any - def __init__(self, host='', port=9090, unix_socket=None, socket_family=...): ... + def __init__(self, host='', port=9090, unix_socket=None, socket_family=...) -> None: ... def setHandle(self, h): ... def isOpen(self): ... def setTimeout(self, ms): ... @@ -27,6 +27,6 @@ class TServerSocket(TSocketBase, TServerTransportBase): host = ... # type: Any port = ... # type: Any handle = ... # type: Any - def __init__(self, host=None, port=9090, unix_socket=None, socket_family=...): ... + def __init__(self, host=None, port=9090, unix_socket=None, socket_family=...) -> None: ... def listen(self): ... def accept(self): ... diff --git a/third_party/2.7/thrift/transport/TTransport.pyi b/third_party/2.7/thrift/transport/TTransport.pyi index 721a1c0fb..ccfab7c33 100644 --- a/third_party/2.7/thrift/transport/TTransport.pyi +++ b/third_party/2.7/thrift/transport/TTransport.pyi @@ -12,7 +12,7 @@ class TTransportException(TException): TIMED_OUT = ... # type: Any END_OF_FILE = ... # type: Any type = ... # type: Any - def __init__(self, type=..., message=None): ... + def __init__(self, type=..., message=None) -> None: ... class TTransportBase: def isOpen(self): ... @@ -41,7 +41,7 @@ class TBufferedTransportFactory: class TBufferedTransport(TTransportBase, CReadableTransport): DEFAULT_BUFFER = ... # type: Any - def __init__(self, trans, rbuf_size=...): ... + def __init__(self, trans, rbuf_size=...) -> None: ... def isOpen(self): ... def open(self): ... def close(self): ... @@ -53,7 +53,7 @@ class TBufferedTransport(TTransportBase, CReadableTransport): def cstringio_refill(self, partialread, reqlen): ... class TMemoryBuffer(TTransportBase, CReadableTransport): - def __init__(self, value=None): ... + def __init__(self, value=None) -> None: ... def isOpen(self): ... def open(self): ... def close(self): ... @@ -69,7 +69,7 @@ class TFramedTransportFactory: def getTransport(self, trans): ... class TFramedTransport(TTransportBase, CReadableTransport): - def __init__(self, trans): ... + def __init__(self, trans) -> None: ... def isOpen(self): ... def open(self): ... def close(self): ... @@ -83,7 +83,7 @@ class TFramedTransport(TTransportBase, CReadableTransport): class TFileObjectTransport(TTransportBase): fileobj = ... # type: Any - def __init__(self, fileobj): ... + def __init__(self, fileobj) -> None: ... def isOpen(self): ... def close(self): ... def read(self, sz): ... @@ -98,7 +98,7 @@ class TSaslClientTransport(TTransportBase, CReadableTransport): COMPLETE = ... # type: Any transport = ... # type: Any sasl = ... # type: Any - def __init__(self, transport, host, service, mechanism='', **sasl_kwargs): ... + def __init__(self, transport, host, service, mechanism='', **sasl_kwargs) -> None: ... def open(self): ... def send_sasl_msg(self, status, body): ... def recv_sasl_msg(self): ... diff --git a/third_party/2.7/tornado/concurrent.pyi b/third_party/2.7/tornado/concurrent.pyi index def15a987..90017a8ae 100644 --- a/third_party/2.7/tornado/concurrent.pyi +++ b/third_party/2.7/tornado/concurrent.pyi @@ -11,13 +11,13 @@ class ReturnValueIgnoredError(Exception): ... class _TracebackLogger: exc_info = ... # type: Any formatted_tb = ... # type: Any - def __init__(self, exc_info): ... + def __init__(self, exc_info) -> None: ... def activate(self): ... def clear(self): ... def __del__(self): ... class Future: - def __init__(self): ... + def __init__(self) -> None: ... def cancel(self): ... def cancelled(self): ... def running(self): ... diff --git a/third_party/2.7/tornado/gen.pyi b/third_party/2.7/tornado/gen.pyi index 4d812397c..6169d75bd 100644 --- a/third_party/2.7/tornado/gen.pyi +++ b/third_party/2.7/tornado/gen.pyi @@ -19,11 +19,11 @@ def coroutine(func, replace_callback=True): ... class Return(Exception): value = ... # type: Any - def __init__(self, value=None): ... + def __init__(self, value=None) -> None: ... class WaitIterator: current_index = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... def done(self): ... def next(self): ... @@ -34,7 +34,7 @@ class YieldPoint: class Callback(YieldPoint): key = ... # type: Any - def __init__(self, key): ... + def __init__(self, key) -> None: ... runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... @@ -42,7 +42,7 @@ class Callback(YieldPoint): class Wait(YieldPoint): key = ... # type: Any - def __init__(self, key): ... + def __init__(self, key) -> None: ... runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... @@ -50,7 +50,7 @@ class Wait(YieldPoint): class WaitAll(YieldPoint): keys = ... # type: Any - def __init__(self, keys): ... + def __init__(self, keys) -> None: ... runner = ... # type: Any def start(self, runner): ... def is_ready(self): ... @@ -61,7 +61,7 @@ def Task(func, *args, **kwargs): ... class YieldFuture(YieldPoint): future = ... # type: Any io_loop = ... # type: Any - def __init__(self, future, io_loop=None): ... + def __init__(self, future, io_loop=None) -> None: ... runner = ... # type: Any key = ... # type: Any result_fn = ... # type: Any @@ -74,7 +74,7 @@ class Multi(YieldPoint): children = ... # type: Any unfinished_children = ... # type: Any quiet_exceptions = ... # type: Any - def __init__(self, children, quiet_exceptions=...): ... + def __init__(self, children, quiet_exceptions=...) -> None: ... def start(self, runner): ... def is_ready(self): ... def get_result(self): ... @@ -98,7 +98,7 @@ class Runner: had_exception = ... # type: Any io_loop = ... # type: Any stack_context_deactivate = ... # type: Any - def __init__(self, gen, result_future, first_yielded): ... + def __init__(self, gen, result_future, first_yielded) -> None: ... def register_callback(self, key): ... def is_ready(self, key): ... def set_result(self, key, result): ... diff --git a/third_party/2.7/tornado/httpclient.pyi b/third_party/2.7/tornado/httpclient.pyi index 7c29ac69e..fa82eef79 100644 --- a/third_party/2.7/tornado/httpclient.pyi +++ b/third_party/2.7/tornado/httpclient.pyi @@ -6,7 +6,7 @@ from typing import Any from tornado.util import Configurable class HTTPClient: - def __init__(self, async_client_class=None, **kwargs): ... + def __init__(self, async_client_class=None, **kwargs) -> None: ... def __del__(self): ... def close(self): ... def fetch(self, request, **kwargs): ... @@ -58,7 +58,7 @@ class HTTPRequest: ssl_options = ... # type: Any expect_100_continue = ... # type: Any start_time = ... # type: Any - def __init__(self, url, method='', headers=None, body=None, auth_username=None, auth_password=None, auth_mode=None, connect_timeout=None, request_timeout=None, if_modified_since=None, follow_redirects=None, max_redirects=None, user_agent=None, use_gzip=None, network_interface=None, streaming_callback=None, header_callback=None, prepare_curl_callback=None, proxy_host=None, proxy_port=None, proxy_username=None, proxy_password=None, allow_nonstandard_methods=None, validate_cert=None, ca_certs=None, allow_ipv6=None, client_key=None, client_cert=None, body_producer=None, expect_100_continue=False, decompress_response=None, ssl_options=None): ... + def __init__(self, url, method='', headers=None, body=None, auth_username=None, auth_password=None, auth_mode=None, connect_timeout=None, request_timeout=None, if_modified_since=None, follow_redirects=None, max_redirects=None, user_agent=None, use_gzip=None, network_interface=None, streaming_callback=None, header_callback=None, prepare_curl_callback=None, proxy_host=None, proxy_port=None, proxy_username=None, proxy_password=None, allow_nonstandard_methods=None, validate_cert=None, ca_certs=None, allow_ipv6=None, client_key=None, client_cert=None, body_producer=None, expect_100_continue=False, decompress_response=None, ssl_options=None) -> None: ... @property def headers(self): ... @headers.setter @@ -94,19 +94,19 @@ class HTTPResponse: error = ... # type: Any request_time = ... # type: Any time_info = ... # type: Any - def __init__(self, request, code, headers=None, buffer=None, effective_url=None, error=None, request_time=None, time_info=None, reason=None): ... + def __init__(self, request, code, headers=None, buffer=None, effective_url=None, error=None, request_time=None, time_info=None, reason=None) -> None: ... body = ... # type: Any def rethrow(self): ... class HTTPError(Exception): code = ... # type: Any response = ... # type: Any - def __init__(self, code, message=None, response=None): ... + def __init__(self, code, message=None, response=None) -> None: ... class _RequestProxy: request = ... # type: Any defaults = ... # type: Any - def __init__(self, request, defaults): ... + def __init__(self, request, defaults) -> None: ... def __getattr__(self, name): ... def main(): ... diff --git a/third_party/2.7/tornado/httpserver.pyi b/third_party/2.7/tornado/httpserver.pyi index 10eec073f..88c372499 100644 --- a/third_party/2.7/tornado/httpserver.pyi +++ b/third_party/2.7/tornado/httpserver.pyi @@ -8,7 +8,7 @@ from tornado.tcpserver import TCPServer from tornado.util import Configurable class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate): - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... request_callback = ... # type: Any no_keep_alive = ... # type: Any xheaders = ... # type: Any @@ -29,14 +29,14 @@ class _HTTPRequestContext: protocol = ... # type: Any address_family = ... # type: Any remote_ip = ... # type: Any - def __init__(self, stream, address, protocol): ... + def __init__(self, stream, address, protocol) -> None: ... class _ServerRequestAdapter(httputil.HTTPMessageDelegate): server = ... # type: Any connection = ... # type: Any request = ... # type: Any delegate = ... # type: Any - def __init__(self, server, server_conn, request_conn): ... + def __init__(self, server, server_conn, request_conn) -> None: ... def headers_received(self, start_line, headers): ... def data_received(self, chunk): ... def finish(self): ... diff --git a/third_party/2.7/tornado/httputil.pyi b/third_party/2.7/tornado/httputil.pyi index f513edfa4..aee907aa7 100644 --- a/third_party/2.7/tornado/httputil.pyi +++ b/third_party/2.7/tornado/httputil.pyi @@ -11,11 +11,11 @@ class SSLError(Exception): ... class _NormalizedHeaderCache(dict): size = ... # type: Any queue = ... # type: Any - def __init__(self, size): ... + def __init__(self, size) -> None: ... def __missing__(self, key): ... class HTTPHeaders(dict): - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... def add(self, name, value): ... def get_list(self, name): ... def get_all(self): ... @@ -46,7 +46,7 @@ class HTTPServerRequest: arguments = ... # type: Any query_arguments = ... # type: Any body_arguments = ... # type: Any - def __init__(self, method=None, uri=None, version='', headers=None, body=None, host=None, files=None, connection=None, start_line=None): ... + def __init__(self, method=None, uri=None, version='', headers=None, body=None, host=None, files=None, connection=None, start_line=None) -> None: ... def supports_http_1_1(self): ... @property def cookies(self): ... diff --git a/third_party/2.7/tornado/ioloop.pyi b/third_party/2.7/tornado/ioloop.pyi index c02f97dbf..451516862 100644 --- a/third_party/2.7/tornado/ioloop.pyi +++ b/third_party/2.7/tornado/ioloop.pyi @@ -74,7 +74,7 @@ class _Timeout: deadline = ... # type: Any callback = ... # type: Any tiebreaker = ... # type: Any - def __init__(self, deadline, callback, io_loop): ... + def __init__(self, deadline, callback, io_loop) -> None: ... def __lt__(self, other): ... def __le__(self, other): ... @@ -82,7 +82,7 @@ class PeriodicCallback: callback = ... # type: Any callback_time = ... # type: Any io_loop = ... # type: Any - def __init__(self, callback, callback_time, io_loop=None): ... + def __init__(self, callback, callback_time, io_loop=None) -> None: ... def start(self): ... def stop(self): ... def is_running(self): ... diff --git a/third_party/2.7/tornado/tcpserver.pyi b/third_party/2.7/tornado/tcpserver.pyi index 14f8be4b5..6cee73555 100644 --- a/third_party/2.7/tornado/tcpserver.pyi +++ b/third_party/2.7/tornado/tcpserver.pyi @@ -11,7 +11,7 @@ class TCPServer: ssl_options = ... # type: Any max_buffer_size = ... # type: Any read_chunk_size = ... # type: Any - def __init__(self, io_loop=None, ssl_options=None, max_buffer_size=None, read_chunk_size=None): ... + def __init__(self, io_loop=None, ssl_options=None, max_buffer_size=None, read_chunk_size=None) -> None: ... def listen(self, port, address=''): ... def add_sockets(self, sockets): ... def add_socket(self, socket): ... diff --git a/third_party/2.7/tornado/util.pyi b/third_party/2.7/tornado/util.pyi index e20b44ea5..94c27fb7b 100644 --- a/third_party/2.7/tornado/util.pyi +++ b/third_party/2.7/tornado/util.pyi @@ -12,7 +12,7 @@ class ObjectDict(dict): class GzipDecompressor: decompressobj = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def decompress(self, value, max_length=None): ... @property def unconsumed_tail(self): ... @@ -42,7 +42,7 @@ class Configurable: class ArgReplacer: name = ... # type: Any arg_pos = ... # type: Any - def __init__(self, func, name): ... + def __init__(self, func, name) -> None: ... def get_old_value(self, args, kwargs, default=None): ... def replace(self, new_value, args, kwargs): ... diff --git a/third_party/2.7/tornado/web.pyi b/third_party/2.7/tornado/web.pyi index 0ddbefa9b..d1464b942 100644 --- a/third_party/2.7/tornado/web.pyi +++ b/third_party/2.7/tornado/web.pyi @@ -17,7 +17,7 @@ class RequestHandler: path_args = ... # type: Any path_kwargs = ... # type: Any ui = ... # type: Any - def __init__(self, application, request, **kwargs): ... + def __init__(self, application, request, **kwargs) -> None: ... def initialize(self): ... @property def settings(self): ... @@ -104,7 +104,7 @@ class Application(httputil.HTTPServerConnectionDelegate): settings = ... # type: Any ui_modules = ... # type: Any ui_methods = ... # type: Any - def __init__(self, handlers=None, default_host='', transforms=None, **settings): ... + def __init__(self, handlers=None, default_host='', transforms=None, **settings) -> None: ... def listen(self, port, address='', **kwargs): ... def add_handlers(self, host_pattern, host_handlers): ... def add_transform(self, transform_class): ... @@ -122,7 +122,7 @@ class _RequestDispatcher(httputil.HTTPMessageDelegate): handler_kwargs = ... # type: Any path_args = ... # type: Any path_kwargs = ... # type: Any - def __init__(self, application, connection): ... + def __init__(self, application, connection) -> None: ... def headers_received(self, start_line, headers): ... stream_request_body = ... # type: Any def set_request(self, request): ... @@ -137,13 +137,13 @@ class HTTPError(Exception): log_message = ... # type: Any args = ... # type: Any reason = ... # type: Any - def __init__(self, status_code, log_message=None, *args, **kwargs): ... + def __init__(self, status_code, log_message=None, *args, **kwargs) -> None: ... class Finish(Exception): ... class MissingArgumentError(HTTPError): arg_name = ... # type: Any - def __init__(self, arg_name): ... + def __init__(self, arg_name) -> None: ... class ErrorHandler(RequestHandler): def initialize(self, status_code): ... @@ -193,14 +193,14 @@ class FallbackHandler(RequestHandler): def prepare(self): ... class OutputTransform: - def __init__(self, request): ... + def __init__(self, request) -> None: ... def transform_first_chunk(self, status_code, headers, chunk, finishing): ... def transform_chunk(self, chunk, finishing): ... class GZipContentEncoding(OutputTransform): CONTENT_TYPES = ... # type: Any MIN_LENGTH = ... # type: Any - def __init__(self, request): ... + def __init__(self, request) -> None: ... def transform_first_chunk(self, status_code, headers, chunk, finishing): ... def transform_chunk(self, chunk, finishing): ... @@ -211,7 +211,7 @@ class UIModule: request = ... # type: Any ui = ... # type: Any locale = ... # type: Any - def __init__(self, handler): ... + def __init__(self, handler) -> None: ... @property def current_user(self): ... def render(self, *args, **kwargs): ... @@ -230,7 +230,7 @@ class _xsrf_form_html(UIModule): def render(self): ... class TemplateModule(UIModule): - def __init__(self, handler): ... + def __init__(self, handler) -> None: ... def render(self, path, **kwargs): ... def embedded_javascript(self): ... def javascript_files(self): ... @@ -242,7 +242,7 @@ class TemplateModule(UIModule): class _UIModuleNamespace: handler = ... # type: Any ui_modules = ... # type: Any - def __init__(self, handler, ui_modules): ... + def __init__(self, handler, ui_modules) -> None: ... def __getitem__(self, key): ... def __getattr__(self, key): ... @@ -251,7 +251,7 @@ class URLSpec: handler_class = ... # type: Any kwargs = ... # type: Any name = ... # type: Any - def __init__(self, pattern, handler, kwargs=None, name=None): ... + def __init__(self, pattern, handler, kwargs=None, name=None) -> None: ... def reverse(self, *args): ... url = ... # type: Any diff --git a/third_party/2.7/yaml/__init__.pyi b/third_party/2.7/yaml/__init__.pyi index c24c650a7..dae655a4c 100644 --- a/third_party/2.7/yaml/__init__.pyi +++ b/third_party/2.7/yaml/__init__.pyi @@ -37,7 +37,7 @@ def add_representer(data_type, representer, Dumper=...): ... def add_multi_representer(data_type, multi_representer, Dumper=...): ... class YAMLObjectMetaclass(type): - def __init__(cls, name, bases, kwds): ... + def __init__(cls, name, bases, kwds) -> None: ... class YAMLObject: __metaclass__ = ... # type: Any diff --git a/third_party/2.7/yaml/composer.pyi b/third_party/2.7/yaml/composer.pyi index 9c4b20d17..a6f21b4c7 100644 --- a/third_party/2.7/yaml/composer.pyi +++ b/third_party/2.7/yaml/composer.pyi @@ -10,7 +10,7 @@ class ComposerError(MarkedYAMLError): ... class Composer: anchors = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def check_node(self): ... def get_node(self): ... def get_single_node(self): ... diff --git a/third_party/2.7/yaml/constructor.pyi b/third_party/2.7/yaml/constructor.pyi index 03f57144e..0b82f337b 100644 --- a/third_party/2.7/yaml/constructor.pyi +++ b/third_party/2.7/yaml/constructor.pyi @@ -16,7 +16,7 @@ class BaseConstructor: recursive_objects = ... # type: Any state_generators = ... # type: Any deep_construct = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def check_data(self): ... def get_data(self): ... def get_single_data(self): ... diff --git a/third_party/2.7/yaml/dumper.pyi b/third_party/2.7/yaml/dumper.pyi index 7ff6d6f18..50aefaad7 100644 --- a/third_party/2.7/yaml/dumper.pyi +++ b/third_party/2.7/yaml/dumper.pyi @@ -8,10 +8,10 @@ from yaml.representer import BaseRepresenter, Representer, SafeRepresenter from yaml.resolver import BaseResolver, Resolver class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): - def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ... + def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ... class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver): - def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ... + def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ... class Dumper(Emitter, Serializer, Representer, Resolver): - def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ... + def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ... diff --git a/third_party/2.7/yaml/emitter.pyi b/third_party/2.7/yaml/emitter.pyi index 9e3fb419a..2257a73ce 100644 --- a/third_party/2.7/yaml/emitter.pyi +++ b/third_party/2.7/yaml/emitter.pyi @@ -16,7 +16,7 @@ class ScalarAnalysis: 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): ... + 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 @@ -48,7 +48,7 @@ class Emitter: prepared_tag = ... # type: Any analysis = ... # type: Any style = ... # type: Any - def __init__(self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None): ... + def __init__(self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None) -> None: ... def dispose(self): ... def emit(self, event): ... def need_more_events(self): ... diff --git a/third_party/2.7/yaml/error.pyi b/third_party/2.7/yaml/error.pyi index 3370d126e..ec105e194 100644 --- a/third_party/2.7/yaml/error.pyi +++ b/third_party/2.7/yaml/error.pyi @@ -11,7 +11,7 @@ class Mark: column = ... # type: Any buffer = ... # type: Any pointer = ... # type: Any - def __init__(self, name, index, line, column, buffer, pointer): ... + def __init__(self, name, index, line, column, buffer, pointer) -> None: ... def get_snippet(self, indent=4, max_length=75): ... class YAMLError(Exception): ... @@ -22,4 +22,4 @@ class MarkedYAMLError(YAMLError): problem = ... # type: Any problem_mark = ... # type: Any note = ... # type: Any - def __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None): ... + def __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None) -> None: ... diff --git a/third_party/2.7/yaml/events.pyi b/third_party/2.7/yaml/events.pyi index 605d90652..073059868 100644 --- a/third_party/2.7/yaml/events.pyi +++ b/third_party/2.7/yaml/events.pyi @@ -7,13 +7,13 @@ from typing import Any class Event: start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, start_mark=None, end_mark=None): ... + def __init__(self, start_mark=None, end_mark=None) -> None: ... class NodeEvent(Event): anchor = ... # type: Any start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, anchor, start_mark=None, end_mark=None): ... + def __init__(self, anchor, start_mark=None, end_mark=None) -> None: ... class CollectionStartEvent(NodeEvent): anchor = ... # type: Any @@ -22,7 +22,7 @@ class CollectionStartEvent(NodeEvent): start_mark = ... # type: Any end_mark = ... # type: Any flow_style = ... # type: Any - def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None): ... + def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) -> None: ... class CollectionEndEvent(Event): ... @@ -30,7 +30,7 @@ class StreamStartEvent(Event): start_mark = ... # type: Any end_mark = ... # type: Any encoding = ... # type: Any - def __init__(self, start_mark=None, end_mark=None, encoding=None): ... + def __init__(self, start_mark=None, end_mark=None, encoding=None) -> None: ... class StreamEndEvent(Event): ... @@ -40,13 +40,13 @@ class DocumentStartEvent(Event): explicit = ... # type: Any version = ... # type: Any tags = ... # type: Any - def __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None): ... + def __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None) -> None: ... class DocumentEndEvent(Event): start_mark = ... # type: Any end_mark = ... # type: Any explicit = ... # type: Any - def __init__(self, start_mark=None, end_mark=None, explicit=None): ... + def __init__(self, start_mark=None, end_mark=None, explicit=None) -> None: ... class AliasEvent(NodeEvent): ... @@ -58,7 +58,7 @@ class ScalarEvent(NodeEvent): start_mark = ... # type: Any end_mark = ... # type: Any style = ... # type: Any - def __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None): ... + def __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None) -> None: ... class SequenceStartEvent(CollectionStartEvent): ... class SequenceEndEvent(CollectionEndEvent): ... diff --git a/third_party/2.7/yaml/loader.pyi b/third_party/2.7/yaml/loader.pyi index dfa5817b2..6d3b4c1a0 100644 --- a/third_party/2.7/yaml/loader.pyi +++ b/third_party/2.7/yaml/loader.pyi @@ -10,10 +10,10 @@ from yaml.constructor import BaseConstructor, SafeConstructor, Constructor from yaml.resolver import BaseResolver, Resolver class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver): - def __init__(self, stream): ... + def __init__(self, stream) -> None: ... class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver): - def __init__(self, stream): ... + def __init__(self, stream) -> None: ... class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver): - def __init__(self, stream): ... + def __init__(self, stream) -> None: ... diff --git a/third_party/2.7/yaml/nodes.pyi b/third_party/2.7/yaml/nodes.pyi index cb0a7a7cc..6c6062e2a 100644 --- a/third_party/2.7/yaml/nodes.pyi +++ b/third_party/2.7/yaml/nodes.pyi @@ -9,7 +9,7 @@ class Node: value = ... # type: Any start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, tag, value, start_mark, end_mark): ... + def __init__(self, tag, value, start_mark, end_mark) -> None: ... class ScalarNode(Node): id = ... # type: Any @@ -18,7 +18,7 @@ class ScalarNode(Node): start_mark = ... # type: Any end_mark = ... # type: Any style = ... # type: Any - def __init__(self, tag, value, start_mark=None, end_mark=None, style=None): ... + def __init__(self, tag, value, start_mark=None, end_mark=None, style=None) -> None: ... class CollectionNode(Node): tag = ... # type: Any @@ -26,7 +26,7 @@ class CollectionNode(Node): start_mark = ... # type: Any end_mark = ... # type: Any flow_style = ... # type: Any - def __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None): ... + def __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None) -> None: ... class SequenceNode(CollectionNode): id = ... # type: Any diff --git a/third_party/2.7/yaml/parser.pyi b/third_party/2.7/yaml/parser.pyi index f44f21cf7..6c3f80053 100644 --- a/third_party/2.7/yaml/parser.pyi +++ b/third_party/2.7/yaml/parser.pyi @@ -15,7 +15,7 @@ class Parser: states = ... # type: Any marks = ... # type: Any state = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def dispose(self): ... def check_event(self, *choices): ... def peek_event(self): ... diff --git a/third_party/2.7/yaml/reader.pyi b/third_party/2.7/yaml/reader.pyi index d3b994f3d..32540741e 100644 --- a/third_party/2.7/yaml/reader.pyi +++ b/third_party/2.7/yaml/reader.pyi @@ -11,7 +11,7 @@ class ReaderError(YAMLError): position = ... # type: Any encoding = ... # type: Any reason = ... # type: Any - def __init__(self, name, position, character, encoding, reason): ... + def __init__(self, name, position, character, encoding, reason) -> None: ... class Reader: name = ... # type: Any @@ -26,7 +26,7 @@ class Reader: index = ... # type: Any line = ... # type: Any column = ... # type: Any - def __init__(self, stream): ... + def __init__(self, stream) -> None: ... def peek(self, index=0): ... def prefix(self, length=1): ... def forward(self, length=1): ... diff --git a/third_party/2.7/yaml/representer.pyi b/third_party/2.7/yaml/representer.pyi index 498b50aed..84486a3ad 100644 --- a/third_party/2.7/yaml/representer.pyi +++ b/third_party/2.7/yaml/representer.pyi @@ -15,7 +15,7 @@ class BaseRepresenter: represented_objects = ... # type: Any object_keeper = ... # type: Any alias_key = ... # type: Any - def __init__(self, default_style=None, default_flow_style=None): ... + def __init__(self, default_style=None, default_flow_style=None) -> None: ... def represent(self, data): ... def get_classobj_bases(self, cls): ... def represent_data(self, data): ... diff --git a/third_party/2.7/yaml/resolver.pyi b/third_party/2.7/yaml/resolver.pyi index d98493500..636475160 100644 --- a/third_party/2.7/yaml/resolver.pyi +++ b/third_party/2.7/yaml/resolver.pyi @@ -15,7 +15,7 @@ class BaseResolver: yaml_path_resolvers = ... # type: Any resolver_exact_paths = ... # type: Any resolver_prefix_paths = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def add_implicit_resolver(cls, tag, regexp, first): ... def add_path_resolver(cls, tag, path, kind=None): ... def descend_resolver(self, current_node, current_index): ... diff --git a/third_party/2.7/yaml/scanner.pyi b/third_party/2.7/yaml/scanner.pyi index 15b1e4edc..226ec837b 100644 --- a/third_party/2.7/yaml/scanner.pyi +++ b/third_party/2.7/yaml/scanner.pyi @@ -14,7 +14,7 @@ class SimpleKey: line = ... # type: Any column = ... # type: Any mark = ... # type: Any - def __init__(self, token_number, required, index, line, column, mark): ... + def __init__(self, token_number, required, index, line, column, mark) -> None: ... class Scanner: done = ... # type: Any @@ -25,7 +25,7 @@ class Scanner: indents = ... # type: Any allow_simple_key = ... # type: Any possible_simple_keys = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def check_token(self, *choices): ... def peek_token(self): ... def get_token(self): ... diff --git a/third_party/2.7/yaml/serializer.pyi b/third_party/2.7/yaml/serializer.pyi index f469953f2..6a6498aa6 100644 --- a/third_party/2.7/yaml/serializer.pyi +++ b/third_party/2.7/yaml/serializer.pyi @@ -18,7 +18,7 @@ class Serializer: anchors = ... # type: Any last_anchor_id = ... # type: Any closed = ... # type: Any - def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ... + def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ... def open(self): ... def close(self): ... def serialize(self, node): ... diff --git a/third_party/2.7/yaml/tokens.pyi b/third_party/2.7/yaml/tokens.pyi index f8d8c5461..96bf8af77 100644 --- a/third_party/2.7/yaml/tokens.pyi +++ b/third_party/2.7/yaml/tokens.pyi @@ -7,7 +7,7 @@ from typing import Any class Token: start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, start_mark, end_mark): ... + def __init__(self, start_mark, end_mark) -> None: ... class DirectiveToken(Token): id = ... # type: Any @@ -15,7 +15,7 @@ class DirectiveToken(Token): value = ... # type: Any start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, name, value, start_mark, end_mark): ... + def __init__(self, name, value, start_mark, end_mark) -> None: ... class DocumentStartToken(Token): id = ... # type: Any @@ -28,7 +28,7 @@ class StreamStartToken(Token): start_mark = ... # type: Any end_mark = ... # type: Any encoding = ... # type: Any - def __init__(self, start_mark=None, end_mark=None, encoding=None): ... + def __init__(self, start_mark=None, end_mark=None, encoding=None) -> None: ... class StreamEndToken(Token): id = ... # type: Any @@ -71,21 +71,21 @@ class AliasToken(Token): value = ... # type: Any start_mark = ... # type: Any end_mark = ... # type: Any - def __init__(self, value, start_mark, end_mark): ... + 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 - def __init__(self, value, start_mark, end_mark): ... + 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 - def __init__(self, value, start_mark, end_mark): ... + def __init__(self, value, start_mark, end_mark) -> None: ... class ScalarToken(Token): id = ... # type: Any @@ -94,4 +94,4 @@ class ScalarToken(Token): start_mark = ... # type: Any end_mark = ... # type: Any style = ... # type: Any - def __init__(self, value, plain, start_mark, end_mark, style=None): ... + def __init__(self, value, plain, start_mark, end_mark, style=None) -> None: ... diff --git a/third_party/3/requests/adapters.pyi b/third_party/3/requests/adapters.pyi index bed0758b4..1602b56d6 100644 --- a/third_party/3/requests/adapters.pyi +++ b/third_party/3/requests/adapters.pyi @@ -42,7 +42,7 @@ DEFAULT_POOLSIZE = ... # type: Any DEFAULT_RETRIES = ... # type: Any class BaseAdapter: - def __init__(self): ... + def __init__(self) -> None: ... # TODO: "request" parameter not actually supported, added to please mypy. def send(self, request=None): ... def close(self): ... diff --git a/third_party/3/requests/auth.pyi b/third_party/3/requests/auth.pyi index 43238dcba..8eea2b0e0 100644 --- a/third_party/3/requests/auth.pyi +++ b/third_party/3/requests/auth.pyi @@ -20,7 +20,7 @@ class AuthBase: class HTTPBasicAuth(AuthBase): username = ... # type: Any password = ... # type: Any - def __init__(self, username, password): ... + def __init__(self, username, password) -> None: ... def __call__(self, r): ... class HTTPProxyAuth(HTTPBasicAuth): @@ -34,7 +34,7 @@ class HTTPDigestAuth(AuthBase): chal = ... # type: Any pos = ... # type: Any num_401_calls = ... # type: Any - def __init__(self, username, password): ... + def __init__(self, username, password) -> None: ... def build_digest_header(self, method, url): ... def handle_redirect(self, r, **kwargs): ... def handle_401(self, r, **kwargs): ... diff --git a/third_party/3/requests/cookies.pyi b/third_party/3/requests/cookies.pyi index a5b012993..e1b51b4d1 100644 --- a/third_party/3/requests/cookies.pyi +++ b/third_party/3/requests/cookies.pyi @@ -10,7 +10,7 @@ from . import compat class MockRequest: type = ... # type: Any - def __init__(self, request): ... + def __init__(self, request) -> None: ... def get_type(self): ... def get_host(self): ... def get_origin_req_host(self): ... @@ -29,7 +29,7 @@ class MockRequest: def host(self): ... class MockResponse: - def __init__(self, headers): ... + def __init__(self, headers) -> None: ... def info(self): ... def getheaders(self, name): ... diff --git a/third_party/3/requests/exceptions.pyi b/third_party/3/requests/exceptions.pyi index 295796783..ff0c32883 100644 --- a/third_party/3/requests/exceptions.pyi +++ b/third_party/3/requests/exceptions.pyi @@ -6,7 +6,7 @@ from .packages.urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): response = ... # type: Any request = ... # type: Any - def __init__(self, *args, **kwargs): ... + def __init__(self, *args, **kwargs) -> None: ... class HTTPError(RequestException): ... class ConnectionError(RequestException): ... diff --git a/third_party/3/requests/models.pyi b/third_party/3/requests/models.pyi index 662e7bc58..108152b26 100644 --- a/third_party/3/requests/models.pyi +++ b/third_party/3/requests/models.pyi @@ -83,7 +83,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): headers = ... # type: Any body = ... # type: Any hooks = ... # type: Any - def __init__(self): ... + def __init__(self) -> None: ... def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None, cookies=None, hooks=None, json=None): ... def copy(self): ... diff --git a/third_party/3/requests/packages/__init__.pyi b/third_party/3/requests/packages/__init__.pyi index 835913f46..f6d006828 100644 --- a/third_party/3/requests/packages/__init__.pyi +++ b/third_party/3/requests/packages/__init__.pyi @@ -3,6 +3,6 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. class VendorAlias: - def __init__(self, package_names): ... + def __init__(self, package_names) -> None: ... def find_module(self, fullname, path=None): ... def load_module(self, name): ... diff --git a/third_party/3/requests/packages/urllib3/_collections.pyi b/third_party/3/requests/packages/urllib3/_collections.pyi index 452b77292..0a6491a78 100644 --- a/third_party/3/requests/packages/urllib3/_collections.pyi +++ b/third_party/3/requests/packages/urllib3/_collections.pyi @@ -13,7 +13,7 @@ class RecentlyUsedContainer(MutableMapping): ContainerCls = ... # type: Any dispose_func = ... # type: Any lock = ... # type: Any - def __init__(self, maxsize=10, dispose_func=None): ... + def __init__(self, maxsize=10, dispose_func=None) -> None: ... def __getitem__(self, key): ... def __setitem__(self, key, value): ... def __delitem__(self, key): ... @@ -23,7 +23,7 @@ class RecentlyUsedContainer(MutableMapping): def keys(self): ... class HTTPHeaderDict(dict): - def __init__(self, headers=None, **kwargs): ... + def __init__(self, headers=None, **kwargs) -> None: ... def __setitem__(self, key, val): ... def __getitem__(self, key): ... def __delitem__(self, key): ... diff --git a/third_party/3/requests/packages/urllib3/connection.pyi b/third_party/3/requests/packages/urllib3/connection.pyi index 8a39d042a..b985b337f 100644 --- a/third_party/3/requests/packages/urllib3/connection.pyi +++ b/third_party/3/requests/packages/urllib3/connection.pyi @@ -36,14 +36,14 @@ class HTTPConnection(_HTTPConnection): is_verified = ... # type: Any source_address = ... # type: Any socket_options = ... # type: Any - def __init__(self, *args, **kw): ... + def __init__(self, *args, **kw) -> None: ... def connect(self): ... class HTTPSConnection(HTTPConnection): 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=..., **kw): ... + def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw) -> None: ... sock = ... # type: Any def connect(self): ... diff --git a/third_party/3/requests/packages/urllib3/connectionpool.pyi b/third_party/3/requests/packages/urllib3/connectionpool.pyi index bdbebd945..4bdf57de6 100644 --- a/third_party/3/requests/packages/urllib3/connectionpool.pyi +++ b/third_party/3/requests/packages/urllib3/connectionpool.pyi @@ -51,7 +51,7 @@ class ConnectionPool: QueueCls = ... # type: Any host = ... # type: Any port = ... # type: Any - def __init__(self, host, port=None): ... + def __init__(self, host, port=None) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_val, exc_tb): ... def close(self): ... @@ -69,7 +69,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods): num_connections = ... # type: Any num_requests = ... # type: Any conn_kw = ... # type: Any - def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw): ... + def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw) -> None: ... def close(self): ... def is_same_host(self, url): ... def urlopen(self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=..., pool_timeout=None, release_conn=None, **response_kw): ... @@ -84,6 +84,6 @@ class HTTPSConnectionPool(HTTPConnectionPool): ssl_version = ... # type: Any assert_hostname = ... # type: Any assert_fingerprint = ... # type: Any - def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw): ... + def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw) -> None: ... def connection_from_url(url, **kw): ... diff --git a/third_party/3/requests/packages/urllib3/exceptions.pyi b/third_party/3/requests/packages/urllib3/exceptions.pyi index 39bba4746..03523283a 100644 --- a/third_party/3/requests/packages/urllib3/exceptions.pyi +++ b/third_party/3/requests/packages/urllib3/exceptions.pyi @@ -9,12 +9,12 @@ class HTTPWarning(Warning): ... class PoolError(HTTPError): pool = ... # type: Any - def __init__(self, pool, message): ... + def __init__(self, pool, message) -> None: ... def __reduce__(self): ... class RequestError(PoolError): url = ... # type: Any - def __init__(self, pool, url, message): ... + def __init__(self, pool, url, message) -> None: ... def __reduce__(self): ... class SSLError(HTTPError): ... @@ -26,11 +26,11 @@ ConnectionError = ... # type: Any class MaxRetryError(RequestError): reason = ... # type: Any - def __init__(self, pool, url, reason=None): ... + def __init__(self, pool, url, reason=None) -> None: ... class HostChangedError(RequestError): retries = ... # type: Any - def __init__(self, pool, url, retries=3): ... + def __init__(self, pool, url, retries=3) -> None: ... class TimeoutStateError(HTTPError): ... class TimeoutError(HTTPError): ... @@ -42,7 +42,7 @@ class LocationValueError(ValueError, HTTPError): ... class LocationParseError(LocationValueError): location = ... # type: Any - def __init__(self, location): ... + def __init__(self, location) -> None: ... class ResponseError(HTTPError): GENERIC_ERROR = ... # type: Any diff --git a/third_party/3/requests/packages/urllib3/fields.pyi b/third_party/3/requests/packages/urllib3/fields.pyi index ea43fb955..917c7ec9e 100644 --- a/third_party/3/requests/packages/urllib3/fields.pyi +++ b/third_party/3/requests/packages/urllib3/fields.pyi @@ -9,7 +9,7 @@ def format_header_param(name, value): ... class RequestField: data = ... # type: Any headers = ... # type: Any - def __init__(self, name, data, filename=None, headers=None): ... + def __init__(self, name, data, filename=None, headers=None) -> None: ... @classmethod def from_tuples(cls, fieldname, value): ... def render_headers(self): ... diff --git a/third_party/3/requests/packages/urllib3/poolmanager.pyi b/third_party/3/requests/packages/urllib3/poolmanager.pyi index 2c9fdb0cd..861af7ede 100644 --- a/third_party/3/requests/packages/urllib3/poolmanager.pyi +++ b/third_party/3/requests/packages/urllib3/poolmanager.pyi @@ -9,7 +9,7 @@ class PoolManager(RequestMethods): proxy = ... # type: Any connection_pool_kw = ... # type: Any pools = ... # type: Any - def __init__(self, num_pools=10, headers=None, **connection_pool_kw): ... + def __init__(self, num_pools=10, headers=None, **connection_pool_kw) -> None: ... def __enter__(self): ... def __exit__(self, exc_type, exc_val, exc_tb): ... def clear(self): ... @@ -22,7 +22,7 @@ class PoolManager(RequestMethods): class ProxyManager(PoolManager): proxy = ... # type: Any proxy_headers = ... # type: Any - def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw): ... + def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw) -> None: ... def connection_from_host(self, host, port=None, scheme=''): ... # TODO: This was the original signature -- copied another one from base class to fix complaint. # def urlopen(self, method, url, redirect=True, **kw): ... diff --git a/third_party/3/requests/packages/urllib3/request.pyi b/third_party/3/requests/packages/urllib3/request.pyi index ec03d6d12..591a9d4e2 100644 --- a/third_party/3/requests/packages/urllib3/request.pyi +++ b/third_party/3/requests/packages/urllib3/request.pyi @@ -6,7 +6,7 @@ from typing import Any class RequestMethods: headers = ... # type: Any - def __init__(self, headers=None): ... + def __init__(self, headers=None) -> None: ... def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ... def request(self, method, url, fields=None, headers=None, **urlopen_kw): ... def request_encode_url(self, method, url, fields=None, **urlopen_kw): ... diff --git a/third_party/3/requests/packages/urllib3/response.pyi b/third_party/3/requests/packages/urllib3/response.pyi index 0e58ec234..54132b484 100644 --- a/third_party/3/requests/packages/urllib3/response.pyi +++ b/third_party/3/requests/packages/urllib3/response.pyi @@ -19,12 +19,12 @@ PY3 = True # six.PY3 is_fp_closed = response.is_fp_closed class DeflateDecoder: - def __init__(self): ... + def __init__(self) -> None: ... def __getattr__(self, name): ... def decompress(self, data): ... class GzipDecoder: - def __init__(self): ... + def __init__(self) -> None: ... def __getattr__(self, name): ... def decompress(self, data): ... @@ -37,7 +37,7 @@ class HTTPResponse(io.IOBase): reason = ... # type: Any strict = ... # type: Any decode_content = ... # type: Any - def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None): ... + def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None) -> None: ... def get_redirect_location(self): ... def release_conn(self): ... @property diff --git a/third_party/3/requests/packages/urllib3/util/retry.pyi b/third_party/3/requests/packages/urllib3/util/retry.pyi index a4ff661a6..7030158da 100644 --- a/third_party/3/requests/packages/urllib3/util/retry.pyi +++ b/third_party/3/requests/packages/urllib3/util/retry.pyi @@ -25,7 +25,7 @@ class Retry: method_whitelist = ... # type: Any backoff_factor = ... # type: Any raise_on_redirect = ... # type: Any - def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0): ... + def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0) -> None: ... def new(self, **kw): ... @classmethod def from_int(cls, retries, redirect=True, default=None): ... diff --git a/third_party/3/requests/packages/urllib3/util/timeout.pyi b/third_party/3/requests/packages/urllib3/util/timeout.pyi index 8bad19567..3879b5f59 100644 --- a/third_party/3/requests/packages/urllib3/util/timeout.pyi +++ b/third_party/3/requests/packages/urllib3/util/timeout.pyi @@ -12,7 +12,7 @@ def current_time(): ... class Timeout: DEFAULT_TIMEOUT = ... # type: Any total = ... # type: Any - def __init__(self, total=None, connect=..., read=...): ... + def __init__(self, total=None, connect=..., read=...) -> None: ... @classmethod def from_float(cls, timeout): ... def clone(self): ... diff --git a/third_party/3/requests/structures.pyi b/third_party/3/requests/structures.pyi index 6d9e0da59..df60803a4 100644 --- a/third_party/3/requests/structures.pyi +++ b/third_party/3/requests/structures.pyi @@ -4,7 +4,7 @@ from typing import Any import collections class CaseInsensitiveDict(collections.MutableMapping): - def __init__(self, data=None, **kwargs): ... + def __init__(self, data=None, **kwargs) -> None: ... def __setitem__(self, key, value): ... def __getitem__(self, key): ... def __delitem__(self, key): ... @@ -16,6 +16,6 @@ class CaseInsensitiveDict(collections.MutableMapping): class LookupDict(dict): name = ... # type: Any - def __init__(self, name=None): ... + def __init__(self, name=None) -> None: ... def __getitem__(self, key): ... def get(self, key, default=None): ...