mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
# TODO
|
||||
#class MIMEBase(message.Message):
|
||||
class MIMEBase:
|
||||
def __init__(self, _maintype, _subtype, **_params): ...
|
||||
def __init__(self, _maintype, _subtype, **_params) -> None: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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=...): ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
from email.mime.nonmultipart import MIMENonMultipart
|
||||
|
||||
class MIMEMessage(MIMENonMultipart):
|
||||
def __init__(self, _msg, _subtype=''): ...
|
||||
def __init__(self, _msg, _subtype='') -> None: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
10
third_party/2.7/boto/connection.pyi
vendored
10
third_party/2.7/boto/connection.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/boto/ec2/elb/__init__.pyi
vendored
2
third_party/2.7/boto/ec2/elb/__init__.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/croniter.pyi
vendored
2
third_party/2.7/croniter.pyi
vendored
@@ -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=...): ...
|
||||
|
||||
32
third_party/2.7/fb303/FacebookService.pyi
vendored
32
third_party/2.7/fb303/FacebookService.pyi
vendored
@@ -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): ...
|
||||
|
||||
20
third_party/2.7/google/protobuf/descriptor.pyi
vendored
20
third_party/2.7/google/protobuf/descriptor.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/google/protobuf/message.pyi
vendored
2
third_party/2.7/google/protobuf/message.pyi
vendored
@@ -33,4 +33,4 @@ class Message:
|
||||
def ByteSize(self) -> int: ...
|
||||
|
||||
# TODO: check kwargs
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
4
third_party/2.7/kazoo/client.pyi
vendored
4
third_party/2.7/kazoo/client.pyi
vendored
@@ -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): ...
|
||||
|
||||
6
third_party/2.7/kazoo/recipe/watchers.pyi
vendored
6
third_party/2.7/kazoo/recipe/watchers.pyi
vendored
@@ -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): ...
|
||||
|
||||
8
third_party/2.7/redis/client.pyi
vendored
8
third_party/2.7/redis/client.pyi
vendored
@@ -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): ...
|
||||
|
||||
18
third_party/2.7/redis/connection.pyi
vendored
18
third_party/2.7/redis/connection.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/requests/adapters.pyi
vendored
2
third_party/2.7/requests/adapters.pyi
vendored
@@ -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): ...
|
||||
|
||||
4
third_party/2.7/requests/auth.pyi
vendored
4
third_party/2.7/requests/auth.pyi
vendored
@@ -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): ...
|
||||
|
||||
4
third_party/2.7/requests/cookies.pyi
vendored
4
third_party/2.7/requests/cookies.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
2
third_party/2.7/requests/exceptions.pyi
vendored
2
third_party/2.7/requests/exceptions.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/requests/models.pyi
vendored
2
third_party/2.7/requests/models.pyi
vendored
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
4
third_party/2.7/requests/structures.pyi
vendored
4
third_party/2.7/requests/structures.pyi
vendored
@@ -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): ...
|
||||
|
||||
4
third_party/2.7/routes/mapper.pyi
vendored
4
third_party/2.7/routes/mapper.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/routes/util.pyi
vendored
2
third_party/2.7/routes/util.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
8
third_party/2.7/scribe/scribe.pyi
vendored
8
third_party/2.7/scribe/scribe.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/scribe/ttypes.pyi
vendored
2
third_party/2.7/scribe/ttypes.pyi
vendored
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
2
third_party/2.7/sqlalchemy/engine/url.pyi
vendored
2
third_party/2.7/sqlalchemy/engine/url.pyi
vendored
@@ -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): ...
|
||||
|
||||
12
third_party/2.7/sqlalchemy/exc.pyi
vendored
12
third_party/2.7/sqlalchemy/exc.pyi
vendored
@@ -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): ...
|
||||
|
||||
6
third_party/2.7/sqlalchemy/orm/session.pyi
vendored
6
third_party/2.7/sqlalchemy/orm/session.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
14
third_party/2.7/sqlalchemy/pool.pyi
vendored
14
third_party/2.7/sqlalchemy/pool.pyi
vendored
@@ -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): ...
|
||||
|
||||
2
third_party/2.7/sqlalchemy/sql/visitors.pyi
vendored
2
third_party/2.7/sqlalchemy/sql/visitors.pyi
vendored
@@ -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: ...
|
||||
|
||||
|
||||
26
third_party/2.7/sqlalchemy/util/_collections.pyi
vendored
26
third_party/2.7/sqlalchemy/util/_collections.pyi
vendored
@@ -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): ...
|
||||
|
||||
20
third_party/2.7/sqlalchemy/util/langhelpers.pyi
vendored
20
third_party/2.7/sqlalchemy/util/langhelpers.pyi
vendored
@@ -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: ...
|
||||
|
||||
4
third_party/2.7/thrift/Thrift.pyi
vendored
4
third_party/2.7/thrift/Thrift.pyi
vendored
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user