mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 17:37:41 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -2,7 +2,7 @@ import sys
|
||||
import typing
|
||||
from typing import Any, Optional, ClassVar
|
||||
|
||||
PyCF_ONLY_AST = ... # type: int
|
||||
PyCF_ONLY_AST: int
|
||||
|
||||
_identifier = str
|
||||
|
||||
@@ -31,133 +31,133 @@ if sys.version_info >= (3, 8):
|
||||
returns: expr
|
||||
|
||||
class Module(mod):
|
||||
body = ... # type: typing.List[stmt]
|
||||
body: typing.List[stmt]
|
||||
if sys.version_info >= (3, 7):
|
||||
docstring: Optional[str]
|
||||
if sys.version_info >= (3, 8):
|
||||
type_ignores: typing.List[TypeIgnore]
|
||||
|
||||
class Interactive(mod):
|
||||
body = ... # type: typing.List[stmt]
|
||||
body: typing.List[stmt]
|
||||
|
||||
class Expression(mod):
|
||||
body = ... # type: expr
|
||||
body: expr
|
||||
|
||||
class Suite(mod):
|
||||
body = ... # type: typing.List[stmt]
|
||||
body: typing.List[stmt]
|
||||
|
||||
|
||||
class stmt(AST): ...
|
||||
|
||||
class FunctionDef(stmt):
|
||||
name = ... # type: _identifier
|
||||
args = ... # type: arguments
|
||||
body = ... # type: typing.List[stmt]
|
||||
decorator_list = ... # type: typing.List[expr]
|
||||
returns = ... # type: Optional[expr]
|
||||
name: _identifier
|
||||
args: arguments
|
||||
body: typing.List[stmt]
|
||||
decorator_list: typing.List[expr]
|
||||
returns: Optional[expr]
|
||||
if sys.version_info >= (3, 7):
|
||||
docstring: Optional[str]
|
||||
|
||||
class AsyncFunctionDef(stmt):
|
||||
name = ... # type: _identifier
|
||||
args = ... # type: arguments
|
||||
body = ... # type: typing.List[stmt]
|
||||
decorator_list = ... # type: typing.List[expr]
|
||||
returns = ... # type: Optional[expr]
|
||||
name: _identifier
|
||||
args: arguments
|
||||
body: typing.List[stmt]
|
||||
decorator_list: typing.List[expr]
|
||||
returns: Optional[expr]
|
||||
if sys.version_info >= (3, 7):
|
||||
docstring: Optional[str]
|
||||
|
||||
class ClassDef(stmt):
|
||||
name = ... # type: _identifier
|
||||
bases = ... # type: typing.List[expr]
|
||||
keywords = ... # type: typing.List[keyword]
|
||||
body = ... # type: typing.List[stmt]
|
||||
decorator_list = ... # type: typing.List[expr]
|
||||
name: _identifier
|
||||
bases: typing.List[expr]
|
||||
keywords: typing.List[keyword]
|
||||
body: typing.List[stmt]
|
||||
decorator_list: typing.List[expr]
|
||||
if sys.version_info >= (3, 7):
|
||||
docstring: Optional[str]
|
||||
|
||||
class Return(stmt):
|
||||
value = ... # type: Optional[expr]
|
||||
value: Optional[expr]
|
||||
|
||||
class Delete(stmt):
|
||||
targets = ... # type: typing.List[expr]
|
||||
targets: typing.List[expr]
|
||||
|
||||
class Assign(stmt):
|
||||
targets = ... # type: typing.List[expr]
|
||||
value = ... # type: expr
|
||||
targets: typing.List[expr]
|
||||
value: expr
|
||||
|
||||
class AugAssign(stmt):
|
||||
target = ... # type: expr
|
||||
op = ... # type: operator
|
||||
value = ... # type: expr
|
||||
target: expr
|
||||
op: operator
|
||||
value: expr
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
class AnnAssign(stmt):
|
||||
target = ... # type: expr
|
||||
annotation = ... # type: expr
|
||||
value = ... # type: Optional[expr]
|
||||
simple = ... # type: int
|
||||
target: expr
|
||||
annotation: expr
|
||||
value: Optional[expr]
|
||||
simple: int
|
||||
|
||||
class For(stmt):
|
||||
target = ... # type: expr
|
||||
iter = ... # type: expr
|
||||
body = ... # type: typing.List[stmt]
|
||||
orelse = ... # type: typing.List[stmt]
|
||||
target: expr
|
||||
iter: expr
|
||||
body: typing.List[stmt]
|
||||
orelse: typing.List[stmt]
|
||||
|
||||
class AsyncFor(stmt):
|
||||
target = ... # type: expr
|
||||
iter = ... # type: expr
|
||||
body = ... # type: typing.List[stmt]
|
||||
orelse = ... # type: typing.List[stmt]
|
||||
target: expr
|
||||
iter: expr
|
||||
body: typing.List[stmt]
|
||||
orelse: typing.List[stmt]
|
||||
|
||||
class While(stmt):
|
||||
test = ... # type: expr
|
||||
body = ... # type: typing.List[stmt]
|
||||
orelse = ... # type: typing.List[stmt]
|
||||
test: expr
|
||||
body: typing.List[stmt]
|
||||
orelse: typing.List[stmt]
|
||||
|
||||
class If(stmt):
|
||||
test = ... # type: expr
|
||||
body = ... # type: typing.List[stmt]
|
||||
orelse = ... # type: typing.List[stmt]
|
||||
test: expr
|
||||
body: typing.List[stmt]
|
||||
orelse: typing.List[stmt]
|
||||
|
||||
class With(stmt):
|
||||
items = ... # type: typing.List[withitem]
|
||||
body = ... # type: typing.List[stmt]
|
||||
items: typing.List[withitem]
|
||||
body: typing.List[stmt]
|
||||
|
||||
class AsyncWith(stmt):
|
||||
items = ... # type: typing.List[withitem]
|
||||
body = ... # type: typing.List[stmt]
|
||||
items: typing.List[withitem]
|
||||
body: typing.List[stmt]
|
||||
|
||||
class Raise(stmt):
|
||||
exc = ... # type: Optional[expr]
|
||||
cause = ... # type: Optional[expr]
|
||||
exc: Optional[expr]
|
||||
cause: Optional[expr]
|
||||
|
||||
class Try(stmt):
|
||||
body = ... # type: typing.List[stmt]
|
||||
handlers = ... # type: typing.List[ExceptHandler]
|
||||
orelse = ... # type: typing.List[stmt]
|
||||
finalbody = ... # type: typing.List[stmt]
|
||||
body: typing.List[stmt]
|
||||
handlers: typing.List[ExceptHandler]
|
||||
orelse: typing.List[stmt]
|
||||
finalbody: typing.List[stmt]
|
||||
|
||||
class Assert(stmt):
|
||||
test = ... # type: expr
|
||||
msg = ... # type: Optional[expr]
|
||||
test: expr
|
||||
msg: Optional[expr]
|
||||
|
||||
class Import(stmt):
|
||||
names = ... # type: typing.List[alias]
|
||||
names: typing.List[alias]
|
||||
|
||||
class ImportFrom(stmt):
|
||||
module = ... # type: Optional[_identifier]
|
||||
names = ... # type: typing.List[alias]
|
||||
level = ... # type: int
|
||||
module: Optional[_identifier]
|
||||
names: typing.List[alias]
|
||||
level: int
|
||||
|
||||
class Global(stmt):
|
||||
names = ... # type: typing.List[_identifier]
|
||||
names: typing.List[_identifier]
|
||||
|
||||
class Nonlocal(stmt):
|
||||
names = ... # type: typing.List[_identifier]
|
||||
names: typing.List[_identifier]
|
||||
|
||||
class Expr(stmt):
|
||||
value = ... # type: expr
|
||||
value: expr
|
||||
|
||||
class Pass(stmt): ...
|
||||
class Break(stmt): ...
|
||||
@@ -170,104 +170,104 @@ class slice(AST):
|
||||
_slice = slice # this lets us type the variable named 'slice' below
|
||||
|
||||
class Slice(slice):
|
||||
lower = ... # type: Optional[expr]
|
||||
upper = ... # type: Optional[expr]
|
||||
step = ... # type: Optional[expr]
|
||||
lower: Optional[expr]
|
||||
upper: Optional[expr]
|
||||
step: Optional[expr]
|
||||
|
||||
class ExtSlice(slice):
|
||||
dims = ... # type: typing.List[slice]
|
||||
dims: typing.List[slice]
|
||||
|
||||
class Index(slice):
|
||||
value = ... # type: expr
|
||||
value: expr
|
||||
|
||||
|
||||
class expr(AST): ...
|
||||
|
||||
class BoolOp(expr):
|
||||
op = ... # type: boolop
|
||||
values = ... # type: typing.List[expr]
|
||||
op: boolop
|
||||
values: typing.List[expr]
|
||||
|
||||
class BinOp(expr):
|
||||
left = ... # type: expr
|
||||
op = ... # type: operator
|
||||
right = ... # type: expr
|
||||
left: expr
|
||||
op: operator
|
||||
right: expr
|
||||
|
||||
class UnaryOp(expr):
|
||||
op = ... # type: unaryop
|
||||
operand = ... # type: expr
|
||||
op: unaryop
|
||||
operand: expr
|
||||
|
||||
class Lambda(expr):
|
||||
args = ... # type: arguments
|
||||
body = ... # type: expr
|
||||
args: arguments
|
||||
body: expr
|
||||
|
||||
class IfExp(expr):
|
||||
test = ... # type: expr
|
||||
body = ... # type: expr
|
||||
orelse = ... # type: expr
|
||||
test: expr
|
||||
body: expr
|
||||
orelse: expr
|
||||
|
||||
class Dict(expr):
|
||||
keys = ... # type: typing.List[expr]
|
||||
values = ... # type: typing.List[expr]
|
||||
keys: typing.List[expr]
|
||||
values: typing.List[expr]
|
||||
|
||||
class Set(expr):
|
||||
elts = ... # type: typing.List[expr]
|
||||
elts: typing.List[expr]
|
||||
|
||||
class ListComp(expr):
|
||||
elt = ... # type: expr
|
||||
generators = ... # type: typing.List[comprehension]
|
||||
elt: expr
|
||||
generators: typing.List[comprehension]
|
||||
|
||||
class SetComp(expr):
|
||||
elt = ... # type: expr
|
||||
generators = ... # type: typing.List[comprehension]
|
||||
elt: expr
|
||||
generators: typing.List[comprehension]
|
||||
|
||||
class DictComp(expr):
|
||||
key = ... # type: expr
|
||||
value = ... # type: expr
|
||||
generators = ... # type: typing.List[comprehension]
|
||||
key: expr
|
||||
value: expr
|
||||
generators: typing.List[comprehension]
|
||||
|
||||
class GeneratorExp(expr):
|
||||
elt = ... # type: expr
|
||||
generators = ... # type: typing.List[comprehension]
|
||||
elt: expr
|
||||
generators: typing.List[comprehension]
|
||||
|
||||
class Await(expr):
|
||||
value = ... # type: expr
|
||||
value: expr
|
||||
|
||||
class Yield(expr):
|
||||
value = ... # type: Optional[expr]
|
||||
value: Optional[expr]
|
||||
|
||||
class YieldFrom(expr):
|
||||
value = ... # type: expr
|
||||
value: expr
|
||||
|
||||
class Compare(expr):
|
||||
left = ... # type: expr
|
||||
ops = ... # type: typing.List[cmpop]
|
||||
comparators = ... # type: typing.List[expr]
|
||||
left: expr
|
||||
ops: typing.List[cmpop]
|
||||
comparators: typing.List[expr]
|
||||
|
||||
class Call(expr):
|
||||
func = ... # type: expr
|
||||
args = ... # type: typing.List[expr]
|
||||
keywords = ... # type: typing.List[keyword]
|
||||
func: expr
|
||||
args: typing.List[expr]
|
||||
keywords: typing.List[keyword]
|
||||
|
||||
class Num(expr): # Deprecated in 3.8; use Constant
|
||||
n = ... # type: complex
|
||||
n: complex
|
||||
|
||||
class Str(expr): # Deprecated in 3.8; use Constant
|
||||
s = ... # type: str
|
||||
s: str
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
class FormattedValue(expr):
|
||||
value = ... # type: expr
|
||||
conversion = ... # type: Optional[int]
|
||||
format_spec = ... # type: Optional[expr]
|
||||
value: expr
|
||||
conversion: Optional[int]
|
||||
format_spec: Optional[expr]
|
||||
|
||||
class JoinedStr(expr):
|
||||
values = ... # type: typing.List[expr]
|
||||
values: typing.List[expr]
|
||||
|
||||
class Bytes(expr): # Deprecated in 3.8; use Constant
|
||||
s = ... # type: bytes
|
||||
s: bytes
|
||||
|
||||
class NameConstant(expr):
|
||||
value = ... # type: Any
|
||||
value: Any
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class Constant(expr):
|
||||
@@ -284,30 +284,30 @@ if sys.version_info >= (3, 8):
|
||||
class Ellipsis(expr): ...
|
||||
|
||||
class Attribute(expr):
|
||||
value = ... # type: expr
|
||||
attr = ... # type: _identifier
|
||||
ctx = ... # type: expr_context
|
||||
value: expr
|
||||
attr: _identifier
|
||||
ctx: expr_context
|
||||
|
||||
class Subscript(expr):
|
||||
value = ... # type: expr
|
||||
slice = ... # type: _slice
|
||||
ctx = ... # type: expr_context
|
||||
value: expr
|
||||
slice: _slice
|
||||
ctx: expr_context
|
||||
|
||||
class Starred(expr):
|
||||
value = ... # type: expr
|
||||
ctx = ... # type: expr_context
|
||||
value: expr
|
||||
ctx: expr_context
|
||||
|
||||
class Name(expr):
|
||||
id = ... # type: _identifier
|
||||
ctx = ... # type: expr_context
|
||||
id: _identifier
|
||||
ctx: expr_context
|
||||
|
||||
class List(expr):
|
||||
elts = ... # type: typing.List[expr]
|
||||
ctx = ... # type: expr_context
|
||||
elts: typing.List[expr]
|
||||
ctx: expr_context
|
||||
|
||||
class Tuple(expr):
|
||||
elts = ... # type: typing.List[expr]
|
||||
ctx = ... # type: expr_context
|
||||
elts: typing.List[expr]
|
||||
ctx: expr_context
|
||||
|
||||
|
||||
class expr_context(AST):
|
||||
@@ -368,42 +368,42 @@ class NotIn(cmpop): ...
|
||||
|
||||
|
||||
class comprehension(AST):
|
||||
target = ... # type: expr
|
||||
iter = ... # type: expr
|
||||
ifs = ... # type: typing.List[expr]
|
||||
target: expr
|
||||
iter: expr
|
||||
ifs: typing.List[expr]
|
||||
if sys.version_info >= (3, 6):
|
||||
is_async = ... # type: int
|
||||
is_async: int
|
||||
|
||||
|
||||
class excepthandler(AST):
|
||||
...
|
||||
|
||||
class ExceptHandler(excepthandler):
|
||||
type = ... # type: Optional[expr]
|
||||
name = ... # type: Optional[_identifier]
|
||||
body = ... # type: typing.List[stmt]
|
||||
type: Optional[expr]
|
||||
name: Optional[_identifier]
|
||||
body: typing.List[stmt]
|
||||
|
||||
|
||||
class arguments(AST):
|
||||
args = ... # type: typing.List[arg]
|
||||
vararg = ... # type: Optional[arg]
|
||||
kwonlyargs = ... # type: typing.List[arg]
|
||||
kw_defaults = ... # type: typing.List[expr]
|
||||
kwarg = ... # type: Optional[arg]
|
||||
defaults = ... # type: typing.List[expr]
|
||||
args: typing.List[arg]
|
||||
vararg: Optional[arg]
|
||||
kwonlyargs: typing.List[arg]
|
||||
kw_defaults: typing.List[expr]
|
||||
kwarg: Optional[arg]
|
||||
defaults: typing.List[expr]
|
||||
|
||||
class arg(AST):
|
||||
arg = ... # type: _identifier
|
||||
annotation = ... # type: Optional[expr]
|
||||
arg: _identifier
|
||||
annotation: Optional[expr]
|
||||
|
||||
class keyword(AST):
|
||||
arg = ... # type: Optional[_identifier]
|
||||
value = ... # type: expr
|
||||
arg: Optional[_identifier]
|
||||
value: expr
|
||||
|
||||
class alias(AST):
|
||||
name = ... # type: _identifier
|
||||
asname = ... # type: Optional[_identifier]
|
||||
name: _identifier
|
||||
asname: Optional[_identifier]
|
||||
|
||||
class withitem(AST):
|
||||
context_expr = ... # type: expr
|
||||
optional_vars = ... # type: Optional[expr]
|
||||
context_expr: expr
|
||||
optional_vars: Optional[expr]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from typing import Any
|
||||
import io
|
||||
|
||||
BUFFER_SIZE = ... # type: Any
|
||||
BUFFER_SIZE: Any
|
||||
|
||||
class BaseStream(io.BufferedIOBase): ...
|
||||
|
||||
|
||||
@@ -2,218 +2,218 @@ from typing import Any, BinaryIO, IO, Optional, Tuple, Union, overload
|
||||
|
||||
_chtype = Union[str, bytes, int]
|
||||
|
||||
ALL_MOUSE_EVENTS = ... # type: int
|
||||
A_ALTCHARSET = ... # type: int
|
||||
A_ATTRIBUTES = ... # type: int
|
||||
A_BLINK = ... # type: int
|
||||
A_BOLD = ... # type: int
|
||||
A_CHARTEXT = ... # type: int
|
||||
A_COLOR = ... # type: int
|
||||
A_DIM = ... # type: int
|
||||
A_HORIZONTAL = ... # type: int
|
||||
A_INVIS = ... # type: int
|
||||
A_LEFT = ... # type: int
|
||||
A_LOW = ... # type: int
|
||||
A_NORMAL = ... # type: int
|
||||
A_PROTECT = ... # type: int
|
||||
A_REVERSE = ... # type: int
|
||||
A_RIGHT = ... # type: int
|
||||
A_STANDOUT = ... # type: int
|
||||
A_TOP = ... # type: int
|
||||
A_UNDERLINE = ... # type: int
|
||||
A_VERTICAL = ... # type: int
|
||||
BUTTON1_CLICKED = ... # type: int
|
||||
BUTTON1_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON1_PRESSED = ... # type: int
|
||||
BUTTON1_RELEASED = ... # type: int
|
||||
BUTTON1_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON2_CLICKED = ... # type: int
|
||||
BUTTON2_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON2_PRESSED = ... # type: int
|
||||
BUTTON2_RELEASED = ... # type: int
|
||||
BUTTON2_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON3_CLICKED = ... # type: int
|
||||
BUTTON3_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON3_PRESSED = ... # type: int
|
||||
BUTTON3_RELEASED = ... # type: int
|
||||
BUTTON3_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON4_CLICKED = ... # type: int
|
||||
BUTTON4_DOUBLE_CLICKED = ... # type: int
|
||||
BUTTON4_PRESSED = ... # type: int
|
||||
BUTTON4_RELEASED = ... # type: int
|
||||
BUTTON4_TRIPLE_CLICKED = ... # type: int
|
||||
BUTTON_ALT = ... # type: int
|
||||
BUTTON_CTRL = ... # type: int
|
||||
BUTTON_SHIFT = ... # type: int
|
||||
COLOR_BLACK = ... # type: int
|
||||
COLOR_BLUE = ... # type: int
|
||||
COLOR_CYAN = ... # type: int
|
||||
COLOR_GREEN = ... # type: int
|
||||
COLOR_MAGENTA = ... # type: int
|
||||
COLOR_RED = ... # type: int
|
||||
COLOR_WHITE = ... # type: int
|
||||
COLOR_YELLOW = ... # type: int
|
||||
ERR = ... # type: int
|
||||
KEY_A1 = ... # type: int
|
||||
KEY_A3 = ... # type: int
|
||||
KEY_B2 = ... # type: int
|
||||
KEY_BACKSPACE = ... # type: int
|
||||
KEY_BEG = ... # type: int
|
||||
KEY_BREAK = ... # type: int
|
||||
KEY_BTAB = ... # type: int
|
||||
KEY_C1 = ... # type: int
|
||||
KEY_C3 = ... # type: int
|
||||
KEY_CANCEL = ... # type: int
|
||||
KEY_CATAB = ... # type: int
|
||||
KEY_CLEAR = ... # type: int
|
||||
KEY_CLOSE = ... # type: int
|
||||
KEY_COMMAND = ... # type: int
|
||||
KEY_COPY = ... # type: int
|
||||
KEY_CREATE = ... # type: int
|
||||
KEY_CTAB = ... # type: int
|
||||
KEY_DC = ... # type: int
|
||||
KEY_DL = ... # type: int
|
||||
KEY_DOWN = ... # type: int
|
||||
KEY_EIC = ... # type: int
|
||||
KEY_END = ... # type: int
|
||||
KEY_ENTER = ... # type: int
|
||||
KEY_EOL = ... # type: int
|
||||
KEY_EOS = ... # type: int
|
||||
KEY_EXIT = ... # type: int
|
||||
KEY_F0 = ... # type: int
|
||||
KEY_F1 = ... # type: int
|
||||
KEY_F10 = ... # type: int
|
||||
KEY_F11 = ... # type: int
|
||||
KEY_F12 = ... # type: int
|
||||
KEY_F13 = ... # type: int
|
||||
KEY_F14 = ... # type: int
|
||||
KEY_F15 = ... # type: int
|
||||
KEY_F16 = ... # type: int
|
||||
KEY_F17 = ... # type: int
|
||||
KEY_F18 = ... # type: int
|
||||
KEY_F19 = ... # type: int
|
||||
KEY_F2 = ... # type: int
|
||||
KEY_F20 = ... # type: int
|
||||
KEY_F21 = ... # type: int
|
||||
KEY_F22 = ... # type: int
|
||||
KEY_F23 = ... # type: int
|
||||
KEY_F24 = ... # type: int
|
||||
KEY_F25 = ... # type: int
|
||||
KEY_F26 = ... # type: int
|
||||
KEY_F27 = ... # type: int
|
||||
KEY_F28 = ... # type: int
|
||||
KEY_F29 = ... # type: int
|
||||
KEY_F3 = ... # type: int
|
||||
KEY_F30 = ... # type: int
|
||||
KEY_F31 = ... # type: int
|
||||
KEY_F32 = ... # type: int
|
||||
KEY_F33 = ... # type: int
|
||||
KEY_F34 = ... # type: int
|
||||
KEY_F35 = ... # type: int
|
||||
KEY_F36 = ... # type: int
|
||||
KEY_F37 = ... # type: int
|
||||
KEY_F38 = ... # type: int
|
||||
KEY_F39 = ... # type: int
|
||||
KEY_F4 = ... # type: int
|
||||
KEY_F40 = ... # type: int
|
||||
KEY_F41 = ... # type: int
|
||||
KEY_F42 = ... # type: int
|
||||
KEY_F43 = ... # type: int
|
||||
KEY_F44 = ... # type: int
|
||||
KEY_F45 = ... # type: int
|
||||
KEY_F46 = ... # type: int
|
||||
KEY_F47 = ... # type: int
|
||||
KEY_F48 = ... # type: int
|
||||
KEY_F49 = ... # type: int
|
||||
KEY_F5 = ... # type: int
|
||||
KEY_F50 = ... # type: int
|
||||
KEY_F51 = ... # type: int
|
||||
KEY_F52 = ... # type: int
|
||||
KEY_F53 = ... # type: int
|
||||
KEY_F54 = ... # type: int
|
||||
KEY_F55 = ... # type: int
|
||||
KEY_F56 = ... # type: int
|
||||
KEY_F57 = ... # type: int
|
||||
KEY_F58 = ... # type: int
|
||||
KEY_F59 = ... # type: int
|
||||
KEY_F6 = ... # type: int
|
||||
KEY_F60 = ... # type: int
|
||||
KEY_F61 = ... # type: int
|
||||
KEY_F62 = ... # type: int
|
||||
KEY_F63 = ... # type: int
|
||||
KEY_F7 = ... # type: int
|
||||
KEY_F8 = ... # type: int
|
||||
KEY_F9 = ... # type: int
|
||||
KEY_FIND = ... # type: int
|
||||
KEY_HELP = ... # type: int
|
||||
KEY_HOME = ... # type: int
|
||||
KEY_IC = ... # type: int
|
||||
KEY_IL = ... # type: int
|
||||
KEY_LEFT = ... # type: int
|
||||
KEY_LL = ... # type: int
|
||||
KEY_MARK = ... # type: int
|
||||
KEY_MAX = ... # type: int
|
||||
KEY_MESSAGE = ... # type: int
|
||||
KEY_MIN = ... # type: int
|
||||
KEY_MOUSE = ... # type: int
|
||||
KEY_MOVE = ... # type: int
|
||||
KEY_NEXT = ... # type: int
|
||||
KEY_NPAGE = ... # type: int
|
||||
KEY_OPEN = ... # type: int
|
||||
KEY_OPTIONS = ... # type: int
|
||||
KEY_PPAGE = ... # type: int
|
||||
KEY_PREVIOUS = ... # type: int
|
||||
KEY_PRINT = ... # type: int
|
||||
KEY_REDO = ... # type: int
|
||||
KEY_REFERENCE = ... # type: int
|
||||
KEY_REFRESH = ... # type: int
|
||||
KEY_REPLACE = ... # type: int
|
||||
KEY_RESET = ... # type: int
|
||||
KEY_RESIZE = ... # type: int
|
||||
KEY_RESTART = ... # type: int
|
||||
KEY_RESUME = ... # type: int
|
||||
KEY_RIGHT = ... # type: int
|
||||
KEY_SAVE = ... # type: int
|
||||
KEY_SBEG = ... # type: int
|
||||
KEY_SCANCEL = ... # type: int
|
||||
KEY_SCOMMAND = ... # type: int
|
||||
KEY_SCOPY = ... # type: int
|
||||
KEY_SCREATE = ... # type: int
|
||||
KEY_SDC = ... # type: int
|
||||
KEY_SDL = ... # type: int
|
||||
KEY_SELECT = ... # type: int
|
||||
KEY_SEND = ... # type: int
|
||||
KEY_SEOL = ... # type: int
|
||||
KEY_SEXIT = ... # type: int
|
||||
KEY_SF = ... # type: int
|
||||
KEY_SFIND = ... # type: int
|
||||
KEY_SHELP = ... # type: int
|
||||
KEY_SHOME = ... # type: int
|
||||
KEY_SIC = ... # type: int
|
||||
KEY_SLEFT = ... # type: int
|
||||
KEY_SMESSAGE = ... # type: int
|
||||
KEY_SMOVE = ... # type: int
|
||||
KEY_SNEXT = ... # type: int
|
||||
KEY_SOPTIONS = ... # type: int
|
||||
KEY_SPREVIOUS = ... # type: int
|
||||
KEY_SPRINT = ... # type: int
|
||||
KEY_SR = ... # type: int
|
||||
KEY_SREDO = ... # type: int
|
||||
KEY_SREPLACE = ... # type: int
|
||||
KEY_SRESET = ... # type: int
|
||||
KEY_SRIGHT = ... # type: int
|
||||
KEY_SRSUME = ... # type: int
|
||||
KEY_SSAVE = ... # type: int
|
||||
KEY_SSUSPEND = ... # type: int
|
||||
KEY_STAB = ... # type: int
|
||||
KEY_SUNDO = ... # type: int
|
||||
KEY_SUSPEND = ... # type: int
|
||||
KEY_UNDO = ... # type: int
|
||||
KEY_UP = ... # type: int
|
||||
OK = ... # type: int
|
||||
REPORT_MOUSE_POSITION = ... # type: int
|
||||
_C_API = ... # type: Any
|
||||
version = ... # type: bytes
|
||||
ALL_MOUSE_EVENTS: int
|
||||
A_ALTCHARSET: int
|
||||
A_ATTRIBUTES: int
|
||||
A_BLINK: int
|
||||
A_BOLD: int
|
||||
A_CHARTEXT: int
|
||||
A_COLOR: int
|
||||
A_DIM: int
|
||||
A_HORIZONTAL: int
|
||||
A_INVIS: int
|
||||
A_LEFT: int
|
||||
A_LOW: int
|
||||
A_NORMAL: int
|
||||
A_PROTECT: int
|
||||
A_REVERSE: int
|
||||
A_RIGHT: int
|
||||
A_STANDOUT: int
|
||||
A_TOP: int
|
||||
A_UNDERLINE: int
|
||||
A_VERTICAL: int
|
||||
BUTTON1_CLICKED: int
|
||||
BUTTON1_DOUBLE_CLICKED: int
|
||||
BUTTON1_PRESSED: int
|
||||
BUTTON1_RELEASED: int
|
||||
BUTTON1_TRIPLE_CLICKED: int
|
||||
BUTTON2_CLICKED: int
|
||||
BUTTON2_DOUBLE_CLICKED: int
|
||||
BUTTON2_PRESSED: int
|
||||
BUTTON2_RELEASED: int
|
||||
BUTTON2_TRIPLE_CLICKED: int
|
||||
BUTTON3_CLICKED: int
|
||||
BUTTON3_DOUBLE_CLICKED: int
|
||||
BUTTON3_PRESSED: int
|
||||
BUTTON3_RELEASED: int
|
||||
BUTTON3_TRIPLE_CLICKED: int
|
||||
BUTTON4_CLICKED: int
|
||||
BUTTON4_DOUBLE_CLICKED: int
|
||||
BUTTON4_PRESSED: int
|
||||
BUTTON4_RELEASED: int
|
||||
BUTTON4_TRIPLE_CLICKED: int
|
||||
BUTTON_ALT: int
|
||||
BUTTON_CTRL: int
|
||||
BUTTON_SHIFT: int
|
||||
COLOR_BLACK: int
|
||||
COLOR_BLUE: int
|
||||
COLOR_CYAN: int
|
||||
COLOR_GREEN: int
|
||||
COLOR_MAGENTA: int
|
||||
COLOR_RED: int
|
||||
COLOR_WHITE: int
|
||||
COLOR_YELLOW: int
|
||||
ERR: int
|
||||
KEY_A1: int
|
||||
KEY_A3: int
|
||||
KEY_B2: int
|
||||
KEY_BACKSPACE: int
|
||||
KEY_BEG: int
|
||||
KEY_BREAK: int
|
||||
KEY_BTAB: int
|
||||
KEY_C1: int
|
||||
KEY_C3: int
|
||||
KEY_CANCEL: int
|
||||
KEY_CATAB: int
|
||||
KEY_CLEAR: int
|
||||
KEY_CLOSE: int
|
||||
KEY_COMMAND: int
|
||||
KEY_COPY: int
|
||||
KEY_CREATE: int
|
||||
KEY_CTAB: int
|
||||
KEY_DC: int
|
||||
KEY_DL: int
|
||||
KEY_DOWN: int
|
||||
KEY_EIC: int
|
||||
KEY_END: int
|
||||
KEY_ENTER: int
|
||||
KEY_EOL: int
|
||||
KEY_EOS: int
|
||||
KEY_EXIT: int
|
||||
KEY_F0: int
|
||||
KEY_F1: int
|
||||
KEY_F10: int
|
||||
KEY_F11: int
|
||||
KEY_F12: int
|
||||
KEY_F13: int
|
||||
KEY_F14: int
|
||||
KEY_F15: int
|
||||
KEY_F16: int
|
||||
KEY_F17: int
|
||||
KEY_F18: int
|
||||
KEY_F19: int
|
||||
KEY_F2: int
|
||||
KEY_F20: int
|
||||
KEY_F21: int
|
||||
KEY_F22: int
|
||||
KEY_F23: int
|
||||
KEY_F24: int
|
||||
KEY_F25: int
|
||||
KEY_F26: int
|
||||
KEY_F27: int
|
||||
KEY_F28: int
|
||||
KEY_F29: int
|
||||
KEY_F3: int
|
||||
KEY_F30: int
|
||||
KEY_F31: int
|
||||
KEY_F32: int
|
||||
KEY_F33: int
|
||||
KEY_F34: int
|
||||
KEY_F35: int
|
||||
KEY_F36: int
|
||||
KEY_F37: int
|
||||
KEY_F38: int
|
||||
KEY_F39: int
|
||||
KEY_F4: int
|
||||
KEY_F40: int
|
||||
KEY_F41: int
|
||||
KEY_F42: int
|
||||
KEY_F43: int
|
||||
KEY_F44: int
|
||||
KEY_F45: int
|
||||
KEY_F46: int
|
||||
KEY_F47: int
|
||||
KEY_F48: int
|
||||
KEY_F49: int
|
||||
KEY_F5: int
|
||||
KEY_F50: int
|
||||
KEY_F51: int
|
||||
KEY_F52: int
|
||||
KEY_F53: int
|
||||
KEY_F54: int
|
||||
KEY_F55: int
|
||||
KEY_F56: int
|
||||
KEY_F57: int
|
||||
KEY_F58: int
|
||||
KEY_F59: int
|
||||
KEY_F6: int
|
||||
KEY_F60: int
|
||||
KEY_F61: int
|
||||
KEY_F62: int
|
||||
KEY_F63: int
|
||||
KEY_F7: int
|
||||
KEY_F8: int
|
||||
KEY_F9: int
|
||||
KEY_FIND: int
|
||||
KEY_HELP: int
|
||||
KEY_HOME: int
|
||||
KEY_IC: int
|
||||
KEY_IL: int
|
||||
KEY_LEFT: int
|
||||
KEY_LL: int
|
||||
KEY_MARK: int
|
||||
KEY_MAX: int
|
||||
KEY_MESSAGE: int
|
||||
KEY_MIN: int
|
||||
KEY_MOUSE: int
|
||||
KEY_MOVE: int
|
||||
KEY_NEXT: int
|
||||
KEY_NPAGE: int
|
||||
KEY_OPEN: int
|
||||
KEY_OPTIONS: int
|
||||
KEY_PPAGE: int
|
||||
KEY_PREVIOUS: int
|
||||
KEY_PRINT: int
|
||||
KEY_REDO: int
|
||||
KEY_REFERENCE: int
|
||||
KEY_REFRESH: int
|
||||
KEY_REPLACE: int
|
||||
KEY_RESET: int
|
||||
KEY_RESIZE: int
|
||||
KEY_RESTART: int
|
||||
KEY_RESUME: int
|
||||
KEY_RIGHT: int
|
||||
KEY_SAVE: int
|
||||
KEY_SBEG: int
|
||||
KEY_SCANCEL: int
|
||||
KEY_SCOMMAND: int
|
||||
KEY_SCOPY: int
|
||||
KEY_SCREATE: int
|
||||
KEY_SDC: int
|
||||
KEY_SDL: int
|
||||
KEY_SELECT: int
|
||||
KEY_SEND: int
|
||||
KEY_SEOL: int
|
||||
KEY_SEXIT: int
|
||||
KEY_SF: int
|
||||
KEY_SFIND: int
|
||||
KEY_SHELP: int
|
||||
KEY_SHOME: int
|
||||
KEY_SIC: int
|
||||
KEY_SLEFT: int
|
||||
KEY_SMESSAGE: int
|
||||
KEY_SMOVE: int
|
||||
KEY_SNEXT: int
|
||||
KEY_SOPTIONS: int
|
||||
KEY_SPREVIOUS: int
|
||||
KEY_SPRINT: int
|
||||
KEY_SR: int
|
||||
KEY_SREDO: int
|
||||
KEY_SREPLACE: int
|
||||
KEY_SRESET: int
|
||||
KEY_SRIGHT: int
|
||||
KEY_SRSUME: int
|
||||
KEY_SSAVE: int
|
||||
KEY_SSUSPEND: int
|
||||
KEY_STAB: int
|
||||
KEY_SUNDO: int
|
||||
KEY_SUSPEND: int
|
||||
KEY_UNDO: int
|
||||
KEY_UP: int
|
||||
OK: int
|
||||
REPORT_MOUSE_POSITION: int
|
||||
_C_API: Any
|
||||
version: bytes
|
||||
|
||||
def baudrate() -> int: ...
|
||||
def beep() -> None: ...
|
||||
@@ -293,7 +293,7 @@ def use_env(flag: bool) -> None: ...
|
||||
class error(Exception): ...
|
||||
|
||||
class _CursesWindow:
|
||||
encoding = ... # type: str
|
||||
encoding: str
|
||||
@overload
|
||||
def addch(self, ch: _chtype, attr: int = ...) -> None: ...
|
||||
@overload
|
||||
|
||||
@@ -18,22 +18,22 @@ class ModuleSpec:
|
||||
def __init__(self, name: str, loader: Optional[Loader], *,
|
||||
origin: Optional[str] = ..., loader_state: Any = ...,
|
||||
is_package: Optional[bool] = ...) -> None: ...
|
||||
name = ... # type: str
|
||||
loader = ... # type: Optional[_Loader]
|
||||
origin = ... # type: Optional[str]
|
||||
submodule_search_locations = ... # type: Optional[List[str]]
|
||||
loader_state = ... # type: Any
|
||||
cached = ... # type: Optional[str]
|
||||
parent = ... # type: Optional[str]
|
||||
has_location = ... # type: bool
|
||||
name: str
|
||||
loader: Optional[_Loader]
|
||||
origin: Optional[str]
|
||||
submodule_search_locations: Optional[List[str]]
|
||||
loader_state: Any
|
||||
cached: Optional[str]
|
||||
parent: Optional[str]
|
||||
has_location: bool
|
||||
|
||||
class ModuleType:
|
||||
__name__ = ... # type: str
|
||||
__file__ = ... # type: str
|
||||
__dict__ = ... # type: Dict[str, Any]
|
||||
__loader__ = ... # type: Optional[_Loader]
|
||||
__package__ = ... # type: Optional[str]
|
||||
__spec__ = ... # type: Optional[ModuleSpec]
|
||||
__name__: str
|
||||
__file__: str
|
||||
__dict__: Dict[str, Any]
|
||||
__loader__: Optional[_Loader]
|
||||
__package__: Optional[str]
|
||||
__spec__: Optional[ModuleSpec]
|
||||
def __init__(self, name: str, doc: Optional[str] = ...) -> None: ...
|
||||
|
||||
class Loader(metaclass=ABCMeta):
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
from typing import Any, Tuple
|
||||
|
||||
class make_encoder:
|
||||
sort_keys = ... # type: Any
|
||||
skipkeys = ... # type: Any
|
||||
key_separator = ... # type: Any
|
||||
indent = ... # type: Any
|
||||
markers = ... # type: Any
|
||||
default = ... # type: Any
|
||||
encoder = ... # type: Any
|
||||
item_separator = ... # type: Any
|
||||
sort_keys: Any
|
||||
skipkeys: Any
|
||||
key_separator: Any
|
||||
indent: Any
|
||||
markers: Any
|
||||
default: Any
|
||||
encoder: Any
|
||||
item_separator: Any
|
||||
def __init__(self, markers, default, encoder, indent, key_separator,
|
||||
item_separator, sort_keys, skipkeys, allow_nan) -> None: ...
|
||||
def __call__(self, *args, **kwargs) -> Any: ...
|
||||
|
||||
class make_scanner:
|
||||
object_hook = ... # type: Any
|
||||
object_pairs_hook = ... # type: Any
|
||||
parse_int = ... # type: Any
|
||||
parse_constant = ... # type: Any
|
||||
parse_float = ... # type: Any
|
||||
strict = ... # type: bool
|
||||
object_hook: Any
|
||||
object_pairs_hook: Any
|
||||
parse_int: Any
|
||||
parse_constant: Any
|
||||
parse_float: Any
|
||||
strict: bool
|
||||
# TODO: 'context' needs the attrs above (ducktype), but not __call__.
|
||||
def __init__(self, context: make_scanner) -> None: ...
|
||||
def __call__(self, string: str, index: int) -> Tuple[Any, int]: ...
|
||||
|
||||
@@ -1,56 +1,56 @@
|
||||
"""Stub file for the '_stat' module."""
|
||||
|
||||
SF_APPEND = ... # type: int
|
||||
SF_ARCHIVED = ... # type: int
|
||||
SF_IMMUTABLE = ... # type: int
|
||||
SF_NOUNLINK = ... # type: int
|
||||
SF_SNAPSHOT = ... # type: int
|
||||
ST_ATIME = ... # type: int
|
||||
ST_CTIME = ... # type: int
|
||||
ST_DEV = ... # type: int
|
||||
ST_GID = ... # type: int
|
||||
ST_INO = ... # type: int
|
||||
ST_MODE = ... # type: int
|
||||
ST_MTIME = ... # type: int
|
||||
ST_NLINK = ... # type: int
|
||||
ST_SIZE = ... # type: int
|
||||
ST_UID = ... # type: int
|
||||
S_ENFMT = ... # type: int
|
||||
S_IEXEC = ... # type: int
|
||||
S_IFBLK = ... # type: int
|
||||
S_IFCHR = ... # type: int
|
||||
S_IFDIR = ... # type: int
|
||||
S_IFDOOR = ... # type: int
|
||||
S_IFIFO = ... # type: int
|
||||
S_IFLNK = ... # type: int
|
||||
S_IFPORT = ... # type: int
|
||||
S_IFREG = ... # type: int
|
||||
S_IFSOCK = ... # type: int
|
||||
S_IFWHT = ... # type: int
|
||||
S_IREAD = ... # type: int
|
||||
S_IRGRP = ... # type: int
|
||||
S_IROTH = ... # type: int
|
||||
S_IRUSR = ... # type: int
|
||||
S_IRWXG = ... # type: int
|
||||
S_IRWXO = ... # type: int
|
||||
S_IRWXU = ... # type: int
|
||||
S_ISGID = ... # type: int
|
||||
S_ISUID = ... # type: int
|
||||
S_ISVTX = ... # type: int
|
||||
S_IWGRP = ... # type: int
|
||||
S_IWOTH = ... # type: int
|
||||
S_IWRITE = ... # type: int
|
||||
S_IWUSR = ... # type: int
|
||||
S_IXGRP = ... # type: int
|
||||
S_IXOTH = ... # type: int
|
||||
S_IXUSR = ... # type: int
|
||||
UF_APPEND = ... # type: int
|
||||
UF_COMPRESSED = ... # type: int
|
||||
UF_HIDDEN = ... # type: int
|
||||
UF_IMMUTABLE = ... # type: int
|
||||
UF_NODUMP = ... # type: int
|
||||
UF_NOUNLINK = ... # type: int
|
||||
UF_OPAQUE = ... # type: int
|
||||
SF_APPEND: int
|
||||
SF_ARCHIVED: int
|
||||
SF_IMMUTABLE: int
|
||||
SF_NOUNLINK: int
|
||||
SF_SNAPSHOT: int
|
||||
ST_ATIME: int
|
||||
ST_CTIME: int
|
||||
ST_DEV: int
|
||||
ST_GID: int
|
||||
ST_INO: int
|
||||
ST_MODE: int
|
||||
ST_MTIME: int
|
||||
ST_NLINK: int
|
||||
ST_SIZE: int
|
||||
ST_UID: int
|
||||
S_ENFMT: int
|
||||
S_IEXEC: int
|
||||
S_IFBLK: int
|
||||
S_IFCHR: int
|
||||
S_IFDIR: int
|
||||
S_IFDOOR: int
|
||||
S_IFIFO: int
|
||||
S_IFLNK: int
|
||||
S_IFPORT: int
|
||||
S_IFREG: int
|
||||
S_IFSOCK: int
|
||||
S_IFWHT: int
|
||||
S_IREAD: int
|
||||
S_IRGRP: int
|
||||
S_IROTH: int
|
||||
S_IRUSR: int
|
||||
S_IRWXG: int
|
||||
S_IRWXO: int
|
||||
S_IRWXU: int
|
||||
S_ISGID: int
|
||||
S_ISUID: int
|
||||
S_ISVTX: int
|
||||
S_IWGRP: int
|
||||
S_IWOTH: int
|
||||
S_IWRITE: int
|
||||
S_IWUSR: int
|
||||
S_IXGRP: int
|
||||
S_IXOTH: int
|
||||
S_IXUSR: int
|
||||
UF_APPEND: int
|
||||
UF_COMPRESSED: int
|
||||
UF_HIDDEN: int
|
||||
UF_IMMUTABLE: int
|
||||
UF_NODUMP: int
|
||||
UF_NOUNLINK: int
|
||||
UF_OPAQUE: int
|
||||
|
||||
def S_IMODE(mode: int) -> int: ...
|
||||
def S_IFMT(mode: int) -> int: ...
|
||||
|
||||
@@ -7,7 +7,7 @@ error = RuntimeError
|
||||
|
||||
def _count() -> int: ...
|
||||
|
||||
_dangling = ... # type: Any
|
||||
_dangling: Any
|
||||
|
||||
class LockType:
|
||||
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from typing import Any, List, Optional, Type
|
||||
|
||||
_defaultaction = ... # type: str
|
||||
_onceregistry = ... # type: dict
|
||||
filters = ... # type: List[tuple]
|
||||
_defaultaction: str
|
||||
_onceregistry: dict
|
||||
filters: List[tuple]
|
||||
|
||||
def warn(message: Warning, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...
|
||||
def warn_explicit(message: Warning, category: Optional[Type[Warning]],
|
||||
|
||||
@@ -114,10 +114,10 @@ if sys.version_info >= (3, 7):
|
||||
# TODO: It should be possible to instantiate these classes, but mypy
|
||||
# currently disallows this.
|
||||
# See https://github.com/python/mypy/issues/1843
|
||||
SelectorEventLoop = ... # type: Type[AbstractEventLoop]
|
||||
SelectorEventLoop: Type[AbstractEventLoop]
|
||||
if sys.platform == 'win32':
|
||||
ProactorEventLoop = ... # type: Type[AbstractEventLoop]
|
||||
DefaultEventLoopPolicy = ... # type: Type[AbstractEventLoopPolicy]
|
||||
ProactorEventLoop: Type[AbstractEventLoop]
|
||||
DefaultEventLoopPolicy: Type[AbstractEventLoopPolicy]
|
||||
|
||||
# TODO: AbstractChildWatcher (UNIX only)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ _TransProtPair = Tuple[BaseTransport, BaseProtocol]
|
||||
|
||||
class Handle:
|
||||
_cancelled = False
|
||||
_args = ... # type: List[Any]
|
||||
_args: List[Any]
|
||||
def __init__(self, callback: Callable[..., Any], args: List[Any], loop: AbstractEventLoop) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def cancel(self) -> None: ...
|
||||
|
||||
@@ -16,8 +16,8 @@ _S = TypeVar('_S', bound=Future)
|
||||
class InvalidStateError(Error): ...
|
||||
|
||||
class _TracebackLogger:
|
||||
exc = ... # type: BaseException
|
||||
tb = ... # type: List[str]
|
||||
exc: BaseException
|
||||
tb: List[str]
|
||||
def __init__(self, exc: Any, loop: AbstractEventLoop) -> None: ...
|
||||
def activate(self) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
@@ -27,11 +27,11 @@ if sys.version_info >= (3, 5):
|
||||
def isfuture(obj: object) -> bool: ...
|
||||
|
||||
class Future(Awaitable[_T], Iterable[_T]):
|
||||
_state = ... # type: str
|
||||
_exception = ... # type: BaseException
|
||||
_state: str
|
||||
_exception: BaseException
|
||||
_blocking = False
|
||||
_log_traceback = False
|
||||
_tb_logger = ... # type: Type[_TracebackLogger]
|
||||
_tb_logger: Type[_TracebackLogger]
|
||||
def __init__(self, *, loop: AbstractEventLoop = ...) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __del__(self) -> None: ...
|
||||
|
||||
@@ -12,12 +12,12 @@ _ClientConnectedCallback = Callable[[StreamReader, StreamWriter], Optional[Await
|
||||
__all__: List[str]
|
||||
|
||||
class IncompleteReadError(EOFError):
|
||||
expected = ... # type: Optional[int]
|
||||
partial = ... # type: bytes
|
||||
expected: Optional[int]
|
||||
partial: bytes
|
||||
def __init__(self, partial: bytes, expected: Optional[int]) -> None: ...
|
||||
|
||||
class LimitOverrunError(Exception):
|
||||
consumed = ... # type: int
|
||||
consumed: int
|
||||
def __init__(self, message: str, consumed: int) -> None: ...
|
||||
|
||||
@coroutines.coroutine
|
||||
|
||||
@@ -7,15 +7,15 @@ from typing import Any, Generator, List, Optional, Text, Tuple, Union, IO
|
||||
|
||||
__all__: List[str]
|
||||
|
||||
PIPE = ... # type: int
|
||||
STDOUT = ... # type: int
|
||||
DEVNULL = ... # type: int
|
||||
PIPE: int
|
||||
STDOUT: int
|
||||
DEVNULL: int
|
||||
|
||||
class SubprocessStreamProtocol(streams.FlowControlMixin,
|
||||
protocols.SubprocessProtocol):
|
||||
stdin = ... # type: Optional[streams.StreamWriter]
|
||||
stdout = ... # type: Optional[streams.StreamReader]
|
||||
stderr = ... # type: Optional[streams.StreamReader]
|
||||
stdin: Optional[streams.StreamWriter]
|
||||
stdout: Optional[streams.StreamReader]
|
||||
stderr: Optional[streams.StreamReader]
|
||||
def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...
|
||||
def connection_made(self, transport: transports.BaseTransport) -> None: ...
|
||||
def pipe_data_received(self, fd: int, data: Union[bytes, Text]) -> None: ...
|
||||
@@ -24,10 +24,10 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
||||
|
||||
|
||||
class Process:
|
||||
stdin = ... # type: Optional[streams.StreamWriter]
|
||||
stdout = ... # type: Optional[streams.StreamReader]
|
||||
stderr = ... # type: Optional[streams.StreamReader]
|
||||
pid = ... # type: int
|
||||
stdin: Optional[streams.StreamWriter]
|
||||
stdout: Optional[streams.StreamReader]
|
||||
stderr: Optional[streams.StreamReader]
|
||||
pid: int
|
||||
def __init__(self,
|
||||
transport: transports.BaseTransport,
|
||||
protocol: protocols.BaseProtocol,
|
||||
|
||||
@@ -306,7 +306,7 @@ class OrderedDict(Dict[_KT, _VT], Reversible[_KT], Generic[_KT, _VT]):
|
||||
_DefaultDictT = TypeVar('_DefaultDictT', bound=defaultdict)
|
||||
|
||||
class defaultdict(Dict[_KT, _VT], Generic[_KT, _VT]):
|
||||
default_factory = ... # type: Optional[Callable[[], _VT]]
|
||||
default_factory: Optional[Callable[[], _VT]]
|
||||
|
||||
@overload
|
||||
def __init__(self, **kwargs: _VT) -> None: ...
|
||||
|
||||
@@ -2,15 +2,15 @@ from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, O
|
||||
from types import TracebackType
|
||||
import sys
|
||||
|
||||
FIRST_COMPLETED = ... # type: str
|
||||
FIRST_EXCEPTION = ... # type: str
|
||||
ALL_COMPLETED = ... # type: str
|
||||
PENDING = ... # type: Any
|
||||
RUNNING = ... # type: Any
|
||||
CANCELLED = ... # type: Any
|
||||
CANCELLED_AND_NOTIFIED = ... # type: Any
|
||||
FINISHED = ... # type: Any
|
||||
LOGGER = ... # type: Any
|
||||
FIRST_COMPLETED: str
|
||||
FIRST_EXCEPTION: str
|
||||
ALL_COMPLETED: str
|
||||
PENDING: Any
|
||||
RUNNING: Any
|
||||
CANCELLED: Any
|
||||
CANCELLED_AND_NOTIFIED: Any
|
||||
FINISHED: Any
|
||||
LOGGER: Any
|
||||
|
||||
class Error(Exception): ...
|
||||
class CancelledError(Error): ...
|
||||
|
||||
@@ -2,7 +2,7 @@ from typing import Any, Callable, Optional, Tuple
|
||||
from ._base import Future, Executor
|
||||
import sys
|
||||
|
||||
EXTRA_QUEUED_CALLS = ... # type: Any
|
||||
EXTRA_QUEUED_CALLS: Any
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class BrokenProcessPool(RuntimeError): ...
|
||||
|
||||
@@ -189,43 +189,43 @@ class NoSectionError(Error): ...
|
||||
|
||||
|
||||
class DuplicateSectionError(Error):
|
||||
section = ... # type: str
|
||||
source = ... # type: Optional[str]
|
||||
lineno = ... # type: Optional[int]
|
||||
section: str
|
||||
source: Optional[str]
|
||||
lineno: Optional[int]
|
||||
|
||||
|
||||
class DuplicateOptionError(Error):
|
||||
section = ... # type: str
|
||||
option = ... # type: str
|
||||
source = ... # type: Optional[str]
|
||||
lineno = ... # type: Optional[int]
|
||||
section: str
|
||||
option: str
|
||||
source: Optional[str]
|
||||
lineno: Optional[int]
|
||||
|
||||
|
||||
class NoOptionError(Error):
|
||||
section = ... # type: str
|
||||
option = ... # type: str
|
||||
section: str
|
||||
option: str
|
||||
|
||||
|
||||
class InterpolationError(Error):
|
||||
section = ... # type: str
|
||||
option = ... # type: str
|
||||
section: str
|
||||
option: str
|
||||
|
||||
|
||||
class InterpolationDepthError(InterpolationError): ...
|
||||
|
||||
|
||||
class InterpolationMissingOptionError(InterpolationError):
|
||||
reference = ... # type: str
|
||||
reference: str
|
||||
|
||||
|
||||
class InterpolationSyntaxError(InterpolationError): ...
|
||||
|
||||
|
||||
class ParsingError(Error):
|
||||
source = ... # type: str
|
||||
errors = ... # type: Sequence[Tuple[int, str]]
|
||||
source: str
|
||||
errors: Sequence[Tuple[int, str]]
|
||||
|
||||
|
||||
class MissingSectionHeaderError(ParsingError):
|
||||
lineno = ... # type: int
|
||||
line = ... # type: str
|
||||
lineno: int
|
||||
line: str
|
||||
|
||||
@@ -7,12 +7,12 @@ BASE64: int # undocumented
|
||||
SHORTEST: int # undocumented
|
||||
|
||||
class Charset:
|
||||
input_charset = ... # type: str
|
||||
header_encoding = ... # type: int
|
||||
body_encoding = ... # type: int
|
||||
output_charset = ... # type: Optional[str]
|
||||
input_codec = ... # type: Optional[str]
|
||||
output_codec = ... # type: Optional[str]
|
||||
input_charset: str
|
||||
header_encoding: int
|
||||
body_encoding: int
|
||||
output_charset: Optional[str]
|
||||
input_codec: Optional[str]
|
||||
output_codec: Optional[str]
|
||||
def __init__(self, input_charset: str = ...) -> None: ...
|
||||
def get_body_encoding(self) -> str: ...
|
||||
def get_output_charset(self) -> Optional[str]: ...
|
||||
|
||||
@@ -12,4 +12,4 @@ class ContentManager:
|
||||
def add_set_handler(self, typekey: type,
|
||||
handler: Callable[..., Any]) -> None: ...
|
||||
|
||||
raw_data_manager = ... # type: ContentManager
|
||||
raw_data_manager: ContentManager
|
||||
|
||||
@@ -23,7 +23,7 @@ class UnstructuredHeader:
|
||||
class UniqueUnstructuredHeader(UnstructuredHeader): ...
|
||||
|
||||
class DateHeader:
|
||||
datetime = ... # type: _datetime
|
||||
datetime: _datetime
|
||||
@classmethod
|
||||
def parse(cls, string: Union[str, _datetime],
|
||||
kwds: Dict[str, Any]) -> None: ...
|
||||
@@ -31,8 +31,8 @@ class DateHeader:
|
||||
class UniqueDateHeader(DateHeader): ...
|
||||
|
||||
class AddressHeader:
|
||||
groups = ... # type: Tuple[Group, ...]
|
||||
addresses = ... # type: Tuple[Address, ...]
|
||||
groups: Tuple[Group, ...]
|
||||
addresses: Tuple[Address, ...]
|
||||
@classmethod
|
||||
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
||||
|
||||
@@ -45,27 +45,27 @@ class SingleAddressHeader(AddressHeader):
|
||||
class UniqueSingleAddressHeader(SingleAddressHeader): ...
|
||||
|
||||
class MIMEVersionHeader:
|
||||
version = ... # type: Optional[str]
|
||||
major = ... # type: Optional[int]
|
||||
minor = ... # type: Optional[int]
|
||||
version: Optional[str]
|
||||
major: Optional[int]
|
||||
minor: Optional[int]
|
||||
@classmethod
|
||||
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
||||
|
||||
class ParameterizedMIMEHeader:
|
||||
params = ... # type: Mapping[str, Any]
|
||||
params: Mapping[str, Any]
|
||||
@classmethod
|
||||
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
||||
|
||||
class ContentTypeHeader(ParameterizedMIMEHeader):
|
||||
content_type = ... # type: str
|
||||
maintype = ... # type: str
|
||||
subtype = ... # type: str
|
||||
content_type: str
|
||||
maintype: str
|
||||
subtype: str
|
||||
|
||||
class ContentDispositionHeader(ParameterizedMIMEHeader):
|
||||
content_disposition = ... # type: str
|
||||
content_disposition: str
|
||||
|
||||
class ContentTransferEncodingHeader:
|
||||
cte = ... # type: str
|
||||
cte: str
|
||||
@classmethod
|
||||
def parse(cls, string: str, kwds: Dict[str, Any]) -> None: ...
|
||||
|
||||
@@ -78,9 +78,9 @@ class HeaderRegistry:
|
||||
def __call__(self, name: str, value: Any) -> BaseHeader: ...
|
||||
|
||||
class Address:
|
||||
display_name = ... # type: str
|
||||
username = ... # type: str
|
||||
domain = ... # type: str
|
||||
display_name: str
|
||||
username: str
|
||||
domain: str
|
||||
@property
|
||||
def addr_spec(self) -> str: ...
|
||||
def __init__(self, display_name: str = ...,
|
||||
@@ -90,8 +90,8 @@ class Address:
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
class Group:
|
||||
display_name = ... # type: Optional[str]
|
||||
addresses = ... # type: Tuple[Address, ...]
|
||||
display_name: Optional[str]
|
||||
addresses: Tuple[Address, ...]
|
||||
def __init__(self, display_name: Optional[str] = ...,
|
||||
addresses: Optional[Tuple[Address, ...]] = ...) -> None: ...
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
@@ -19,9 +19,9 @@ _ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
||||
_HeaderType = Union[str, Header]
|
||||
|
||||
class Message:
|
||||
preamble = ... # type: Optional[str]
|
||||
epilogue = ... # type: Optional[str]
|
||||
defects = ... # type: List[MessageDefect]
|
||||
preamble: Optional[str]
|
||||
epilogue: Optional[str]
|
||||
defects: List[MessageDefect]
|
||||
def __str__(self) -> str: ...
|
||||
def is_multipart(self) -> bool: ...
|
||||
def set_unixfrom(self, unixfrom: str) -> None: ...
|
||||
|
||||
@@ -9,12 +9,12 @@ from email.header import Header
|
||||
from email.contentmanager import ContentManager
|
||||
|
||||
class Policy:
|
||||
max_line_length = ... # type: Optional[int]
|
||||
linesep = ... # type: str
|
||||
cte_type = ... # type: str
|
||||
raise_on_defect = ... # type: bool
|
||||
max_line_length: Optional[int]
|
||||
linesep: str
|
||||
cte_type: str
|
||||
raise_on_defect: bool
|
||||
if sys.version_info >= (3, 5):
|
||||
mange_from = ... # type: bool
|
||||
mange_from: bool
|
||||
def __init__(self, **kw: Any) -> None: ...
|
||||
def clone(self, **kw: Any) -> Policy: ...
|
||||
def handle_defect(self, obj: Message,
|
||||
@@ -43,13 +43,13 @@ class Compat32(Policy):
|
||||
def fold(self, name: str, value: str) -> str: ...
|
||||
def fold_binary(self, name: str, value: str) -> bytes: ...
|
||||
|
||||
compat32 = ... # type: Compat32
|
||||
compat32: Compat32
|
||||
|
||||
class EmailPolicy(Policy):
|
||||
utf8 = ... # type: bool
|
||||
refold_source = ... # type: str
|
||||
header_factory = ... # type: Callable[[str, str], str]
|
||||
content_manager = ... # type: ContentManager
|
||||
utf8: bool
|
||||
refold_source: str
|
||||
header_factory: Callable[[str, str], str]
|
||||
content_manager: ContentManager
|
||||
def header_source_parse(self, sourcelines: List[str]) -> str: ...
|
||||
def header_store_parse(self, name: str,
|
||||
value: str) -> Tuple[str, str]: ...
|
||||
@@ -57,8 +57,8 @@ class EmailPolicy(Policy):
|
||||
def fold(self, name: str, value: str) -> str: ...
|
||||
def fold_binary(self, name: str, value: str) -> bytes: ...
|
||||
|
||||
default = ... # type: EmailPolicy
|
||||
SMTP = ... # type: EmailPolicy
|
||||
SMTPUTF8 = ... # type: EmailPolicy
|
||||
HTTP = ... # type: EmailPolicy
|
||||
strict = ... # type: EmailPolicy
|
||||
default: EmailPolicy
|
||||
SMTP: EmailPolicy
|
||||
SMTPUTF8: EmailPolicy
|
||||
HTTP: EmailPolicy
|
||||
strict: EmailPolicy
|
||||
|
||||
@@ -2,78 +2,78 @@
|
||||
from io import IOBase
|
||||
from typing import Any, IO, Union
|
||||
|
||||
FASYNC = ... # type: int
|
||||
FD_CLOEXEC = ... # type: int
|
||||
DN_ACCESS = ... # type: int
|
||||
DN_ATTRIB = ... # type: int
|
||||
DN_CREATE = ... # type: int
|
||||
DN_DELETE = ... # type: int
|
||||
DN_MODIFY = ... # type: int
|
||||
DN_MULTISHOT = ... # type: int
|
||||
DN_RENAME = ... # type: int
|
||||
F_DUPFD = ... # type: int
|
||||
F_DUPFD_CLOEXEC = ... # type: int
|
||||
F_FULLFSYNC = ... # type: int
|
||||
F_EXLCK = ... # type: int
|
||||
F_GETFD = ... # type: int
|
||||
F_GETFL = ... # type: int
|
||||
F_GETLEASE = ... # type: int
|
||||
F_GETLK = ... # type: int
|
||||
F_GETLK64 = ... # type: int
|
||||
F_GETOWN = ... # type: int
|
||||
F_NOCACHE = ... # type: int
|
||||
F_GETSIG = ... # type: int
|
||||
F_NOTIFY = ... # type: int
|
||||
F_RDLCK = ... # type: int
|
||||
F_SETFD = ... # type: int
|
||||
F_SETFL = ... # type: int
|
||||
F_SETLEASE = ... # type: int
|
||||
F_SETLK = ... # type: int
|
||||
F_SETLK64 = ... # type: int
|
||||
F_SETLKW = ... # type: int
|
||||
F_SETLKW64 = ... # type: int
|
||||
F_SETOWN = ... # type: int
|
||||
F_SETSIG = ... # type: int
|
||||
F_SHLCK = ... # type: int
|
||||
F_UNLCK = ... # type: int
|
||||
F_WRLCK = ... # type: int
|
||||
I_ATMARK = ... # type: int
|
||||
I_CANPUT = ... # type: int
|
||||
I_CKBAND = ... # type: int
|
||||
I_FDINSERT = ... # type: int
|
||||
I_FIND = ... # type: int
|
||||
I_FLUSH = ... # type: int
|
||||
I_FLUSHBAND = ... # type: int
|
||||
I_GETBAND = ... # type: int
|
||||
I_GETCLTIME = ... # type: int
|
||||
I_GETSIG = ... # type: int
|
||||
I_GRDOPT = ... # type: int
|
||||
I_GWROPT = ... # type: int
|
||||
I_LINK = ... # type: int
|
||||
I_LIST = ... # type: int
|
||||
I_LOOK = ... # type: int
|
||||
I_NREAD = ... # type: int
|
||||
I_PEEK = ... # type: int
|
||||
I_PLINK = ... # type: int
|
||||
I_POP = ... # type: int
|
||||
I_PUNLINK = ... # type: int
|
||||
I_PUSH = ... # type: int
|
||||
I_RECVFD = ... # type: int
|
||||
I_SENDFD = ... # type: int
|
||||
I_SETCLTIME = ... # type: int
|
||||
I_SETSIG = ... # type: int
|
||||
I_SRDOPT = ... # type: int
|
||||
I_STR = ... # type: int
|
||||
I_SWROPT = ... # type: int
|
||||
I_UNLINK = ... # type: int
|
||||
LOCK_EX = ... # type: int
|
||||
LOCK_MAND = ... # type: int
|
||||
LOCK_NB = ... # type: int
|
||||
LOCK_READ = ... # type: int
|
||||
LOCK_RW = ... # type: int
|
||||
LOCK_SH = ... # type: int
|
||||
LOCK_UN = ... # type: int
|
||||
LOCK_WRITE = ... # type: int
|
||||
FASYNC: int
|
||||
FD_CLOEXEC: int
|
||||
DN_ACCESS: int
|
||||
DN_ATTRIB: int
|
||||
DN_CREATE: int
|
||||
DN_DELETE: int
|
||||
DN_MODIFY: int
|
||||
DN_MULTISHOT: int
|
||||
DN_RENAME: int
|
||||
F_DUPFD: int
|
||||
F_DUPFD_CLOEXEC: int
|
||||
F_FULLFSYNC: int
|
||||
F_EXLCK: int
|
||||
F_GETFD: int
|
||||
F_GETFL: int
|
||||
F_GETLEASE: int
|
||||
F_GETLK: int
|
||||
F_GETLK64: int
|
||||
F_GETOWN: int
|
||||
F_NOCACHE: int
|
||||
F_GETSIG: int
|
||||
F_NOTIFY: int
|
||||
F_RDLCK: int
|
||||
F_SETFD: int
|
||||
F_SETFL: int
|
||||
F_SETLEASE: int
|
||||
F_SETLK: int
|
||||
F_SETLK64: int
|
||||
F_SETLKW: int
|
||||
F_SETLKW64: int
|
||||
F_SETOWN: int
|
||||
F_SETSIG: int
|
||||
F_SHLCK: int
|
||||
F_UNLCK: int
|
||||
F_WRLCK: int
|
||||
I_ATMARK: int
|
||||
I_CANPUT: int
|
||||
I_CKBAND: int
|
||||
I_FDINSERT: int
|
||||
I_FIND: int
|
||||
I_FLUSH: int
|
||||
I_FLUSHBAND: int
|
||||
I_GETBAND: int
|
||||
I_GETCLTIME: int
|
||||
I_GETSIG: int
|
||||
I_GRDOPT: int
|
||||
I_GWROPT: int
|
||||
I_LINK: int
|
||||
I_LIST: int
|
||||
I_LOOK: int
|
||||
I_NREAD: int
|
||||
I_PEEK: int
|
||||
I_PLINK: int
|
||||
I_POP: int
|
||||
I_PUNLINK: int
|
||||
I_PUSH: int
|
||||
I_RECVFD: int
|
||||
I_SENDFD: int
|
||||
I_SETCLTIME: int
|
||||
I_SETSIG: int
|
||||
I_SRDOPT: int
|
||||
I_STR: int
|
||||
I_SWROPT: int
|
||||
I_UNLINK: int
|
||||
LOCK_EX: int
|
||||
LOCK_MAND: int
|
||||
LOCK_NB: int
|
||||
LOCK_READ: int
|
||||
LOCK_RW: int
|
||||
LOCK_SH: int
|
||||
LOCK_UN: int
|
||||
LOCK_WRITE: int
|
||||
|
||||
_AnyFile = Union[int, IO[Any], IOBase]
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class _CacheInfo(NamedTuple('CacheInfo', [
|
||||
])): ...
|
||||
|
||||
class _lru_cache_wrapper(Generic[_T]):
|
||||
__wrapped__ = ... # type: Callable[..., _T]
|
||||
__wrapped__: Callable[..., _T]
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
||||
def cache_info(self) -> _CacheInfo: ...
|
||||
def cache_clear(self) -> None: ...
|
||||
@@ -31,8 +31,8 @@ class lru_cache():
|
||||
def __call__(self, f: Callable[..., _T]) -> _lru_cache_wrapper[_T]: ...
|
||||
|
||||
|
||||
WRAPPER_ASSIGNMENTS = ... # type: Sequence[str]
|
||||
WRAPPER_UPDATES = ... # type: Sequence[str]
|
||||
WRAPPER_ASSIGNMENTS: Sequence[str]
|
||||
WRAPPER_UPDATES: Sequence[str]
|
||||
|
||||
def update_wrapper(wrapper: _AnyCallable, wrapped: _AnyCallable, assigned: Sequence[str] = ...,
|
||||
updated: Sequence[str] = ...) -> _AnyCallable: ...
|
||||
@@ -41,9 +41,9 @@ def total_ordering(cls: type) -> type: ...
|
||||
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], Any]: ...
|
||||
|
||||
class partial(Generic[_T]):
|
||||
func = ... # type: Callable[..., _T]
|
||||
args = ... # type: Tuple[Any, ...]
|
||||
keywords = ... # type: Dict[str, Any]
|
||||
func: Callable[..., _T]
|
||||
args: Tuple[Any, ...]
|
||||
keywords: Dict[str, Any]
|
||||
def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
|
||||
|
||||
@@ -64,7 +64,7 @@ class partialmethod(Generic[_T]):
|
||||
def __isabstractmethod__(self) -> bool: ...
|
||||
|
||||
class _SingleDispatchCallable(Generic[_T]):
|
||||
registry = ... # type: Mapping[Any, Callable[..., _T]]
|
||||
registry: Mapping[Any, Callable[..., _T]]
|
||||
def dispatch(self, cls: Any) -> Callable[..., _T]: ...
|
||||
@overload
|
||||
def register(self, cls: Any) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
from typing import Any, Dict, List, Tuple
|
||||
|
||||
|
||||
DEBUG_COLLECTABLE = ... # type: int
|
||||
DEBUG_LEAK = ... # type: int
|
||||
DEBUG_SAVEALL = ... # type: int
|
||||
DEBUG_STATS = ... # type: int
|
||||
DEBUG_UNCOLLECTABLE = ... # type: int
|
||||
callbacks = ... # type: List[Any]
|
||||
garbage = ... # type: List[Any]
|
||||
DEBUG_COLLECTABLE: int
|
||||
DEBUG_LEAK: int
|
||||
DEBUG_SAVEALL: int
|
||||
DEBUG_STATS: int
|
||||
DEBUG_UNCOLLECTABLE: int
|
||||
callbacks: List[Any]
|
||||
garbage: List[Any]
|
||||
|
||||
def collect(generations: int = ...) -> int: ...
|
||||
def disable() -> None: ...
|
||||
|
||||
@@ -8,7 +8,7 @@ def getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[
|
||||
def gnu_getopt(args: List[str], shortopts: str, longopts: List[str] = ...) -> Tuple[List[Tuple[str, str]], List[str]]: ...
|
||||
|
||||
class GetoptError(Exception):
|
||||
msg = ... # type: str
|
||||
opt = ... # type: str
|
||||
msg: str
|
||||
opt: str
|
||||
|
||||
error = GetoptError
|
||||
|
||||
@@ -16,8 +16,8 @@ class NullTranslations:
|
||||
def install(self, names: List[str] = ...) -> None: ...
|
||||
|
||||
class GNUTranslations(NullTranslations):
|
||||
LE_MAGIC = ... # type: int
|
||||
BE_MAGIC = ... # type: int
|
||||
LE_MAGIC: int
|
||||
BE_MAGIC: int
|
||||
|
||||
def find(domain: str, localedir: str = ..., languages: List[str] = ...,
|
||||
all: bool = ...): ...
|
||||
|
||||
@@ -6,13 +6,13 @@ from typing import AbstractSet, Optional, Union
|
||||
_DataType = Union[bytes, bytearray, memoryview]
|
||||
|
||||
class _Hash(object):
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
digest_size: int
|
||||
block_size: int
|
||||
|
||||
# [Python documentation note] Changed in version 3.4: The name attribute has
|
||||
# been present in CPython since its inception, but until Python 3.4 was not
|
||||
# formally specified, so may not exist on some platforms
|
||||
name = ... # type: str
|
||||
name: str
|
||||
|
||||
def __init__(self, data: _DataType = ...) -> None: ...
|
||||
|
||||
@@ -30,16 +30,16 @@ def sha512(arg: _DataType = ...) -> _Hash: ...
|
||||
|
||||
def new(name: str, data: _DataType = ...) -> _Hash: ...
|
||||
|
||||
algorithms_guaranteed = ... # type: AbstractSet[str]
|
||||
algorithms_available = ... # type: AbstractSet[str]
|
||||
algorithms_guaranteed: AbstractSet[str]
|
||||
algorithms_available: AbstractSet[str]
|
||||
|
||||
def pbkdf2_hmac(hash_name: str, password: _DataType, salt: _DataType, iterations: int, dklen: Optional[int] = ...) -> bytes: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
class _VarLenHash(object):
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
name = ... # type: str
|
||||
digest_size: int
|
||||
block_size: int
|
||||
name: str
|
||||
|
||||
def __init__(self, data: _DataType = ...) -> None: ...
|
||||
|
||||
@@ -58,10 +58,10 @@ if sys.version_info >= (3, 6):
|
||||
def scrypt(password: _DataType, *, salt: _DataType, n: int, r: int, p: int, maxmem: int = ..., dklen: int = ...) -> bytes: ...
|
||||
|
||||
class _BlakeHash(_Hash):
|
||||
MAX_DIGEST_SIZE = ... # type: int
|
||||
MAX_KEY_SIZE = ... # type: int
|
||||
PERSON_SIZE = ... # type: int
|
||||
SALT_SIZE = ... # type: int
|
||||
MAX_DIGEST_SIZE: int
|
||||
MAX_KEY_SIZE: int
|
||||
PERSON_SIZE: int
|
||||
SALT_SIZE: int
|
||||
|
||||
def __init__(self, data: _DataType = ..., digest_size: int = ..., key: _DataType = ..., salt: _DataType = ..., person: _DataType = ..., fanout: int = ..., depth: int = ..., leaf_size: int = ..., node_offset: int = ..., node_depth: int = ..., inner_size: int = ..., last_node: bool = ...) -> None: ...
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
name2codepoint = ... # type: Any
|
||||
html5 = ... # type: Any
|
||||
codepoint2name = ... # type: Any
|
||||
entitydefs = ... # type: Any
|
||||
name2codepoint: Any
|
||||
html5: Any
|
||||
codepoint2name: Any
|
||||
entitydefs: Any
|
||||
|
||||
@@ -7,8 +7,8 @@ if sys.version_info >= (3, 5):
|
||||
|
||||
def __init__(self, *a) -> None: ...
|
||||
|
||||
phrase = ... # type: str
|
||||
description = ... # type: str
|
||||
phrase: str
|
||||
description: str
|
||||
|
||||
CONTINUE = ...
|
||||
SWITCHING_PROTOCOLS = ...
|
||||
|
||||
@@ -15,81 +15,81 @@ import types
|
||||
_DataType = Union[bytes, IO[Any], Iterable[bytes], str]
|
||||
_T = TypeVar('_T')
|
||||
|
||||
HTTP_PORT = ... # type: int
|
||||
HTTPS_PORT = ... # type: int
|
||||
HTTP_PORT: int
|
||||
HTTPS_PORT: int
|
||||
|
||||
CONTINUE = ... # type: int
|
||||
SWITCHING_PROTOCOLS = ... # type: int
|
||||
PROCESSING = ... # type: int
|
||||
CONTINUE: int
|
||||
SWITCHING_PROTOCOLS: int
|
||||
PROCESSING: int
|
||||
|
||||
OK = ... # type: int
|
||||
CREATED = ... # type: int
|
||||
ACCEPTED = ... # type: int
|
||||
NON_AUTHORITATIVE_INFORMATION = ... # type: int
|
||||
NO_CONTENT = ... # type: int
|
||||
RESET_CONTENT = ... # type: int
|
||||
PARTIAL_CONTENT = ... # type: int
|
||||
MULTI_STATUS = ... # type: int
|
||||
IM_USED = ... # type: int
|
||||
OK: int
|
||||
CREATED: int
|
||||
ACCEPTED: int
|
||||
NON_AUTHORITATIVE_INFORMATION: int
|
||||
NO_CONTENT: int
|
||||
RESET_CONTENT: int
|
||||
PARTIAL_CONTENT: int
|
||||
MULTI_STATUS: int
|
||||
IM_USED: int
|
||||
|
||||
MULTIPLE_CHOICES = ... # type: int
|
||||
MOVED_PERMANENTLY = ... # type: int
|
||||
FOUND = ... # type: int
|
||||
SEE_OTHER = ... # type: int
|
||||
NOT_MODIFIED = ... # type: int
|
||||
USE_PROXY = ... # type: int
|
||||
TEMPORARY_REDIRECT = ... # type: int
|
||||
MULTIPLE_CHOICES: int
|
||||
MOVED_PERMANENTLY: int
|
||||
FOUND: int
|
||||
SEE_OTHER: int
|
||||
NOT_MODIFIED: int
|
||||
USE_PROXY: int
|
||||
TEMPORARY_REDIRECT: int
|
||||
|
||||
BAD_REQUEST = ... # type: int
|
||||
UNAUTHORIZED = ... # type: int
|
||||
PAYMENT_REQUIRED = ... # type: int
|
||||
FORBIDDEN = ... # type: int
|
||||
NOT_FOUND = ... # type: int
|
||||
METHOD_NOT_ALLOWED = ... # type: int
|
||||
NOT_ACCEPTABLE = ... # type: int
|
||||
PROXY_AUTHENTICATION_REQUIRED = ... # type: int
|
||||
REQUEST_TIMEOUT = ... # type: int
|
||||
CONFLICT = ... # type: int
|
||||
GONE = ... # type: int
|
||||
LENGTH_REQUIRED = ... # type: int
|
||||
PRECONDITION_FAILED = ... # type: int
|
||||
REQUEST_ENTITY_TOO_LARGE = ... # type: int
|
||||
REQUEST_URI_TOO_LONG = ... # type: int
|
||||
UNSUPPORTED_MEDIA_TYPE = ... # type: int
|
||||
REQUESTED_RANGE_NOT_SATISFIABLE = ... # type: int
|
||||
EXPECTATION_FAILED = ... # type: int
|
||||
UNPROCESSABLE_ENTITY = ... # type: int
|
||||
LOCKED = ... # type: int
|
||||
FAILED_DEPENDENCY = ... # type: int
|
||||
UPGRADE_REQUIRED = ... # type: int
|
||||
PRECONDITION_REQUIRED = ... # type: int
|
||||
TOO_MANY_REQUESTS = ... # type: int
|
||||
REQUEST_HEADER_FIELDS_TOO_LARGE = ... # type: int
|
||||
BAD_REQUEST: int
|
||||
UNAUTHORIZED: int
|
||||
PAYMENT_REQUIRED: int
|
||||
FORBIDDEN: int
|
||||
NOT_FOUND: int
|
||||
METHOD_NOT_ALLOWED: int
|
||||
NOT_ACCEPTABLE: int
|
||||
PROXY_AUTHENTICATION_REQUIRED: int
|
||||
REQUEST_TIMEOUT: int
|
||||
CONFLICT: int
|
||||
GONE: int
|
||||
LENGTH_REQUIRED: int
|
||||
PRECONDITION_FAILED: int
|
||||
REQUEST_ENTITY_TOO_LARGE: int
|
||||
REQUEST_URI_TOO_LONG: int
|
||||
UNSUPPORTED_MEDIA_TYPE: int
|
||||
REQUESTED_RANGE_NOT_SATISFIABLE: int
|
||||
EXPECTATION_FAILED: int
|
||||
UNPROCESSABLE_ENTITY: int
|
||||
LOCKED: int
|
||||
FAILED_DEPENDENCY: int
|
||||
UPGRADE_REQUIRED: int
|
||||
PRECONDITION_REQUIRED: int
|
||||
TOO_MANY_REQUESTS: int
|
||||
REQUEST_HEADER_FIELDS_TOO_LARGE: int
|
||||
|
||||
INTERNAL_SERVER_ERROR = ... # type: int
|
||||
NOT_IMPLEMENTED = ... # type: int
|
||||
BAD_GATEWAY = ... # type: int
|
||||
SERVICE_UNAVAILABLE = ... # type: int
|
||||
GATEWAY_TIMEOUT = ... # type: int
|
||||
HTTP_VERSION_NOT_SUPPORTED = ... # type: int
|
||||
INSUFFICIENT_STORAGE = ... # type: int
|
||||
NOT_EXTENDED = ... # type: int
|
||||
NETWORK_AUTHENTICATION_REQUIRED = ... # type: int
|
||||
INTERNAL_SERVER_ERROR: int
|
||||
NOT_IMPLEMENTED: int
|
||||
BAD_GATEWAY: int
|
||||
SERVICE_UNAVAILABLE: int
|
||||
GATEWAY_TIMEOUT: int
|
||||
HTTP_VERSION_NOT_SUPPORTED: int
|
||||
INSUFFICIENT_STORAGE: int
|
||||
NOT_EXTENDED: int
|
||||
NETWORK_AUTHENTICATION_REQUIRED: int
|
||||
|
||||
responses = ... # type: Dict[int, str]
|
||||
responses: Dict[int, str]
|
||||
|
||||
class HTTPMessage(email.message.Message): ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
# Ignore errors to work around python/mypy#5027
|
||||
class HTTPResponse(io.BufferedIOBase, BinaryIO): # type: ignore
|
||||
msg = ... # type: HTTPMessage
|
||||
headers = ... # type: HTTPMessage
|
||||
version = ... # type: int
|
||||
debuglevel = ... # type: int
|
||||
closed = ... # type: bool
|
||||
status = ... # type: int
|
||||
reason = ... # type: str
|
||||
msg: HTTPMessage
|
||||
headers: HTTPMessage
|
||||
version: int
|
||||
debuglevel: int
|
||||
closed: bool
|
||||
status: int
|
||||
reason: str
|
||||
def __init__(self, sock: socket, debuglevel: int = ...,
|
||||
method: Optional[str] = ..., url: Optional[str] = ...) -> None: ...
|
||||
def read(self, amt: Optional[int] = ...) -> bytes: ...
|
||||
@@ -111,13 +111,13 @@ if sys.version_info >= (3, 5):
|
||||
def begin(self) -> None: ...
|
||||
else:
|
||||
class HTTPResponse(io.RawIOBase, BinaryIO): # type: ignore
|
||||
msg = ... # type: HTTPMessage
|
||||
headers = ... # type: HTTPMessage
|
||||
version = ... # type: int
|
||||
debuglevel = ... # type: int
|
||||
closed = ... # type: bool
|
||||
status = ... # type: int
|
||||
reason = ... # type: str
|
||||
msg: HTTPMessage
|
||||
headers: HTTPMessage
|
||||
version: int
|
||||
debuglevel: int
|
||||
closed: bool
|
||||
status: int
|
||||
reason: str
|
||||
def read(self, amt: Optional[int] = ...) -> bytes: ...
|
||||
def readinto(self, b: bytearray) -> int: ...
|
||||
@overload
|
||||
|
||||
@@ -25,8 +25,8 @@ class CookieJar(Iterable[Cookie]):
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
class FileCookieJar(CookieJar):
|
||||
filename = ... # type: str
|
||||
delayload = ... # type: bool
|
||||
filename: str
|
||||
delayload: bool
|
||||
def __init__(self, filename: str = ..., delayload: bool = ...,
|
||||
policy: Optional[CookiePolicy] = ...) -> None: ...
|
||||
def save(self, filename: Optional[str] = ..., ignore_discard: bool = ...,
|
||||
@@ -41,9 +41,9 @@ class LWPCookieJar(FileCookieJar): ...
|
||||
|
||||
|
||||
class CookiePolicy:
|
||||
netscape = ... # type: bool
|
||||
rfc2965 = ... # type: bool
|
||||
hide_cookie2 = ... # type: bool
|
||||
netscape: bool
|
||||
rfc2965: bool
|
||||
hide_cookie2: bool
|
||||
def set_ok(self, cookie: Cookie, request: Request) -> bool: ...
|
||||
def return_ok(self, cookie: Cookie, request: Request) -> bool: ...
|
||||
def domain_return_ok(self, domain: str, request: Request) -> bool: ...
|
||||
@@ -51,18 +51,18 @@ class CookiePolicy:
|
||||
|
||||
|
||||
class DefaultCookiePolicy(CookiePolicy):
|
||||
rfc2109_as_netscape = ... # type: bool
|
||||
strict_domain = ... # type: bool
|
||||
strict_rfc2965_unverifiable = ... # type: bool
|
||||
strict_ns_unverifiable = ... # type: bool
|
||||
strict_ns_domain = ... # type: int
|
||||
strict_ns_set_initial_dollar = ... # type: bool
|
||||
strict_ns_set_path = ... # type: bool
|
||||
DomainStrictNoDots = ... # type: int
|
||||
DomainStrictNonDomain = ... # type: int
|
||||
DomainRFC2965Match = ... # type: int
|
||||
DomainLiberal = ... # type: int
|
||||
DomainStrict = ... # type: int
|
||||
rfc2109_as_netscape: bool
|
||||
strict_domain: bool
|
||||
strict_rfc2965_unverifiable: bool
|
||||
strict_ns_unverifiable: bool
|
||||
strict_ns_domain: int
|
||||
strict_ns_set_initial_dollar: bool
|
||||
strict_ns_set_path: bool
|
||||
DomainStrictNoDots: int
|
||||
DomainStrictNonDomain: int
|
||||
DomainRFC2965Match: int
|
||||
DomainLiberal: int
|
||||
DomainStrict: int
|
||||
def __init__(self, blocked_domains: Optional[Sequence[str]] = ...,
|
||||
allowed_domains: Optional[Sequence[str]] = ...,
|
||||
netscape: bool = ...,
|
||||
@@ -83,20 +83,20 @@ class DefaultCookiePolicy(CookiePolicy):
|
||||
|
||||
|
||||
class Cookie:
|
||||
version = ... # type: Optional[int]
|
||||
name = ... # type: str
|
||||
value = ... # type: Optional[str]
|
||||
port = ... # type: Optional[str]
|
||||
path = ... # type: str
|
||||
secure = ... # type: bool
|
||||
expires = ... # type: Optional[int]
|
||||
discard = ... # type: bool
|
||||
comment = ... # type: Optional[str]
|
||||
comment_url = ... # type: Optional[str]
|
||||
rfc2109 = ... # type: bool
|
||||
port_specified = ... # type: bool
|
||||
domain_specified = ... # type: bool
|
||||
domain_initial_dot = ... # type: bool
|
||||
version: Optional[int]
|
||||
name: str
|
||||
value: Optional[str]
|
||||
port: Optional[str]
|
||||
path: str
|
||||
secure: bool
|
||||
expires: Optional[int]
|
||||
discard: bool
|
||||
comment: Optional[str]
|
||||
comment_url: Optional[str]
|
||||
rfc2109: bool
|
||||
port_specified: bool
|
||||
domain_specified: bool
|
||||
domain_initial_dot: bool
|
||||
def has_nonstandard_attr(self, name: str) -> bool: ...
|
||||
@overload
|
||||
def get_nonstandard_attr(self, name: str) -> Optional[str]: ...
|
||||
|
||||
@@ -8,9 +8,9 @@ _T = TypeVar('_T')
|
||||
class CookieError(Exception): ...
|
||||
|
||||
class Morsel(Dict[str, str], Generic[_T]):
|
||||
value = ... # type: str
|
||||
coded_value = ... # type: _T
|
||||
key = ... # type: str
|
||||
value: str
|
||||
coded_value: _T
|
||||
key: str
|
||||
def set(self, key: str, val: str, coded_val: _T) -> None: ...
|
||||
def isReservedKey(self, K: str) -> bool: ...
|
||||
def output(self, attrs: Optional[List[str]] = ...,
|
||||
|
||||
@@ -9,29 +9,29 @@ if sys.version_info >= (3, 7):
|
||||
from builtins import _PathLike
|
||||
|
||||
class HTTPServer(socketserver.TCPServer):
|
||||
server_name = ... # type: str
|
||||
server_port = ... # type: int
|
||||
server_name: str
|
||||
server_port: int
|
||||
def __init__(self, server_address: Tuple[str, int],
|
||||
RequestHandlerClass: type) -> None: ...
|
||||
|
||||
class BaseHTTPRequestHandler:
|
||||
client_address = ... # type: Tuple[str, int]
|
||||
server = ... # type: socketserver.BaseServer
|
||||
close_connection = ... # type: bool
|
||||
requestline = ... # type: str
|
||||
command = ... # type: str
|
||||
path = ... # type: str
|
||||
request_version = ... # type: str
|
||||
headers = ... # type: email.message.Message
|
||||
rfile = ... # type: BinaryIO
|
||||
wfile = ... # type: BinaryIO
|
||||
server_version = ... # type: str
|
||||
sys_version = ... # type: str
|
||||
error_message_format = ... # type: str
|
||||
error_content_type = ... # type: str
|
||||
protocol_version = ... # type: str
|
||||
MessageClass = ... # type: type
|
||||
responses = ... # type: Mapping[int, Tuple[str, str]]
|
||||
client_address: Tuple[str, int]
|
||||
server: socketserver.BaseServer
|
||||
close_connection: bool
|
||||
requestline: str
|
||||
command: str
|
||||
path: str
|
||||
request_version: str
|
||||
headers: email.message.Message
|
||||
rfile: BinaryIO
|
||||
wfile: BinaryIO
|
||||
server_version: str
|
||||
sys_version: str
|
||||
error_message_format: str
|
||||
error_content_type: str
|
||||
protocol_version: str
|
||||
MessageClass: type
|
||||
responses: Mapping[int, Tuple[str, str]]
|
||||
def __init__(self, request: bytes, client_address: Tuple[str, int],
|
||||
server: socketserver.BaseServer) -> None: ...
|
||||
def handle(self) -> None: ...
|
||||
@@ -56,7 +56,7 @@ class BaseHTTPRequestHandler:
|
||||
def address_string(self) -> str: ...
|
||||
|
||||
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
extensions_map = ... # type: Dict[str, str]
|
||||
extensions_map: Dict[str, str]
|
||||
if sys.version_info >= (3, 7):
|
||||
def __init__(self, request: bytes, client_address: Tuple[str, int],
|
||||
server: socketserver.BaseServer, directory: Optional[Union[str, _PathLike[str]]]) -> None: ...
|
||||
@@ -67,5 +67,5 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
def do_HEAD(self) -> None: ...
|
||||
|
||||
class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
|
||||
cgi_directories = ... # type: List[str]
|
||||
cgi_directories: List[str]
|
||||
def do_POST(self) -> None: ...
|
||||
|
||||
@@ -77,8 +77,8 @@ class PathEntryFinder(Finder):
|
||||
) -> Optional[ModuleSpec]: ...
|
||||
|
||||
class FileLoader(ResourceLoader, ExecutionLoader, metaclass=ABCMeta):
|
||||
name = ... # type: str
|
||||
path = ... # type: _Path
|
||||
name: str
|
||||
path: _Path
|
||||
def __init__(self, fullname: str, path: _Path) -> None: ...
|
||||
def get_data(self, path: _Path) -> bytes: ...
|
||||
def get_filename(self, fullname: str) -> _Path: ...
|
||||
|
||||
@@ -84,16 +84,16 @@ class WindowsRegistryFinder(importlib.abc.MetaPathFinder):
|
||||
|
||||
class PathFinder(importlib.abc.MetaPathFinder): ...
|
||||
|
||||
SOURCE_SUFFIXES = ... # type: List[str]
|
||||
DEBUG_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
OPTIMIZED_BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
BYTECODE_SUFFIXES = ... # type: List[str]
|
||||
EXTENSION_SUFFIXES = ... # type: List[str]
|
||||
SOURCE_SUFFIXES: List[str]
|
||||
DEBUG_BYTECODE_SUFFIXES: List[str]
|
||||
OPTIMIZED_BYTECODE_SUFFIXES: List[str]
|
||||
BYTECODE_SUFFIXES: List[str]
|
||||
EXTENSION_SUFFIXES: List[str]
|
||||
|
||||
def all_suffixes() -> List[str]: ...
|
||||
|
||||
class FileFinder(importlib.abc.PathEntryFinder):
|
||||
path = ... # type: str
|
||||
path: str
|
||||
def __init__(
|
||||
self, path: str,
|
||||
*loader_details: Tuple[importlib.abc.Loader, List[str]]
|
||||
|
||||
@@ -16,7 +16,7 @@ def set_package(
|
||||
|
||||
def resolve_name(name: str, package: str) -> str: ...
|
||||
|
||||
MAGIC_NUMBER = ... # type: bytes
|
||||
MAGIC_NUMBER: bytes
|
||||
|
||||
def cache_from_source(path: str, debug_override: Optional[bool] = ..., *,
|
||||
optimization: Optional[Any] = ...) -> str: ...
|
||||
|
||||
@@ -10,11 +10,11 @@ from typing import TypeVar
|
||||
|
||||
_bytearray_like = Union[bytearray, mmap]
|
||||
|
||||
DEFAULT_BUFFER_SIZE = ... # type: int
|
||||
DEFAULT_BUFFER_SIZE: int
|
||||
|
||||
SEEK_SET = ... # type: int
|
||||
SEEK_CUR = ... # type: int
|
||||
SEEK_END = ... # type: int
|
||||
SEEK_SET: int
|
||||
SEEK_CUR: int
|
||||
SEEK_END: int
|
||||
|
||||
_T = TypeVar('_T', bound='IOBase')
|
||||
|
||||
@@ -63,8 +63,8 @@ class BufferedIOBase(IOBase):
|
||||
|
||||
|
||||
class FileIO(RawIOBase):
|
||||
mode = ... # type: str
|
||||
name = ... # type: Union[int, str]
|
||||
mode: str
|
||||
name: Union[int, str]
|
||||
def __init__(
|
||||
self,
|
||||
name: Union[str, bytes, int],
|
||||
@@ -104,7 +104,7 @@ class BytesIO(BinaryIO):
|
||||
def writelines(self, lines: Any) -> None: ...
|
||||
def readline(self, size: int = ...) -> bytes: ...
|
||||
def __del__(self) -> None: ...
|
||||
closed = ... # type: bool
|
||||
closed: bool
|
||||
# copied from BufferedIOBase
|
||||
def detach(self) -> RawIOBase: ...
|
||||
def readinto(self, b: _bytearray_like) -> int: ...
|
||||
@@ -134,9 +134,9 @@ class BufferedRWPair(BufferedIOBase):
|
||||
|
||||
|
||||
class TextIOBase(IOBase):
|
||||
encoding = ... # type: str
|
||||
errors = ... # type: Optional[str]
|
||||
newlines = ... # type: Union[str, Tuple[str, ...], None]
|
||||
encoding: str
|
||||
errors: Optional[str]
|
||||
newlines: Union[str, Tuple[str, ...], None]
|
||||
def __iter__(self) -> Iterator[str]: ... # type: ignore
|
||||
def __next__(self) -> str: ... # type: ignore
|
||||
def detach(self) -> IOBase: ...
|
||||
@@ -150,7 +150,7 @@ class TextIOBase(IOBase):
|
||||
|
||||
# TODO should extend from TextIOBase
|
||||
class TextIOWrapper(TextIO):
|
||||
line_buffering = ... # type: bool
|
||||
line_buffering: bool
|
||||
# TODO uncomment after fixing mypy about using write_through
|
||||
# def __init__(self, buffer: IO[bytes], encoding: str = ...,
|
||||
# errors: Optional[str] = ..., newline: Optional[str] = ...,
|
||||
@@ -181,11 +181,11 @@ class TextIOWrapper(TextIO):
|
||||
# def writelines(self, lines: List[str]) -> None: ...
|
||||
def writelines(self, lines: Any) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
closed = ... # type: bool
|
||||
closed: bool
|
||||
# copied from TextIOBase
|
||||
encoding = ... # type: str
|
||||
errors = ... # type: Optional[str]
|
||||
newlines = ... # type: Union[str, Tuple[str, ...], None]
|
||||
encoding: str
|
||||
errors: Optional[str]
|
||||
newlines: Union[str, Tuple[str, ...], None]
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
def __next__(self) -> str: ...
|
||||
def __enter__(self) -> TextIO: ...
|
||||
|
||||
@@ -11,12 +11,12 @@ if sys.version_info >= (3, 5):
|
||||
def __init__(self, msg: str, doc: str, pos: int) -> None: ...
|
||||
|
||||
class JSONDecoder:
|
||||
object_hook = ... # type: Callable[[Dict[str, Any]], Any]
|
||||
parse_float = ... # type: Callable[[str], Any]
|
||||
parse_int = ... # type: Callable[[str], Any]
|
||||
object_hook: Callable[[Dict[str, Any]], Any]
|
||||
parse_float: Callable[[str], Any]
|
||||
parse_int: Callable[[str], Any]
|
||||
parse_constant = ... # Callable[[str], Any]
|
||||
strict = ... # type: bool
|
||||
object_pairs_hook = ... # type: Callable[[List[Tuple[str, Any]]], Any]
|
||||
strict: bool
|
||||
object_pairs_hook: Callable[[List[Tuple[str, Any]]], Any]
|
||||
|
||||
def __init__(self, object_hook: Optional[Callable[[Dict[str, Any]], Any]] = ...,
|
||||
parse_float: Optional[Callable[[str], Any]] = ...,
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
from typing import Any, Callable, Iterator, Optional, Tuple
|
||||
|
||||
class JSONEncoder:
|
||||
item_separator = ... # type: str
|
||||
key_separator = ... # type: str
|
||||
item_separator: str
|
||||
key_separator: str
|
||||
|
||||
skipkeys = ... # type: bool
|
||||
ensure_ascii = ... # type: bool
|
||||
check_circular = ... # type: bool
|
||||
allow_nan = ... # type: bool
|
||||
sort_keys = ... # type: bool
|
||||
indent = ... # type: int
|
||||
skipkeys: bool
|
||||
ensure_ascii: bool
|
||||
check_circular: bool
|
||||
allow_nan: bool
|
||||
sort_keys: bool
|
||||
indent: int
|
||||
|
||||
def __init__(self, skipkeys: bool = ..., ensure_ascii: bool = ...,
|
||||
check_circular: bool = ..., allow_nan: bool = ..., sort_keys: bool = ...,
|
||||
|
||||
@@ -21,10 +21,10 @@ class TimeoutError(ProcessError): ...
|
||||
class AuthenticationError(ProcessError): ...
|
||||
|
||||
class BaseContext(object):
|
||||
ProcessError = ... # type: Type[Exception]
|
||||
BufferTooShort = ... # type: Type[Exception]
|
||||
TimeoutError = ... # type: Type[Exception]
|
||||
AuthenticationError = ... # type: Type[Exception]
|
||||
ProcessError: Type[Exception]
|
||||
BufferTooShort: Type[Exception]
|
||||
TimeoutError: Type[Exception]
|
||||
AuthenticationError: Type[Exception]
|
||||
|
||||
# N.B. The methods below are applied at runtime to generate
|
||||
# multiprocessing.*, so the signatures should be identical (modulo self).
|
||||
@@ -121,7 +121,7 @@ class Process(object):
|
||||
def _Popen(process_obj: Any) -> DefaultContext: ...
|
||||
|
||||
class DefaultContext(object):
|
||||
Process = ... # type: Type[multiprocessing.Process]
|
||||
Process: Type[multiprocessing.Process]
|
||||
|
||||
def __init__(self, context: BaseContext) -> None: ...
|
||||
def get_context(self, method: Optional[str] = ...) -> BaseContext: ...
|
||||
@@ -150,15 +150,15 @@ if sys.platform != 'win32':
|
||||
|
||||
class ForkContext(BaseContext):
|
||||
_name: str
|
||||
Process = ... # type: Type[ForkProcess]
|
||||
Process: Type[ForkProcess]
|
||||
|
||||
class SpawnContext(BaseContext):
|
||||
_name: str
|
||||
Process = ... # type: Type[SpawnProcess]
|
||||
Process: Type[SpawnProcess]
|
||||
|
||||
class ForkServerContext(BaseContext):
|
||||
_name: str
|
||||
Process = ... # type: Type[ForkServerProcess]
|
||||
Process: Type[ForkServerProcess]
|
||||
else:
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
class SpawnProcess(Any): # type: ignore
|
||||
@@ -169,7 +169,7 @@ else:
|
||||
|
||||
class SpawnContext(BaseContext):
|
||||
_name: str
|
||||
Process = ... # type: Type[SpawnProcess]
|
||||
Process: Type[SpawnProcess]
|
||||
|
||||
def _force_start_method(method: str) -> None: ...
|
||||
# TODO: type should be BaseProcess once a stub in multiprocessing.process exists
|
||||
|
||||
@@ -14,11 +14,11 @@ JoinableQueue = Queue
|
||||
|
||||
|
||||
class DummyProcess(threading.Thread):
|
||||
_children = ... # type: weakref.WeakKeyDictionary
|
||||
_parent = ... # type: threading.Thread
|
||||
_pid = ... # type: None
|
||||
_start_called = ... # type: int
|
||||
exitcode = ... # type: Optional[int]
|
||||
_children: weakref.WeakKeyDictionary
|
||||
_parent: threading.Thread
|
||||
_pid: None
|
||||
_start_called: int
|
||||
exitcode: Optional[int]
|
||||
def __init__(self, group=..., target=..., name=..., args=..., kwargs=...) -> None: ...
|
||||
|
||||
Process = DummyProcess
|
||||
@@ -27,9 +27,9 @@ class Namespace(object):
|
||||
def __init__(self, **kwds) -> None: ...
|
||||
|
||||
class Value(object):
|
||||
_typecode = ... # type: Any
|
||||
_value = ... # type: Any
|
||||
value = ... # type: Any
|
||||
_typecode: Any
|
||||
_value: Any
|
||||
value: Any
|
||||
def __init__(self, typecode, value, lock=...) -> None: ...
|
||||
|
||||
|
||||
|
||||
@@ -2,18 +2,18 @@ from typing import Any, List, Optional, Tuple, Type, TypeVar
|
||||
|
||||
from queue import Queue
|
||||
|
||||
families = ... # type: List[None]
|
||||
families: List[None]
|
||||
|
||||
_TConnection = TypeVar('_TConnection', bound=Connection)
|
||||
_TListener = TypeVar('_TListener', bound=Listener)
|
||||
|
||||
class Connection(object):
|
||||
_in = ... # type: Any
|
||||
_out = ... # type: Any
|
||||
recv = ... # type: Any
|
||||
recv_bytes = ... # type: Any
|
||||
send = ... # type: Any
|
||||
send_bytes = ... # type: Any
|
||||
_in: Any
|
||||
_out: Any
|
||||
recv: Any
|
||||
recv_bytes: Any
|
||||
send: Any
|
||||
send_bytes: Any
|
||||
def __enter__(self: _TConnection) -> _TConnection: ...
|
||||
def __exit__(self, exc_type, exc_value, exc_tb) -> None: ...
|
||||
def __init__(self, _in, _out) -> None: ...
|
||||
@@ -21,7 +21,7 @@ class Connection(object):
|
||||
def poll(self, timeout: float = ...) -> bool: ...
|
||||
|
||||
class Listener(object):
|
||||
_backlog_queue = ... # type: Optional[Queue]
|
||||
_backlog_queue: Optional[Queue]
|
||||
@property
|
||||
def address(self) -> Optional[Queue]: ...
|
||||
def __enter__(self: _TListener) -> _TListener: ...
|
||||
|
||||
@@ -11,14 +11,14 @@ else:
|
||||
_PurePathBase = object
|
||||
|
||||
class PurePath(_PurePathBase):
|
||||
parts = ... # type: Tuple[str, ...]
|
||||
drive = ... # type: str
|
||||
root = ... # type: str
|
||||
anchor = ... # type: str
|
||||
name = ... # type: str
|
||||
suffix = ... # type: str
|
||||
suffixes = ... # type: List[str]
|
||||
stem = ... # type: str
|
||||
parts: Tuple[str, ...]
|
||||
drive: str
|
||||
root: str
|
||||
anchor: str
|
||||
name: str
|
||||
suffix: str
|
||||
suffixes: List[str]
|
||||
stem: str
|
||||
if sys.version_info < (3, 5):
|
||||
def __init__(self, *pathsegments: str) -> None: ...
|
||||
elif sys.version_info < (3, 6):
|
||||
|
||||
@@ -73,7 +73,7 @@ else:
|
||||
|
||||
if sys.version_info < (3, 7):
|
||||
# undocumented
|
||||
_pattern_type = ... # type: type
|
||||
_pattern_type: type
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
|
||||
@@ -4,26 +4,26 @@
|
||||
|
||||
from typing import Tuple, Optional, NamedTuple
|
||||
|
||||
RLIMIT_AS = ... # type: int
|
||||
RLIMIT_CORE = ... # type: int
|
||||
RLIMIT_CPU = ... # type: int
|
||||
RLIMIT_DATA = ... # type: int
|
||||
RLIMIT_FSIZE = ... # type: int
|
||||
RLIMIT_MEMLOCK = ... # type: int
|
||||
RLIMIT_MSGQUEUE = ... # type: int
|
||||
RLIMIT_NICE = ... # type: int
|
||||
RLIMIT_NOFILE = ... # type: int
|
||||
RLIMIT_NPROC = ... # type: int
|
||||
RLIMIT_OFILE = ... # type: int
|
||||
RLIMIT_RSS = ... # type: int
|
||||
RLIMIT_RTPRIO = ... # type: int
|
||||
RLIMIT_RTTIME = ... # type: int
|
||||
RLIMIT_SIGPENDING = ... # type: int
|
||||
RLIMIT_STACK = ... # type: int
|
||||
RLIM_INFINITY = ... # type: int
|
||||
RUSAGE_CHILDREN = ... # type: int
|
||||
RUSAGE_SELF = ... # type: int
|
||||
RUSAGE_THREAD = ... # type: int
|
||||
RLIMIT_AS: int
|
||||
RLIMIT_CORE: int
|
||||
RLIMIT_CPU: int
|
||||
RLIMIT_DATA: int
|
||||
RLIMIT_FSIZE: int
|
||||
RLIMIT_MEMLOCK: int
|
||||
RLIMIT_MSGQUEUE: int
|
||||
RLIMIT_NICE: int
|
||||
RLIMIT_NOFILE: int
|
||||
RLIMIT_NPROC: int
|
||||
RLIMIT_OFILE: int
|
||||
RLIMIT_RSS: int
|
||||
RLIMIT_RTPRIO: int
|
||||
RLIMIT_RTTIME: int
|
||||
RLIMIT_SIGPENDING: int
|
||||
RLIMIT_STACK: int
|
||||
RLIM_INFINITY: int
|
||||
RUSAGE_CHILDREN: int
|
||||
RUSAGE_SELF: int
|
||||
RUSAGE_THREAD: int
|
||||
|
||||
_RUsage = NamedTuple('_RUsage', [('ru_utime', float), ('ru_stime', float), ('ru_maxrss', int),
|
||||
('ru_ixrss', int), ('ru_idrss', int), ('ru_isrss', int),
|
||||
|
||||
@@ -15,8 +15,8 @@ _FileDescriptor = int
|
||||
_EventMask = int
|
||||
|
||||
|
||||
EVENT_READ = ... # type: _EventMask
|
||||
EVENT_WRITE = ... # type: _EventMask
|
||||
EVENT_READ: _EventMask
|
||||
EVENT_WRITE: _EventMask
|
||||
|
||||
|
||||
SelectorKey = NamedTuple('SelectorKey', [
|
||||
|
||||
@@ -14,22 +14,22 @@ def quote(s: str) -> str: ...
|
||||
_SLT = TypeVar('_SLT', bound=shlex)
|
||||
|
||||
class shlex(Iterable[str]):
|
||||
commenters = ... # type: str
|
||||
wordchars = ... # type: str
|
||||
whitespace = ... # type: str
|
||||
escape = ... # type: str
|
||||
quotes = ... # type: str
|
||||
escapedquotes = ... # type: str
|
||||
whitespace_split = ... # type: bool
|
||||
infile = ... # type: str
|
||||
instream = ... # type: TextIO
|
||||
source = ... # type: str
|
||||
commenters: str
|
||||
wordchars: str
|
||||
whitespace: str
|
||||
escape: str
|
||||
quotes: str
|
||||
escapedquotes: str
|
||||
whitespace_split: bool
|
||||
infile: str
|
||||
instream: TextIO
|
||||
source: str
|
||||
debug = 0
|
||||
lineno = 0
|
||||
token = ... # type: str
|
||||
eof = ... # type: str
|
||||
token: str
|
||||
eof: str
|
||||
if sys.version_info >= (3, 6):
|
||||
punctuation_chars = ... # type: str
|
||||
punctuation_chars: str
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
def __init__(self, instream: Union[str, TextIO] = ..., infile: Optional[str] = ...,
|
||||
|
||||
@@ -7,14 +7,14 @@ import sys
|
||||
import types
|
||||
|
||||
class BaseServer:
|
||||
address_family = ... # type: int
|
||||
RequestHandlerClass = ... # type: type
|
||||
server_address = ... # type: Tuple[str, int]
|
||||
socket = ... # type: SocketType
|
||||
allow_reuse_address = ... # type: bool
|
||||
request_queue_size = ... # type: int
|
||||
socket_type = ... # type: int
|
||||
timeout = ... # type: Optional[float]
|
||||
address_family: int
|
||||
RequestHandlerClass: type
|
||||
server_address: Tuple[str, int]
|
||||
socket: SocketType
|
||||
allow_reuse_address: bool
|
||||
request_queue_size: int
|
||||
socket_type: int
|
||||
timeout: Optional[float]
|
||||
def __init__(self, server_address: Tuple[str, int],
|
||||
RequestHandlerClass: type) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
@@ -82,18 +82,18 @@ class BaseRequestHandler:
|
||||
# But there are some concerns that having unions here would cause
|
||||
# too much inconvenience to people using it (see
|
||||
# https://github.com/python/typeshed/pull/384#issuecomment-234649696)
|
||||
request = ... # type: Any
|
||||
client_address = ... # type: Any
|
||||
request: Any
|
||||
client_address: Any
|
||||
|
||||
server = ... # type: BaseServer
|
||||
server: BaseServer
|
||||
def setup(self) -> None: ...
|
||||
def handle(self) -> None: ...
|
||||
def finish(self) -> None: ...
|
||||
|
||||
class StreamRequestHandler(BaseRequestHandler):
|
||||
rfile = ... # type: BinaryIO
|
||||
wfile = ... # type: BinaryIO
|
||||
rfile: BinaryIO
|
||||
wfile: BinaryIO
|
||||
|
||||
class DatagramRequestHandler(BaseRequestHandler):
|
||||
rfile = ... # type: BinaryIO
|
||||
wfile = ... # type: BinaryIO
|
||||
rfile: BinaryIO
|
||||
wfile: BinaryIO
|
||||
|
||||
@@ -2,113 +2,113 @@
|
||||
|
||||
from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
MAGIC = ... # type: int
|
||||
MAGIC: int
|
||||
|
||||
class error(Exception):
|
||||
msg = ... # type: str
|
||||
pattern = ... # type: Optional[Union[str, bytes]]
|
||||
pos = ... # type: Optional[int]
|
||||
lineno = ... # type: int
|
||||
colno = ... # type: int
|
||||
msg: str
|
||||
pattern: Optional[Union[str, bytes]]
|
||||
pos: Optional[int]
|
||||
lineno: int
|
||||
colno: int
|
||||
def __init__(self, msg: str, pattern: Union[str, bytes] = ..., pos: int = ...) -> None: ...
|
||||
|
||||
class _NamedIntConstant(int):
|
||||
name = ... # type: Any
|
||||
name: Any
|
||||
def __new__(cls, value: int, name: str): ...
|
||||
|
||||
MAXREPEAT = ... # type: _NamedIntConstant
|
||||
OPCODES = ... # type: List[_NamedIntConstant]
|
||||
ATCODES = ... # type: List[_NamedIntConstant]
|
||||
CHCODES = ... # type: List[_NamedIntConstant]
|
||||
OP_IGNORE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_MULTILINE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_LOCALE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_UNICODE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
CH_LOCALE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
CH_UNICODE = ... # type: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
SRE_FLAG_TEMPLATE = ... # type: int
|
||||
SRE_FLAG_IGNORECASE = ... # type: int
|
||||
SRE_FLAG_LOCALE = ... # type: int
|
||||
SRE_FLAG_MULTILINE = ... # type: int
|
||||
SRE_FLAG_DOTALL = ... # type: int
|
||||
SRE_FLAG_UNICODE = ... # type: int
|
||||
SRE_FLAG_VERBOSE = ... # type: int
|
||||
SRE_FLAG_DEBUG = ... # type: int
|
||||
SRE_FLAG_ASCII = ... # type: int
|
||||
SRE_INFO_PREFIX = ... # type: int
|
||||
SRE_INFO_LITERAL = ... # type: int
|
||||
SRE_INFO_CHARSET = ... # type: int
|
||||
MAXREPEAT: _NamedIntConstant
|
||||
OPCODES: List[_NamedIntConstant]
|
||||
ATCODES: List[_NamedIntConstant]
|
||||
CHCODES: List[_NamedIntConstant]
|
||||
OP_IGNORE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_MULTILINE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_LOCALE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
AT_UNICODE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
CH_LOCALE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
CH_UNICODE: Dict[_NamedIntConstant, _NamedIntConstant]
|
||||
SRE_FLAG_TEMPLATE: int
|
||||
SRE_FLAG_IGNORECASE: int
|
||||
SRE_FLAG_LOCALE: int
|
||||
SRE_FLAG_MULTILINE: int
|
||||
SRE_FLAG_DOTALL: int
|
||||
SRE_FLAG_UNICODE: int
|
||||
SRE_FLAG_VERBOSE: int
|
||||
SRE_FLAG_DEBUG: int
|
||||
SRE_FLAG_ASCII: int
|
||||
SRE_INFO_PREFIX: int
|
||||
SRE_INFO_LITERAL: int
|
||||
SRE_INFO_CHARSET: int
|
||||
|
||||
|
||||
# Stubgen above; manually defined constants below (dynamic at runtime)
|
||||
|
||||
# from OPCODES
|
||||
FAILURE = ... # type: _NamedIntConstant
|
||||
SUCCESS = ... # type: _NamedIntConstant
|
||||
ANY = ... # type: _NamedIntConstant
|
||||
ANY_ALL = ... # type: _NamedIntConstant
|
||||
ASSERT = ... # type: _NamedIntConstant
|
||||
ASSERT_NOT = ... # type: _NamedIntConstant
|
||||
AT = ... # type: _NamedIntConstant
|
||||
BRANCH = ... # type: _NamedIntConstant
|
||||
CALL = ... # type: _NamedIntConstant
|
||||
CATEGORY = ... # type: _NamedIntConstant
|
||||
CHARSET = ... # type: _NamedIntConstant
|
||||
BIGCHARSET = ... # type: _NamedIntConstant
|
||||
GROUPREF = ... # type: _NamedIntConstant
|
||||
GROUPREF_EXISTS = ... # type: _NamedIntConstant
|
||||
GROUPREF_IGNORE = ... # type: _NamedIntConstant
|
||||
IN = ... # type: _NamedIntConstant
|
||||
IN_IGNORE = ... # type: _NamedIntConstant
|
||||
INFO = ... # type: _NamedIntConstant
|
||||
JUMP = ... # type: _NamedIntConstant
|
||||
LITERAL = ... # type: _NamedIntConstant
|
||||
LITERAL_IGNORE = ... # type: _NamedIntConstant
|
||||
MARK = ... # type: _NamedIntConstant
|
||||
MAX_UNTIL = ... # type: _NamedIntConstant
|
||||
MIN_UNTIL = ... # type: _NamedIntConstant
|
||||
NOT_LITERAL = ... # type: _NamedIntConstant
|
||||
NOT_LITERAL_IGNORE = ... # type: _NamedIntConstant
|
||||
NEGATE = ... # type: _NamedIntConstant
|
||||
RANGE = ... # type: _NamedIntConstant
|
||||
REPEAT = ... # type: _NamedIntConstant
|
||||
REPEAT_ONE = ... # type: _NamedIntConstant
|
||||
SUBPATTERN = ... # type: _NamedIntConstant
|
||||
MIN_REPEAT_ONE = ... # type: _NamedIntConstant
|
||||
RANGE_IGNORE = ... # type: _NamedIntConstant
|
||||
MIN_REPEAT = ... # type: _NamedIntConstant
|
||||
MAX_REPEAT = ... # type: _NamedIntConstant
|
||||
FAILURE: _NamedIntConstant
|
||||
SUCCESS: _NamedIntConstant
|
||||
ANY: _NamedIntConstant
|
||||
ANY_ALL: _NamedIntConstant
|
||||
ASSERT: _NamedIntConstant
|
||||
ASSERT_NOT: _NamedIntConstant
|
||||
AT: _NamedIntConstant
|
||||
BRANCH: _NamedIntConstant
|
||||
CALL: _NamedIntConstant
|
||||
CATEGORY: _NamedIntConstant
|
||||
CHARSET: _NamedIntConstant
|
||||
BIGCHARSET: _NamedIntConstant
|
||||
GROUPREF: _NamedIntConstant
|
||||
GROUPREF_EXISTS: _NamedIntConstant
|
||||
GROUPREF_IGNORE: _NamedIntConstant
|
||||
IN: _NamedIntConstant
|
||||
IN_IGNORE: _NamedIntConstant
|
||||
INFO: _NamedIntConstant
|
||||
JUMP: _NamedIntConstant
|
||||
LITERAL: _NamedIntConstant
|
||||
LITERAL_IGNORE: _NamedIntConstant
|
||||
MARK: _NamedIntConstant
|
||||
MAX_UNTIL: _NamedIntConstant
|
||||
MIN_UNTIL: _NamedIntConstant
|
||||
NOT_LITERAL: _NamedIntConstant
|
||||
NOT_LITERAL_IGNORE: _NamedIntConstant
|
||||
NEGATE: _NamedIntConstant
|
||||
RANGE: _NamedIntConstant
|
||||
REPEAT: _NamedIntConstant
|
||||
REPEAT_ONE: _NamedIntConstant
|
||||
SUBPATTERN: _NamedIntConstant
|
||||
MIN_REPEAT_ONE: _NamedIntConstant
|
||||
RANGE_IGNORE: _NamedIntConstant
|
||||
MIN_REPEAT: _NamedIntConstant
|
||||
MAX_REPEAT: _NamedIntConstant
|
||||
|
||||
# from ATCODES
|
||||
AT_BEGINNING = ... # type: _NamedIntConstant
|
||||
AT_BEGINNING_LINE = ... # type: _NamedIntConstant
|
||||
AT_BEGINNING_STRING = ... # type: _NamedIntConstant
|
||||
AT_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_NON_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_END = ... # type: _NamedIntConstant
|
||||
AT_END_LINE = ... # type: _NamedIntConstant
|
||||
AT_END_STRING = ... # type: _NamedIntConstant
|
||||
AT_LOC_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_LOC_NON_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_UNI_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_UNI_NON_BOUNDARY = ... # type: _NamedIntConstant
|
||||
AT_BEGINNING: _NamedIntConstant
|
||||
AT_BEGINNING_LINE: _NamedIntConstant
|
||||
AT_BEGINNING_STRING: _NamedIntConstant
|
||||
AT_BOUNDARY: _NamedIntConstant
|
||||
AT_NON_BOUNDARY: _NamedIntConstant
|
||||
AT_END: _NamedIntConstant
|
||||
AT_END_LINE: _NamedIntConstant
|
||||
AT_END_STRING: _NamedIntConstant
|
||||
AT_LOC_BOUNDARY: _NamedIntConstant
|
||||
AT_LOC_NON_BOUNDARY: _NamedIntConstant
|
||||
AT_UNI_BOUNDARY: _NamedIntConstant
|
||||
AT_UNI_NON_BOUNDARY: _NamedIntConstant
|
||||
|
||||
# from CHCODES
|
||||
CATEGORY_DIGIT = ... # type: _NamedIntConstant
|
||||
CATEGORY_NOT_DIGIT = ... # type: _NamedIntConstant
|
||||
CATEGORY_SPACE = ... # type: _NamedIntConstant
|
||||
CATEGORY_NOT_SPACE = ... # type: _NamedIntConstant
|
||||
CATEGORY_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_NOT_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_LINEBREAK = ... # type: _NamedIntConstant
|
||||
CATEGORY_NOT_LINEBREAK = ... # type: _NamedIntConstant
|
||||
CATEGORY_LOC_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_LOC_NOT_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_DIGIT = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_DIGIT = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_SPACE = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_SPACE = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_WORD = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_LINEBREAK = ... # type: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_LINEBREAK = ... # type: _NamedIntConstant
|
||||
CATEGORY_DIGIT: _NamedIntConstant
|
||||
CATEGORY_NOT_DIGIT: _NamedIntConstant
|
||||
CATEGORY_SPACE: _NamedIntConstant
|
||||
CATEGORY_NOT_SPACE: _NamedIntConstant
|
||||
CATEGORY_WORD: _NamedIntConstant
|
||||
CATEGORY_NOT_WORD: _NamedIntConstant
|
||||
CATEGORY_LINEBREAK: _NamedIntConstant
|
||||
CATEGORY_NOT_LINEBREAK: _NamedIntConstant
|
||||
CATEGORY_LOC_WORD: _NamedIntConstant
|
||||
CATEGORY_LOC_NOT_WORD: _NamedIntConstant
|
||||
CATEGORY_UNI_DIGIT: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_DIGIT: _NamedIntConstant
|
||||
CATEGORY_UNI_SPACE: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_SPACE: _NamedIntConstant
|
||||
CATEGORY_UNI_WORD: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_WORD: _NamedIntConstant
|
||||
CATEGORY_UNI_LINEBREAK: _NamedIntConstant
|
||||
CATEGORY_UNI_NOT_LINEBREAK: _NamedIntConstant
|
||||
|
||||
@@ -6,25 +6,25 @@ from typing import (
|
||||
)
|
||||
from sre_constants import _NamedIntConstant as NIC, error as _Error
|
||||
|
||||
SPECIAL_CHARS = ... # type: str
|
||||
REPEAT_CHARS = ... # type: str
|
||||
DIGITS = ... # type: FrozenSet[str]
|
||||
OCTDIGITS = ... # type: FrozenSet[str]
|
||||
HEXDIGITS = ... # type: FrozenSet[str]
|
||||
ASCIILETTERS = ... # type: FrozenSet[str]
|
||||
WHITESPACE = ... # type: FrozenSet[str]
|
||||
ESCAPES = ... # type: Dict[str, Tuple[NIC, int]]
|
||||
CATEGORIES = ... # type: Dict[str, Union[Tuple[NIC, NIC], Tuple[NIC, List[Tuple[NIC, NIC]]]]]
|
||||
FLAGS = ... # type: Dict[str, int]
|
||||
GLOBAL_FLAGS = ... # type: int
|
||||
SPECIAL_CHARS: str
|
||||
REPEAT_CHARS: str
|
||||
DIGITS: FrozenSet[str]
|
||||
OCTDIGITS: FrozenSet[str]
|
||||
HEXDIGITS: FrozenSet[str]
|
||||
ASCIILETTERS: FrozenSet[str]
|
||||
WHITESPACE: FrozenSet[str]
|
||||
ESCAPES: Dict[str, Tuple[NIC, int]]
|
||||
CATEGORIES: Dict[str, Union[Tuple[NIC, NIC], Tuple[NIC, List[Tuple[NIC, NIC]]]]]
|
||||
FLAGS: Dict[str, int]
|
||||
GLOBAL_FLAGS: int
|
||||
|
||||
class Verbose(Exception): ...
|
||||
|
||||
class Pattern:
|
||||
flags = ... # type: int
|
||||
groupdict = ... # type: Dict[str, int]
|
||||
groupwidths = ... # type: List[Optional[int]]
|
||||
lookbehindgroups = ... # type: Optional[int]
|
||||
flags: int
|
||||
groupdict: Dict[str, int]
|
||||
groupwidths: List[Optional[int]]
|
||||
lookbehindgroups: Optional[int]
|
||||
def __init__(self) -> None: ...
|
||||
@property
|
||||
def groups(self) -> int: ...
|
||||
@@ -43,9 +43,9 @@ _CodeType = Tuple[NIC, _AvType]
|
||||
|
||||
|
||||
class SubPattern:
|
||||
pattern = ... # type: Pattern
|
||||
data = ... # type: List[_CodeType]
|
||||
width = ... # type: Optional[int]
|
||||
pattern: Pattern
|
||||
data: List[_CodeType]
|
||||
width: Optional[int]
|
||||
def __init__(self, pattern: Pattern, data: List[_CodeType] = ...) -> None: ...
|
||||
def dump(self, level: int = ...) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
@@ -58,11 +58,11 @@ class SubPattern:
|
||||
|
||||
|
||||
class Tokenizer:
|
||||
istext = ... # type: bool
|
||||
string = ... # type: Any
|
||||
decoded_string = ... # type: str
|
||||
index = ... # type: int
|
||||
next = ... # type: Optional[str]
|
||||
istext: bool
|
||||
string: Any
|
||||
decoded_string: str
|
||||
index: int
|
||||
next: Optional[str]
|
||||
def __init__(self, string: Any) -> None: ...
|
||||
def match(self, char: str) -> bool: ...
|
||||
def get(self) -> Optional[str]: ...
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
|
||||
from typing import Mapping, Sequence, Any, Optional, Union, List, Tuple, Iterable
|
||||
|
||||
ascii_letters = ... # type: str
|
||||
ascii_lowercase = ... # type: str
|
||||
ascii_uppercase = ... # type: str
|
||||
digits = ... # type: str
|
||||
hexdigits = ... # type: str
|
||||
octdigits = ... # type: str
|
||||
punctuation = ... # type: str
|
||||
printable = ... # type: str
|
||||
whitespace = ... # type: str
|
||||
ascii_letters: str
|
||||
ascii_lowercase: str
|
||||
ascii_uppercase: str
|
||||
digits: str
|
||||
hexdigits: str
|
||||
octdigits: str
|
||||
punctuation: str
|
||||
printable: str
|
||||
whitespace: str
|
||||
|
||||
def capwords(s: str, sep: str = ...) -> str: ...
|
||||
|
||||
class Template:
|
||||
template = ... # type: str
|
||||
template: str
|
||||
|
||||
def __init__(self, template: str) -> None: ...
|
||||
def substitute(self, mapping: Mapping[str, str] = ..., **kwds: str) -> str: ...
|
||||
|
||||
@@ -32,11 +32,11 @@ _ENV = Union[Mapping[bytes, _TXT], Mapping[Text, _TXT]]
|
||||
if sys.version_info >= (3, 5):
|
||||
class CompletedProcess:
|
||||
# morally: _CMD
|
||||
args = ... # type: Any
|
||||
returncode = ... # type: int
|
||||
args: Any
|
||||
returncode: int
|
||||
# morally: Optional[_TXT]
|
||||
stdout = ... # type: Any
|
||||
stderr = ... # type: Any
|
||||
stdout: Any
|
||||
stderr: Any
|
||||
def __init__(self, args: _CMD,
|
||||
returncode: int,
|
||||
stdout: Optional[_TXT] = ...,
|
||||
@@ -229,32 +229,32 @@ else:
|
||||
) -> Any: ... # morally: -> _TXT
|
||||
|
||||
|
||||
PIPE = ... # type: int
|
||||
STDOUT = ... # type: int
|
||||
DEVNULL = ... # type: int
|
||||
PIPE: int
|
||||
STDOUT: int
|
||||
DEVNULL: int
|
||||
class SubprocessError(Exception): ...
|
||||
class TimeoutExpired(SubprocessError):
|
||||
def __init__(self, cmd: _CMD, timeout: float, output: Optional[_TXT] = ..., stderr: Optional[_TXT] = ...) -> None: ...
|
||||
# morally: _CMD
|
||||
cmd = ... # type: Any
|
||||
timeout = ... # type: float
|
||||
cmd: Any
|
||||
timeout: float
|
||||
# morally: Optional[_TXT]
|
||||
output = ... # type: Any
|
||||
stdout = ... # type: Any
|
||||
stderr = ... # type: Any
|
||||
output: Any
|
||||
stdout: Any
|
||||
stderr: Any
|
||||
|
||||
|
||||
class CalledProcessError(Exception):
|
||||
returncode = 0
|
||||
# morally: _CMD
|
||||
cmd = ... # type: Any
|
||||
cmd: Any
|
||||
# morally: Optional[_TXT]
|
||||
output = ... # type: Any
|
||||
output: Any
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
# morally: Optional[_TXT]
|
||||
stdout = ... # type: Any
|
||||
stderr = ... # type: Any
|
||||
stdout: Any
|
||||
stderr: Any
|
||||
|
||||
def __init__(self,
|
||||
returncode: int,
|
||||
@@ -263,10 +263,10 @@ class CalledProcessError(Exception):
|
||||
stderr: Optional[_TXT] = ...) -> None: ...
|
||||
|
||||
class Popen:
|
||||
args = ... # type: _CMD
|
||||
stdin = ... # type: IO[Any]
|
||||
stdout = ... # type: IO[Any]
|
||||
stderr = ... # type: IO[Any]
|
||||
args: _CMD
|
||||
stdin: IO[Any]
|
||||
stdout: IO[Any]
|
||||
stderr: IO[Any]
|
||||
pid = 0
|
||||
returncode = 0
|
||||
|
||||
|
||||
@@ -3,95 +3,95 @@
|
||||
import sys
|
||||
from typing import Dict
|
||||
|
||||
single_input = ... # type: int
|
||||
file_input = ... # type: int
|
||||
eval_input = ... # type: int
|
||||
decorator = ... # type: int
|
||||
decorators = ... # type: int
|
||||
decorated = ... # type: int
|
||||
single_input: int
|
||||
file_input: int
|
||||
eval_input: int
|
||||
decorator: int
|
||||
decorators: int
|
||||
decorated: int
|
||||
if sys.version_info >= (3, 5):
|
||||
async_funcdef = ... # type: int
|
||||
funcdef = ... # type: int
|
||||
parameters = ... # type: int
|
||||
typedargslist = ... # type: int
|
||||
tfpdef = ... # type: int
|
||||
varargslist = ... # type: int
|
||||
vfpdef = ... # type: int
|
||||
stmt = ... # type: int
|
||||
simple_stmt = ... # type: int
|
||||
small_stmt = ... # type: int
|
||||
expr_stmt = ... # type: int
|
||||
async_funcdef: int
|
||||
funcdef: int
|
||||
parameters: int
|
||||
typedargslist: int
|
||||
tfpdef: int
|
||||
varargslist: int
|
||||
vfpdef: int
|
||||
stmt: int
|
||||
simple_stmt: int
|
||||
small_stmt: int
|
||||
expr_stmt: int
|
||||
if sys.version_info >= (3, 6):
|
||||
annassign = ... # type: int
|
||||
testlist_star_expr = ... # type: int
|
||||
augassign = ... # type: int
|
||||
del_stmt = ... # type: int
|
||||
pass_stmt = ... # type: int
|
||||
flow_stmt = ... # type: int
|
||||
break_stmt = ... # type: int
|
||||
continue_stmt = ... # type: int
|
||||
return_stmt = ... # type: int
|
||||
yield_stmt = ... # type: int
|
||||
raise_stmt = ... # type: int
|
||||
import_stmt = ... # type: int
|
||||
import_name = ... # type: int
|
||||
import_from = ... # type: int
|
||||
import_as_name = ... # type: int
|
||||
dotted_as_name = ... # type: int
|
||||
import_as_names = ... # type: int
|
||||
dotted_as_names = ... # type: int
|
||||
dotted_name = ... # type: int
|
||||
global_stmt = ... # type: int
|
||||
nonlocal_stmt = ... # type: int
|
||||
assert_stmt = ... # type: int
|
||||
compound_stmt = ... # type: int
|
||||
annassign: int
|
||||
testlist_star_expr: int
|
||||
augassign: int
|
||||
del_stmt: int
|
||||
pass_stmt: int
|
||||
flow_stmt: int
|
||||
break_stmt: int
|
||||
continue_stmt: int
|
||||
return_stmt: int
|
||||
yield_stmt: int
|
||||
raise_stmt: int
|
||||
import_stmt: int
|
||||
import_name: int
|
||||
import_from: int
|
||||
import_as_name: int
|
||||
dotted_as_name: int
|
||||
import_as_names: int
|
||||
dotted_as_names: int
|
||||
dotted_name: int
|
||||
global_stmt: int
|
||||
nonlocal_stmt: int
|
||||
assert_stmt: int
|
||||
compound_stmt: int
|
||||
if sys.version_info >= (3, 5):
|
||||
async_stmt = ... # type: int
|
||||
if_stmt = ... # type: int
|
||||
while_stmt = ... # type: int
|
||||
for_stmt = ... # type: int
|
||||
try_stmt = ... # type: int
|
||||
with_stmt = ... # type: int
|
||||
with_item = ... # type: int
|
||||
except_clause = ... # type: int
|
||||
suite = ... # type: int
|
||||
test = ... # type: int
|
||||
test_nocond = ... # type: int
|
||||
lambdef = ... # type: int
|
||||
lambdef_nocond = ... # type: int
|
||||
or_test = ... # type: int
|
||||
and_test = ... # type: int
|
||||
not_test = ... # type: int
|
||||
comparison = ... # type: int
|
||||
comp_op = ... # type: int
|
||||
star_expr = ... # type: int
|
||||
expr = ... # type: int
|
||||
xor_expr = ... # type: int
|
||||
and_expr = ... # type: int
|
||||
shift_expr = ... # type: int
|
||||
arith_expr = ... # type: int
|
||||
term = ... # type: int
|
||||
factor = ... # type: int
|
||||
power = ... # type: int
|
||||
async_stmt: int
|
||||
if_stmt: int
|
||||
while_stmt: int
|
||||
for_stmt: int
|
||||
try_stmt: int
|
||||
with_stmt: int
|
||||
with_item: int
|
||||
except_clause: int
|
||||
suite: int
|
||||
test: int
|
||||
test_nocond: int
|
||||
lambdef: int
|
||||
lambdef_nocond: int
|
||||
or_test: int
|
||||
and_test: int
|
||||
not_test: int
|
||||
comparison: int
|
||||
comp_op: int
|
||||
star_expr: int
|
||||
expr: int
|
||||
xor_expr: int
|
||||
and_expr: int
|
||||
shift_expr: int
|
||||
arith_expr: int
|
||||
term: int
|
||||
factor: int
|
||||
power: int
|
||||
if sys.version_info >= (3, 5):
|
||||
atom_expr = ... # type: int
|
||||
atom = ... # type: int
|
||||
testlist_comp = ... # type: int
|
||||
trailer = ... # type: int
|
||||
subscriptlist = ... # type: int
|
||||
subscript = ... # type: int
|
||||
sliceop = ... # type: int
|
||||
exprlist = ... # type: int
|
||||
testlist = ... # type: int
|
||||
dictorsetmaker = ... # type: int
|
||||
classdef = ... # type: int
|
||||
arglist = ... # type: int
|
||||
argument = ... # type: int
|
||||
comp_iter = ... # type: int
|
||||
comp_for = ... # type: int
|
||||
comp_if = ... # type: int
|
||||
encoding_decl = ... # type: int
|
||||
yield_expr = ... # type: int
|
||||
yield_arg = ... # type: int
|
||||
atom_expr: int
|
||||
atom: int
|
||||
testlist_comp: int
|
||||
trailer: int
|
||||
subscriptlist: int
|
||||
subscript: int
|
||||
sliceop: int
|
||||
exprlist: int
|
||||
testlist: int
|
||||
dictorsetmaker: int
|
||||
classdef: int
|
||||
arglist: int
|
||||
argument: int
|
||||
comp_iter: int
|
||||
comp_for: int
|
||||
comp_if: int
|
||||
encoding_decl: int
|
||||
yield_expr: int
|
||||
yield_arg: int
|
||||
|
||||
sym_name = ... # type: Dict[int, str]
|
||||
sym_name: Dict[int, str]
|
||||
|
||||
@@ -9,8 +9,8 @@ from typing import Any, AnyStr, Generic, IO, Iterable, Iterator, List, Optional,
|
||||
|
||||
# global variables
|
||||
TMP_MAX: int
|
||||
tempdir = ... # type: Optional[str]
|
||||
template = ... # type: str
|
||||
tempdir: Optional[str]
|
||||
template: str
|
||||
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
@@ -63,7 +63,7 @@ if sys.version_info >= (3, 5):
|
||||
def __iter__(self) -> Iterator[AnyStr]: ...
|
||||
|
||||
class TemporaryDirectory(Generic[AnyStr]):
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ...,
|
||||
dir: Optional[AnyStr] = ...) -> None: ...
|
||||
def cleanup(self) -> None: ...
|
||||
@@ -104,7 +104,7 @@ else:
|
||||
...
|
||||
|
||||
class TemporaryDirectory:
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, suffix: str = ..., prefix: str = ...,
|
||||
dir: Optional[str] = ...) -> None: ...
|
||||
def cleanup(self) -> None: ...
|
||||
|
||||
@@ -2,13 +2,13 @@ from types import TracebackType
|
||||
from typing import Any, Optional, Dict, Callable, Type
|
||||
from tkinter.constants import * # noqa: F403
|
||||
|
||||
TclError = ... # type: Any
|
||||
wantobjects = ... # type: Any
|
||||
TkVersion = ... # type: Any
|
||||
TclVersion = ... # type: Any
|
||||
READABLE = ... # type: Any
|
||||
WRITABLE = ... # type: Any
|
||||
EXCEPTION = ... # type: Any
|
||||
TclError: Any
|
||||
wantobjects: Any
|
||||
TkVersion: Any
|
||||
TclVersion: Any
|
||||
READABLE: Any
|
||||
WRITABLE: Any
|
||||
EXCEPTION: Any
|
||||
|
||||
class Event: ...
|
||||
|
||||
@@ -18,10 +18,10 @@ class Variable:
|
||||
def __init__(self, master: Optional[Any] = ..., value: Optional[Any] = ..., name: Optional[Any] = ...): ...
|
||||
def __del__(self): ...
|
||||
def set(self, value): ...
|
||||
initialize = ... # type: Any
|
||||
initialize: Any
|
||||
def get(self): ...
|
||||
def trace_variable(self, mode, callback): ...
|
||||
trace = ... # type: Any
|
||||
trace: Any
|
||||
def trace_vdelete(self, mode, cbname): ...
|
||||
def trace_vinfo(self): ...
|
||||
def __eq__(self, other): ...
|
||||
@@ -41,13 +41,13 @@ class DoubleVar(Variable):
|
||||
class BooleanVar(Variable):
|
||||
def __init__(self, master: Optional[Any] = ..., value: Optional[Any] = ..., name: Optional[Any] = ...): ...
|
||||
def set(self, value): ...
|
||||
initialize = ... # type: Any
|
||||
initialize: Any
|
||||
def get(self): ...
|
||||
|
||||
def mainloop(n: int = ...): ...
|
||||
|
||||
getint = ... # type: Any
|
||||
getdouble = ... # type: Any
|
||||
getint: Any
|
||||
getdouble: Any
|
||||
|
||||
def getboolean(s): ...
|
||||
|
||||
@@ -59,7 +59,7 @@ class Misc:
|
||||
def tk_setPalette(self, *args, **kw): ...
|
||||
def tk_menuBar(self, *args): ...
|
||||
def wait_variable(self, name: str = ...): ...
|
||||
waitvar = ... # type: Any
|
||||
waitvar: Any
|
||||
def wait_window(self, window: Optional[Any] = ...): ...
|
||||
def wait_visibility(self, window: Optional[Any] = ...): ...
|
||||
def setvar(self, name: str = ..., value: str = ...): ...
|
||||
@@ -68,7 +68,7 @@ class Misc:
|
||||
def getdouble(self, s): ...
|
||||
def getboolean(self, s): ...
|
||||
def focus_set(self): ...
|
||||
focus = ... # type: Any
|
||||
focus: Any
|
||||
def focus_force(self): ...
|
||||
def focus_get(self): ...
|
||||
def focus_displayof(self): ...
|
||||
@@ -100,7 +100,7 @@ class Misc:
|
||||
def send(self, interp, cmd, *args): ...
|
||||
def lower(self, belowThis: Optional[Any] = ...): ...
|
||||
def tkraise(self, aboveThis: Optional[Any] = ...): ...
|
||||
lift = ... # type: Any
|
||||
lift: Any
|
||||
def winfo_atom(self, name, displayof: int = ...): ...
|
||||
def winfo_atomname(self, id, displayof: int = ...): ...
|
||||
def winfo_cells(self): ...
|
||||
@@ -162,31 +162,31 @@ class Misc:
|
||||
def mainloop(self, n: int = ...): ...
|
||||
def quit(self): ...
|
||||
def nametowidget(self, name): ...
|
||||
register = ... # type: Any
|
||||
register: Any
|
||||
def configure(self, cnf: Optional[Any] = ..., **kw): ...
|
||||
config = ... # type: Any
|
||||
config: Any
|
||||
def cget(self, key): ...
|
||||
__getitem__ = ... # type: Any
|
||||
__getitem__: Any
|
||||
def __setitem__(self, key, value): ...
|
||||
def keys(self): ...
|
||||
def pack_propagate(self, flag=...): ...
|
||||
propagate = ... # type: Any
|
||||
propagate: Any
|
||||
def pack_slaves(self): ...
|
||||
slaves = ... # type: Any
|
||||
slaves: Any
|
||||
def place_slaves(self): ...
|
||||
def grid_anchor(self, anchor: Optional[Any] = ...): ...
|
||||
anchor = ... # type: Any
|
||||
anchor: Any
|
||||
def grid_bbox(self, column: Optional[Any] = ..., row: Optional[Any] = ..., col2: Optional[Any] = ...,
|
||||
row2: Optional[Any] = ...): ...
|
||||
bbox = ... # type: Any
|
||||
bbox: Any
|
||||
def grid_columnconfigure(self, index, cnf=..., **kw): ...
|
||||
columnconfigure = ... # type: Any
|
||||
columnconfigure: Any
|
||||
def grid_location(self, x, y): ...
|
||||
def grid_propagate(self, flag=...): ...
|
||||
def grid_rowconfigure(self, index, cnf=..., **kw): ...
|
||||
rowconfigure = ... # type: Any
|
||||
rowconfigure: Any
|
||||
def grid_size(self): ...
|
||||
size = ... # type: Any
|
||||
size: Any
|
||||
def grid_slaves(self, row: Optional[Any] = ..., column: Optional[Any] = ...): ...
|
||||
def event_add(self, virtual, *sequences): ...
|
||||
def event_delete(self, virtual, *sequences): ...
|
||||
@@ -196,9 +196,9 @@ class Misc:
|
||||
def image_types(self): ...
|
||||
|
||||
class CallWrapper:
|
||||
func = ... # type: Any
|
||||
subst = ... # type: Any
|
||||
widget = ... # type: Any
|
||||
func: Any
|
||||
subst: Any
|
||||
widget: Any
|
||||
def __init__(self, func, subst, widget): ...
|
||||
def __call__(self, *args): ...
|
||||
|
||||
@@ -215,68 +215,68 @@ class YView:
|
||||
class Wm:
|
||||
def wm_aspect(self, minNumer: Optional[Any] = ..., minDenom: Optional[Any] = ..., maxNumer: Optional[Any] = ...,
|
||||
maxDenom: Optional[Any] = ...): ...
|
||||
aspect = ... # type: Any
|
||||
aspect: Any
|
||||
def wm_attributes(self, *args): ...
|
||||
attributes = ... # type: Any
|
||||
attributes: Any
|
||||
def wm_client(self, name: Optional[Any] = ...): ...
|
||||
client = ... # type: Any
|
||||
client: Any
|
||||
def wm_colormapwindows(self, *wlist): ...
|
||||
colormapwindows = ... # type: Any
|
||||
colormapwindows: Any
|
||||
def wm_command(self, value: Optional[Any] = ...): ...
|
||||
command = ... # type: Any
|
||||
command: Any
|
||||
def wm_deiconify(self): ...
|
||||
deiconify = ... # type: Any
|
||||
deiconify: Any
|
||||
def wm_focusmodel(self, model: Optional[Any] = ...): ...
|
||||
focusmodel = ... # type: Any
|
||||
focusmodel: Any
|
||||
def wm_forget(self, window): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def wm_frame(self): ...
|
||||
frame = ... # type: Any
|
||||
frame: Any
|
||||
def wm_geometry(self, newGeometry: Optional[Any] = ...): ...
|
||||
geometry = ... # type: Any
|
||||
geometry: Any
|
||||
def wm_grid(self, baseWidth: Optional[Any] = ..., baseHeight: Optional[Any] = ..., widthInc: Optional[Any] = ...,
|
||||
heightInc: Optional[Any] = ...): ...
|
||||
grid = ... # type: Any
|
||||
grid: Any
|
||||
def wm_group(self, pathName: Optional[Any] = ...): ...
|
||||
group = ... # type: Any
|
||||
group: Any
|
||||
def wm_iconbitmap(self, bitmap: Optional[Any] = ..., default: Optional[Any] = ...): ...
|
||||
iconbitmap = ... # type: Any
|
||||
iconbitmap: Any
|
||||
def wm_iconify(self): ...
|
||||
iconify = ... # type: Any
|
||||
iconify: Any
|
||||
def wm_iconmask(self, bitmap: Optional[Any] = ...): ...
|
||||
iconmask = ... # type: Any
|
||||
iconmask: Any
|
||||
def wm_iconname(self, newName: Optional[Any] = ...): ...
|
||||
iconname = ... # type: Any
|
||||
iconname: Any
|
||||
def wm_iconphoto(self, default: bool = ..., *args): ...
|
||||
iconphoto = ... # type: Any
|
||||
iconphoto: Any
|
||||
def wm_iconposition(self, x: Optional[Any] = ..., y: Optional[Any] = ...): ...
|
||||
iconposition = ... # type: Any
|
||||
iconposition: Any
|
||||
def wm_iconwindow(self, pathName: Optional[Any] = ...): ...
|
||||
iconwindow = ... # type: Any
|
||||
iconwindow: Any
|
||||
def wm_manage(self, widget): ...
|
||||
manage = ... # type: Any
|
||||
manage: Any
|
||||
def wm_maxsize(self, width: Optional[Any] = ..., height: Optional[Any] = ...): ...
|
||||
maxsize = ... # type: Any
|
||||
maxsize: Any
|
||||
def wm_minsize(self, width: Optional[Any] = ..., height: Optional[Any] = ...): ...
|
||||
minsize = ... # type: Any
|
||||
minsize: Any
|
||||
def wm_overrideredirect(self, boolean: Optional[Any] = ...): ...
|
||||
overrideredirect = ... # type: Any
|
||||
overrideredirect: Any
|
||||
def wm_positionfrom(self, who: Optional[Any] = ...): ...
|
||||
positionfrom = ... # type: Any
|
||||
positionfrom: Any
|
||||
def wm_protocol(self, name: Optional[Any] = ..., func: Optional[Any] = ...): ...
|
||||
protocol = ... # type: Any
|
||||
protocol: Any
|
||||
def wm_resizable(self, width: Optional[Any] = ..., height: Optional[Any] = ...): ...
|
||||
resizable = ... # type: Any
|
||||
resizable: Any
|
||||
def wm_sizefrom(self, who: Optional[Any] = ...): ...
|
||||
sizefrom = ... # type: Any
|
||||
sizefrom: Any
|
||||
def wm_state(self, newstate: Optional[Any] = ...): ...
|
||||
state = ... # type: Any
|
||||
state: Any
|
||||
def wm_title(self, string: Optional[Any] = ...): ...
|
||||
title = ... # type: Any
|
||||
title: Any
|
||||
def wm_transient(self, master: Optional[Any] = ...): ...
|
||||
transient = ... # type: Any
|
||||
transient: Any
|
||||
def wm_withdraw(self): ...
|
||||
withdraw = ... # type: Any
|
||||
withdraw: Any
|
||||
|
||||
class Tk(Misc, Wm):
|
||||
master: Optional[Any]
|
||||
@@ -294,41 +294,41 @@ def Tcl(screenName: Optional[Any] = ..., baseName: Optional[Any] = ..., classNam
|
||||
|
||||
class Pack:
|
||||
def pack_configure(self, cnf=..., **kw): ...
|
||||
pack = ... # type: Any
|
||||
pack: Any
|
||||
def pack_forget(self): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def pack_info(self): ...
|
||||
info = ... # type: Any
|
||||
propagate = ... # type: Any
|
||||
slaves = ... # type: Any
|
||||
info: Any
|
||||
propagate: Any
|
||||
slaves: Any
|
||||
|
||||
class Place:
|
||||
def place_configure(self, cnf=..., **kw): ...
|
||||
place = ... # type: Any
|
||||
place: Any
|
||||
def place_forget(self): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def place_info(self): ...
|
||||
info = ... # type: Any
|
||||
slaves = ... # type: Any
|
||||
info: Any
|
||||
slaves: Any
|
||||
|
||||
class Grid:
|
||||
def grid_configure(self, cnf=..., **kw): ...
|
||||
grid = ... # type: Any
|
||||
bbox = ... # type: Any
|
||||
columnconfigure = ... # type: Any
|
||||
grid: Any
|
||||
bbox: Any
|
||||
columnconfigure: Any
|
||||
def grid_forget(self): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def grid_remove(self): ...
|
||||
def grid_info(self): ...
|
||||
info = ... # type: Any
|
||||
location = ... # type: Any
|
||||
propagate = ... # type: Any
|
||||
rowconfigure = ... # type: Any
|
||||
size = ... # type: Any
|
||||
slaves = ... # type: Any
|
||||
info: Any
|
||||
location: Any
|
||||
propagate: Any
|
||||
rowconfigure: Any
|
||||
size: Any
|
||||
slaves: Any
|
||||
|
||||
class BaseWidget(Misc):
|
||||
widgetName = ... # type: Any
|
||||
widgetName: Any
|
||||
def __init__(self, master, widgetName, cnf=..., kw=..., extra=...): ...
|
||||
def destroy(self): ...
|
||||
|
||||
@@ -385,13 +385,13 @@ class Canvas(Widget, XView, YView):
|
||||
def insert(self, *args): ...
|
||||
def itemcget(self, tagOrId, option): ...
|
||||
def itemconfigure(self, tagOrId, cnf: Optional[Any] = ..., **kw): ...
|
||||
itemconfig = ... # type: Any
|
||||
itemconfig: Any
|
||||
def tag_lower(self, *args): ...
|
||||
lower = ... # type: Any
|
||||
lower: Any
|
||||
def move(self, *args): ...
|
||||
def postscript(self, cnf=..., **kw): ...
|
||||
def tag_raise(self, *args): ...
|
||||
lift = ... # type: Any
|
||||
lift: Any
|
||||
def scale(self, *args): ...
|
||||
def scan_mark(self, x, y): ...
|
||||
def scan_dragto(self, x, y, gain: int = ...): ...
|
||||
@@ -420,17 +420,17 @@ class Entry(Widget, XView):
|
||||
def scan_mark(self, x): ...
|
||||
def scan_dragto(self, x): ...
|
||||
def selection_adjust(self, index): ...
|
||||
select_adjust = ... # type: Any
|
||||
select_adjust: Any
|
||||
def selection_clear(self): ...
|
||||
select_clear = ... # type: Any
|
||||
select_clear: Any
|
||||
def selection_from(self, index): ...
|
||||
select_from = ... # type: Any
|
||||
select_from: Any
|
||||
def selection_present(self): ...
|
||||
select_present = ... # type: Any
|
||||
select_present: Any
|
||||
def selection_range(self, start, end): ...
|
||||
select_range = ... # type: Any
|
||||
select_range: Any
|
||||
def selection_to(self, index): ...
|
||||
select_to = ... # type: Any
|
||||
select_to: Any
|
||||
|
||||
class Frame(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., cnf=..., **kw): ...
|
||||
@@ -452,17 +452,17 @@ class Listbox(Widget, XView, YView):
|
||||
def scan_dragto(self, x, y): ...
|
||||
def see(self, index): ...
|
||||
def selection_anchor(self, index): ...
|
||||
select_anchor = ... # type: Any
|
||||
select_anchor: Any
|
||||
def selection_clear(self, first, last: Optional[Any] = ...): ... # type: ignore
|
||||
select_clear = ... # type: Any
|
||||
select_clear: Any
|
||||
def selection_includes(self, index): ...
|
||||
select_includes = ... # type: Any
|
||||
select_includes: Any
|
||||
def selection_set(self, first, last: Optional[Any] = ...): ...
|
||||
select_set = ... # type: Any
|
||||
select_set: Any
|
||||
def size(self): ...
|
||||
def itemcget(self, index, option): ...
|
||||
def itemconfigure(self, index, cnf: Optional[Any] = ..., **kw): ...
|
||||
itemconfig = ... # type: Any
|
||||
itemconfig: Any
|
||||
|
||||
class Menu(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., cnf=..., **kw): ...
|
||||
@@ -484,7 +484,7 @@ class Menu(Widget):
|
||||
def delete(self, index1, index2: Optional[Any] = ...): ...
|
||||
def entrycget(self, index, option): ...
|
||||
def entryconfigure(self, index, cnf: Optional[Any] = ..., **kw): ...
|
||||
entryconfig = ... # type: Any
|
||||
entryconfig: Any
|
||||
def index(self, index): ...
|
||||
def invoke(self, index): ...
|
||||
def post(self, x, y): ...
|
||||
@@ -564,7 +564,7 @@ class Text(Widget, XView, YView):
|
||||
def tag_bind(self, tagName, sequence, func, add: Optional[Any] = ...): ...
|
||||
def tag_cget(self, tagName, option): ...
|
||||
def tag_configure(self, tagName, cnf: Optional[Any] = ..., **kw): ...
|
||||
tag_config = ... # type: Any
|
||||
tag_config: Any
|
||||
def tag_delete(self, *tagNames): ...
|
||||
def tag_lower(self, tagName, belowThis: Optional[Any] = ...): ...
|
||||
def tag_names(self, index: Optional[Any] = ...): ...
|
||||
@@ -575,7 +575,7 @@ class Text(Widget, XView, YView):
|
||||
def tag_remove(self, tagName, index1, index2: Optional[Any] = ...): ...
|
||||
def window_cget(self, index, option): ...
|
||||
def window_configure(self, index, cnf: Optional[Any] = ..., **kw): ...
|
||||
window_config = ... # type: Any
|
||||
window_config: Any
|
||||
def window_create(self, index, cnf=..., **kw): ...
|
||||
def window_names(self): ...
|
||||
def yview_pickplace(self, *what): ...
|
||||
@@ -585,21 +585,21 @@ class _setit:
|
||||
def __call__(self, *args): ...
|
||||
|
||||
class OptionMenu(Menubutton):
|
||||
widgetName = ... # type: Any
|
||||
menuname = ... # type: Any
|
||||
widgetName: Any
|
||||
menuname: Any
|
||||
def __init__(self, master, variable, value, *values, **kwargs): ...
|
||||
def __getitem__(self, name): ...
|
||||
def destroy(self): ...
|
||||
|
||||
class Image:
|
||||
name = ... # type: Any
|
||||
tk = ... # type: Any
|
||||
name: Any
|
||||
tk: Any
|
||||
def __init__(self, imgtype, name: Optional[Any] = ..., cnf=..., master: Optional[Any] = ..., **kw): ...
|
||||
def __del__(self): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __getitem__(self, key): ...
|
||||
def configure(self, **kw): ...
|
||||
config = ... # type: Any
|
||||
config: Any
|
||||
def height(self): ...
|
||||
def type(self): ...
|
||||
def width(self): ...
|
||||
@@ -647,7 +647,7 @@ class PanedWindow(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., cnf=..., **kw): ...
|
||||
def add(self, child, **kw): ...
|
||||
def remove(self, child): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def identify(self, x, y): ...
|
||||
def proxy(self, *args): ...
|
||||
def proxy_coord(self): ...
|
||||
@@ -659,5 +659,5 @@ class PanedWindow(Widget):
|
||||
def sash_place(self, index, x, y): ...
|
||||
def panecget(self, child, option): ...
|
||||
def paneconfigure(self, tagOrId, cnf: Optional[Any] = ..., **kw): ...
|
||||
paneconfig = ... # type: Any
|
||||
paneconfig: Any
|
||||
def panes(self): ...
|
||||
|
||||
@@ -1,79 +1,79 @@
|
||||
from typing import Any
|
||||
|
||||
NO = ... # type: Any
|
||||
YES = ... # type: Any
|
||||
TRUE = ... # type: Any
|
||||
FALSE = ... # type: Any
|
||||
ON = ... # type: Any
|
||||
OFF = ... # type: Any
|
||||
N = ... # type: Any
|
||||
S = ... # type: Any
|
||||
W = ... # type: Any
|
||||
E = ... # type: Any
|
||||
NW = ... # type: Any
|
||||
SW = ... # type: Any
|
||||
NE = ... # type: Any
|
||||
SE = ... # type: Any
|
||||
NS = ... # type: Any
|
||||
EW = ... # type: Any
|
||||
NSEW = ... # type: Any
|
||||
CENTER = ... # type: Any
|
||||
NONE = ... # type: Any
|
||||
X = ... # type: Any
|
||||
Y = ... # type: Any
|
||||
BOTH = ... # type: Any
|
||||
LEFT = ... # type: Any
|
||||
TOP = ... # type: Any
|
||||
RIGHT = ... # type: Any
|
||||
BOTTOM = ... # type: Any
|
||||
RAISED = ... # type: Any
|
||||
SUNKEN = ... # type: Any
|
||||
FLAT = ... # type: Any
|
||||
RIDGE = ... # type: Any
|
||||
GROOVE = ... # type: Any
|
||||
SOLID = ... # type: Any
|
||||
HORIZONTAL = ... # type: Any
|
||||
VERTICAL = ... # type: Any
|
||||
NUMERIC = ... # type: Any
|
||||
CHAR = ... # type: Any
|
||||
WORD = ... # type: Any
|
||||
BASELINE = ... # type: Any
|
||||
INSIDE = ... # type: Any
|
||||
OUTSIDE = ... # type: Any
|
||||
SEL = ... # type: Any
|
||||
SEL_FIRST = ... # type: Any
|
||||
SEL_LAST = ... # type: Any
|
||||
END = ... # type: Any
|
||||
INSERT = ... # type: Any
|
||||
CURRENT = ... # type: Any
|
||||
ANCHOR = ... # type: Any
|
||||
ALL = ... # type: Any
|
||||
NORMAL = ... # type: Any
|
||||
DISABLED = ... # type: Any
|
||||
ACTIVE = ... # type: Any
|
||||
HIDDEN = ... # type: Any
|
||||
CASCADE = ... # type: Any
|
||||
CHECKBUTTON = ... # type: Any
|
||||
COMMAND = ... # type: Any
|
||||
RADIOBUTTON = ... # type: Any
|
||||
SEPARATOR = ... # type: Any
|
||||
SINGLE = ... # type: Any
|
||||
BROWSE = ... # type: Any
|
||||
MULTIPLE = ... # type: Any
|
||||
EXTENDED = ... # type: Any
|
||||
DOTBOX = ... # type: Any
|
||||
UNDERLINE = ... # type: Any
|
||||
PIESLICE = ... # type: Any
|
||||
CHORD = ... # type: Any
|
||||
ARC = ... # type: Any
|
||||
FIRST = ... # type: Any
|
||||
LAST = ... # type: Any
|
||||
BUTT = ... # type: Any
|
||||
PROJECTING = ... # type: Any
|
||||
ROUND = ... # type: Any
|
||||
BEVEL = ... # type: Any
|
||||
MITER = ... # type: Any
|
||||
MOVETO = ... # type: Any
|
||||
SCROLL = ... # type: Any
|
||||
UNITS = ... # type: Any
|
||||
PAGES = ... # type: Any
|
||||
NO: Any
|
||||
YES: Any
|
||||
TRUE: Any
|
||||
FALSE: Any
|
||||
ON: Any
|
||||
OFF: Any
|
||||
N: Any
|
||||
S: Any
|
||||
W: Any
|
||||
E: Any
|
||||
NW: Any
|
||||
SW: Any
|
||||
NE: Any
|
||||
SE: Any
|
||||
NS: Any
|
||||
EW: Any
|
||||
NSEW: Any
|
||||
CENTER: Any
|
||||
NONE: Any
|
||||
X: Any
|
||||
Y: Any
|
||||
BOTH: Any
|
||||
LEFT: Any
|
||||
TOP: Any
|
||||
RIGHT: Any
|
||||
BOTTOM: Any
|
||||
RAISED: Any
|
||||
SUNKEN: Any
|
||||
FLAT: Any
|
||||
RIDGE: Any
|
||||
GROOVE: Any
|
||||
SOLID: Any
|
||||
HORIZONTAL: Any
|
||||
VERTICAL: Any
|
||||
NUMERIC: Any
|
||||
CHAR: Any
|
||||
WORD: Any
|
||||
BASELINE: Any
|
||||
INSIDE: Any
|
||||
OUTSIDE: Any
|
||||
SEL: Any
|
||||
SEL_FIRST: Any
|
||||
SEL_LAST: Any
|
||||
END: Any
|
||||
INSERT: Any
|
||||
CURRENT: Any
|
||||
ANCHOR: Any
|
||||
ALL: Any
|
||||
NORMAL: Any
|
||||
DISABLED: Any
|
||||
ACTIVE: Any
|
||||
HIDDEN: Any
|
||||
CASCADE: Any
|
||||
CHECKBUTTON: Any
|
||||
COMMAND: Any
|
||||
RADIOBUTTON: Any
|
||||
SEPARATOR: Any
|
||||
SINGLE: Any
|
||||
BROWSE: Any
|
||||
MULTIPLE: Any
|
||||
EXTENDED: Any
|
||||
DOTBOX: Any
|
||||
UNDERLINE: Any
|
||||
PIESLICE: Any
|
||||
CHORD: Any
|
||||
ARC: Any
|
||||
FIRST: Any
|
||||
LAST: Any
|
||||
BUTT: Any
|
||||
PROJECTING: Any
|
||||
ROUND: Any
|
||||
BEVEL: Any
|
||||
MITER: Any
|
||||
MOVETO: Any
|
||||
SCROLL: Any
|
||||
UNITS: Any
|
||||
PAGES: Any
|
||||
|
||||
@@ -6,8 +6,8 @@ def tclobjs_to_py(adict): ...
|
||||
def setup_master(master: Optional[Any] = ...): ...
|
||||
|
||||
class Style:
|
||||
master = ... # type: Any
|
||||
tk = ... # type: Any
|
||||
master: Any
|
||||
tk: Any
|
||||
def __init__(self, master: Optional[Any] = ...): ...
|
||||
def configure(self, style, query_opt: Optional[Any] = ..., **kw): ...
|
||||
def map(self, style, query_opt: Optional[Any] = ..., **kw): ...
|
||||
@@ -55,7 +55,7 @@ class Label(Widget):
|
||||
class Labelframe(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., **kw): ...
|
||||
|
||||
LabelFrame = ... # type: Any
|
||||
LabelFrame: Any
|
||||
|
||||
class Menubutton(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., **kw): ...
|
||||
@@ -75,12 +75,12 @@ class Notebook(Widget):
|
||||
|
||||
class Panedwindow(Widget, tkinter.PanedWindow):
|
||||
def __init__(self, master: Optional[Any] = ..., **kw): ...
|
||||
forget = ... # type: Any
|
||||
forget: Any
|
||||
def insert(self, pos, child, **kw): ...
|
||||
def pane(self, pane, option: Optional[Any] = ..., **kw): ...
|
||||
def sashpos(self, index, newpos: Optional[Any] = ...): ...
|
||||
|
||||
PanedWindow = ... # type: Any
|
||||
PanedWindow: Any
|
||||
|
||||
class Progressbar(Widget):
|
||||
def __init__(self, master: Optional[Any] = ..., **kw): ...
|
||||
@@ -131,7 +131,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
def insert(self, parent, index, iid: Optional[Any] = ..., **kw): ...
|
||||
def item(self, item, option: Optional[Any] = ..., **kw): ...
|
||||
def move(self, item, parent, index): ...
|
||||
reattach = ... # type: Any
|
||||
reattach: Any
|
||||
def next(self, item): ...
|
||||
def parent(self, item): ...
|
||||
def prev(self, item): ...
|
||||
@@ -147,11 +147,11 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
def tag_has(self, tagname, item: Optional[Any] = ...): ...
|
||||
|
||||
class LabeledScale(Frame):
|
||||
label = ... # type: Any
|
||||
scale = ... # type: Any
|
||||
label: Any
|
||||
scale: Any
|
||||
def __init__(self, master: Optional[Any] = ..., variable: Optional[Any] = ..., from_: int = ..., to: int = ..., **kw): ...
|
||||
def destroy(self): ...
|
||||
value = ... # type: Any
|
||||
value: Any
|
||||
|
||||
class OptionMenu(Menubutton):
|
||||
def __init__(self, master, variable, default: Optional[Any] = ..., *values, **kwargs): ...
|
||||
|
||||
@@ -3,9 +3,9 @@ from builtins import open as _builtin_open
|
||||
import sys
|
||||
from token import * # noqa: F403
|
||||
|
||||
COMMENT = ... # type: int
|
||||
NL = ... # type: int
|
||||
ENCODING = ... # type: int
|
||||
COMMENT: int
|
||||
NL: int
|
||||
ENCODING: int
|
||||
|
||||
_Position = Tuple[int, int]
|
||||
|
||||
@@ -28,10 +28,10 @@ class TokenError(Exception): ...
|
||||
class StopTokenizing(Exception): ...
|
||||
|
||||
class Untokenizer:
|
||||
tokens = ... # type: List[str]
|
||||
prev_row = ... # type: int
|
||||
prev_col = ... # type: int
|
||||
encoding = ... # type: Optional[str]
|
||||
tokens: List[str]
|
||||
prev_row: int
|
||||
prev_col: int
|
||||
encoding: Optional[str]
|
||||
def __init__(self) -> None: ...
|
||||
def add_whitespace(self, start: _Position) -> None: ...
|
||||
def untokenize(self, iterable: Iterable[_Token]) -> str: ...
|
||||
|
||||
@@ -15,22 +15,22 @@ def take_snapshot() -> Snapshot: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
class DomainFilter:
|
||||
inclusive = ... # type: bool
|
||||
domain = ... # type: int
|
||||
inclusive: bool
|
||||
domain: int
|
||||
def __init__(self, inclusive: bool, domain: int) -> None: ...
|
||||
|
||||
class Filter:
|
||||
if sys.version_info >= (3, 6):
|
||||
domain = ... # type: Optional[int]
|
||||
inclusive = ... # type: bool
|
||||
lineno = ... # type: Optional[int]
|
||||
filename_pattern = ... # type: str
|
||||
all_frames = ... # type: bool
|
||||
domain: Optional[int]
|
||||
inclusive: bool
|
||||
lineno: Optional[int]
|
||||
filename_pattern: str
|
||||
all_frames: bool
|
||||
def __init__(self, inclusive: bool, filename_pattern: str, lineno: Optional[int] = ..., all_frames: bool = ..., domain: Optional[int] = ...) -> None: ...
|
||||
|
||||
class Frame:
|
||||
filename = ... # type: str
|
||||
lineno = ... # type: int
|
||||
filename: str
|
||||
lineno: int
|
||||
|
||||
class Snapshot:
|
||||
def compare_to(self, old_snapshot: Snapshot, key_type: str, cumulative: bool = ...) -> List[StatisticDiff]: ...
|
||||
@@ -42,24 +42,24 @@ class Snapshot:
|
||||
@classmethod
|
||||
def load(cls, filename: str) -> Snapshot: ...
|
||||
def statistics(self, key_type: str, cumulative: bool = ...) -> List[Statistic]: ...
|
||||
traceback_limit = ... # type: int
|
||||
traces = ... # type: Sequence[Trace]
|
||||
traceback_limit: int
|
||||
traces: Sequence[Trace]
|
||||
|
||||
class Statistic:
|
||||
count = ... # type: int
|
||||
size = ... # type: int
|
||||
traceback = ... # type: Traceback
|
||||
count: int
|
||||
size: int
|
||||
traceback: Traceback
|
||||
|
||||
class StatisticDiff:
|
||||
count = ... # type: int
|
||||
count_diff = ... # type: int
|
||||
size = ... # type: int
|
||||
size_diff = ... # type: int
|
||||
traceback = ... # type: Traceback
|
||||
count: int
|
||||
count_diff: int
|
||||
size: int
|
||||
size_diff: int
|
||||
traceback: Traceback
|
||||
|
||||
class Trace:
|
||||
size = ... # type: int
|
||||
traceback = ... # type: Traceback
|
||||
size: int
|
||||
traceback: Traceback
|
||||
|
||||
class Traceback(Sequence[Frame]):
|
||||
def format(self, limit: Optional[int] = ...) -> List[str]: ...
|
||||
|
||||
@@ -20,39 +20,39 @@ _KT = TypeVar('_KT')
|
||||
_VT = TypeVar('_VT')
|
||||
|
||||
class _Cell:
|
||||
cell_contents = ... # type: Any
|
||||
cell_contents: Any
|
||||
|
||||
class FunctionType:
|
||||
__closure__ = ... # type: Optional[Tuple[_Cell, ...]]
|
||||
__code__ = ... # type: CodeType
|
||||
__defaults__ = ... # type: Optional[Tuple[Any, ...]]
|
||||
__dict__ = ... # type: Dict[str, Any]
|
||||
__globals__ = ... # type: Dict[str, Any]
|
||||
__name__ = ... # type: str
|
||||
__qualname__ = ... # type: str
|
||||
__annotations__ = ... # type: Dict[str, Any]
|
||||
__kwdefaults__ = ... # type: Dict[str, Any]
|
||||
__closure__: Optional[Tuple[_Cell, ...]]
|
||||
__code__: CodeType
|
||||
__defaults__: Optional[Tuple[Any, ...]]
|
||||
__dict__: Dict[str, Any]
|
||||
__globals__: Dict[str, Any]
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
__annotations__: Dict[str, Any]
|
||||
__kwdefaults__: Dict[str, Any]
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def __get__(self, obj: Optional[object], type: Optional[type]) -> MethodType: ...
|
||||
LambdaType = FunctionType
|
||||
|
||||
class CodeType:
|
||||
"""Create a code object. Not for the faint of heart."""
|
||||
co_argcount = ... # type: int
|
||||
co_kwonlyargcount = ... # type: int
|
||||
co_nlocals = ... # type: int
|
||||
co_stacksize = ... # type: int
|
||||
co_flags = ... # type: int
|
||||
co_code = ... # type: bytes
|
||||
co_consts = ... # type: Tuple[Any, ...]
|
||||
co_names = ... # type: Tuple[str, ...]
|
||||
co_varnames = ... # type: Tuple[str, ...]
|
||||
co_filename = ... # type: str
|
||||
co_name = ... # type: str
|
||||
co_firstlineno = ... # type: int
|
||||
co_lnotab = ... # type: bytes
|
||||
co_freevars = ... # type: Tuple[str, ...]
|
||||
co_cellvars = ... # type: Tuple[str, ...]
|
||||
co_argcount: int
|
||||
co_kwonlyargcount: int
|
||||
co_nlocals: int
|
||||
co_stacksize: int
|
||||
co_flags: int
|
||||
co_code: bytes
|
||||
co_consts: Tuple[Any, ...]
|
||||
co_names: Tuple[str, ...]
|
||||
co_varnames: Tuple[str, ...]
|
||||
co_filename: str
|
||||
co_name: str
|
||||
co_firstlineno: int
|
||||
co_lnotab: bytes
|
||||
co_freevars: Tuple[str, ...]
|
||||
co_cellvars: Tuple[str, ...]
|
||||
def __init__(
|
||||
self,
|
||||
argcount: int,
|
||||
@@ -85,10 +85,10 @@ class SimpleNamespace:
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
|
||||
class GeneratorType:
|
||||
gi_code = ... # type: CodeType
|
||||
gi_frame = ... # type: FrameType
|
||||
gi_running = ... # type: bool
|
||||
gi_yieldfrom = ... # type: Optional[GeneratorType]
|
||||
gi_code: CodeType
|
||||
gi_frame: FrameType
|
||||
gi_running: bool
|
||||
gi_yieldfrom: Optional[GeneratorType]
|
||||
def __iter__(self) -> GeneratorType: ...
|
||||
def __next__(self) -> Any: ...
|
||||
def close(self) -> None: ...
|
||||
@@ -114,10 +114,10 @@ if sys.version_info >= (3, 6):
|
||||
def aclose(self) -> Awaitable[_T_co]: ...
|
||||
|
||||
class CoroutineType:
|
||||
cr_await = ... # type: Optional[Any]
|
||||
cr_code = ... # type: CodeType
|
||||
cr_frame = ... # type: FrameType
|
||||
cr_running = ... # type: bool
|
||||
cr_await: Optional[Any]
|
||||
cr_code: CodeType
|
||||
cr_frame: FrameType
|
||||
cr_running: bool
|
||||
def close(self) -> None: ...
|
||||
def send(self, arg: Any) -> Any: ...
|
||||
@overload
|
||||
@@ -141,16 +141,16 @@ class _StaticFunctionType:
|
||||
def __get__(self, obj: Optional[object], type: Optional[type]) -> FunctionType: ...
|
||||
|
||||
class MethodType:
|
||||
__func__ = ... # type: _StaticFunctionType
|
||||
__self__ = ... # type: object
|
||||
__name__ = ... # type: str
|
||||
__qualname__ = ... # type: str
|
||||
__func__: _StaticFunctionType
|
||||
__self__: object
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
def __init__(self, func: Callable, obj: object) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
class BuiltinFunctionType:
|
||||
__self__ = ... # type: Union[object, ModuleType]
|
||||
__name__ = ... # type: str
|
||||
__qualname__ = ... # type: str
|
||||
__self__: Union[object, ModuleType]
|
||||
__name__: str
|
||||
__qualname__: str
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
BuiltinMethodType = BuiltinFunctionType
|
||||
|
||||
@@ -170,14 +170,14 @@ class TracebackType:
|
||||
def tb_lineno(self) -> int: ...
|
||||
|
||||
class FrameType:
|
||||
f_back = ... # type: FrameType
|
||||
f_builtins = ... # type: Dict[str, Any]
|
||||
f_code = ... # type: CodeType
|
||||
f_globals = ... # type: Dict[str, Any]
|
||||
f_lasti = ... # type: int
|
||||
f_lineno = ... # type: int
|
||||
f_locals = ... # type: Dict[str, Any]
|
||||
f_trace = ... # type: Callable[[], None]
|
||||
f_back: FrameType
|
||||
f_builtins: Dict[str, Any]
|
||||
f_code: CodeType
|
||||
f_globals: Dict[str, Any]
|
||||
f_lasti: int
|
||||
f_lineno: int
|
||||
f_locals: Dict[str, Any]
|
||||
f_trace: Callable[[], None]
|
||||
if sys.version_info >= (3, 7):
|
||||
f_trace_lines: bool
|
||||
f_trace_opcodes: bool
|
||||
@@ -185,14 +185,14 @@ class FrameType:
|
||||
def clear(self) -> None: ...
|
||||
|
||||
class GetSetDescriptorType:
|
||||
__name__ = ... # type: str
|
||||
__objclass__ = ... # type: type
|
||||
__name__: str
|
||||
__objclass__: type
|
||||
def __get__(self, obj: Any, type: type = ...) -> Any: ...
|
||||
def __set__(self, obj: Any) -> None: ...
|
||||
def __delete__(self, obj: Any) -> None: ...
|
||||
class MemberDescriptorType:
|
||||
__name__ = ... # type: str
|
||||
__objclass__ = ... # type: type
|
||||
__name__: str
|
||||
__objclass__: type
|
||||
def __get__(self, obj: Any, type: type = ...) -> Any: ...
|
||||
def __set__(self, obj: Any) -> None: ...
|
||||
def __delete__(self, obj: Any) -> None: ...
|
||||
|
||||
@@ -502,12 +502,12 @@ class Match(Generic[AnyStr]):
|
||||
pos = 0
|
||||
endpos = 0
|
||||
lastindex = 0
|
||||
lastgroup = ... # type: AnyStr
|
||||
string = ... # type: AnyStr
|
||||
lastgroup: AnyStr
|
||||
string: AnyStr
|
||||
|
||||
# The regular expression object whose match() or search() method produced
|
||||
# this match instance.
|
||||
re = ... # type: Pattern[AnyStr]
|
||||
re: Pattern[AnyStr]
|
||||
|
||||
def expand(self, template: AnyStr) -> AnyStr: ...
|
||||
|
||||
@@ -532,9 +532,9 @@ class Match(Generic[AnyStr]):
|
||||
|
||||
class Pattern(Generic[AnyStr]):
|
||||
flags = 0
|
||||
groupindex = ... # type: Mapping[str, int]
|
||||
groupindex: Mapping[str, int]
|
||||
groups = 0
|
||||
pattern = ... # type: AnyStr
|
||||
pattern: AnyStr
|
||||
|
||||
def search(self, string: AnyStr, pos: int = ...,
|
||||
endpos: int = ...) -> Optional[Match[AnyStr]]: ...
|
||||
@@ -577,10 +577,10 @@ def cast(tp: str, obj: Any) -> Any: ...
|
||||
|
||||
# NamedTuple is special-cased in the type checker
|
||||
class NamedTuple(tuple):
|
||||
_field_types = ... # type: collections.OrderedDict[str, Type[Any]]
|
||||
_field_types: collections.OrderedDict[str, Type[Any]]
|
||||
_field_defaults: Dict[str, Any] = ...
|
||||
_fields = ... # type: Tuple[str, ...]
|
||||
_source = ... # type: str
|
||||
_fields: Tuple[str, ...]
|
||||
_source: str
|
||||
|
||||
def __init__(self, typename: str, fields: Iterable[Tuple[str, Any]] = ..., *,
|
||||
verbose: bool = ..., rename: bool = ..., **kwargs: Any) -> None: ...
|
||||
|
||||
@@ -25,11 +25,11 @@ class SkipTest(Exception):
|
||||
|
||||
|
||||
class TestCase:
|
||||
failureException = ... # type: Type[BaseException]
|
||||
longMessage = ... # type: bool
|
||||
maxDiff = ... # type: Optional[int]
|
||||
failureException: Type[BaseException]
|
||||
longMessage: bool
|
||||
maxDiff: Optional[int]
|
||||
# undocumented
|
||||
_testMethodName = ... # type: str
|
||||
_testMethodName: str
|
||||
def __init__(self, methodName: str = ...) -> None: ...
|
||||
def setUp(self) -> None: ...
|
||||
def tearDown(self) -> None: ...
|
||||
@@ -199,22 +199,22 @@ class FunctionTestCase(TestCase):
|
||||
description: Optional[str] = ...) -> None: ...
|
||||
|
||||
class _AssertRaisesContext(Generic[_E]):
|
||||
exception = ... # type: _E
|
||||
exception: _E
|
||||
def __enter__(self) -> _AssertRaisesContext[_E]: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
|
||||
class _AssertWarnsContext:
|
||||
warning = ... # type: Warning
|
||||
filename = ... # type: str
|
||||
lineno = ... # type: int
|
||||
warning: Warning
|
||||
filename: str
|
||||
lineno: int
|
||||
def __enter__(self) -> _AssertWarnsContext: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
|
||||
class _AssertLogsContext:
|
||||
records = ... # type: List[logging.LogRecord]
|
||||
output = ... # type: List[str]
|
||||
records: List[logging.LogRecord]
|
||||
output: List[str]
|
||||
def __enter__(self) -> _AssertLogsContext: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
@@ -234,10 +234,10 @@ class TestSuite(Iterable[_TestType]):
|
||||
|
||||
class TestLoader:
|
||||
if sys.version_info >= (3, 5):
|
||||
errors = ... # type: List[Type[BaseException]]
|
||||
testMethodPrefix = ... # type: str
|
||||
sortTestMethodsUsing = ... # type: Callable[[str, str], bool]
|
||||
suiteClass = ... # type: Callable[[List[TestCase]], TestSuite]
|
||||
errors: List[Type[BaseException]]
|
||||
testMethodPrefix: str
|
||||
sortTestMethodsUsing: Callable[[str, str], bool]
|
||||
suiteClass: Callable[[List[TestCase]], TestSuite]
|
||||
def loadTestsFromTestCase(self,
|
||||
testCaseClass: Type[TestCase]) -> TestSuite: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
@@ -260,16 +260,16 @@ _SysExcInfoType = Tuple[Optional[Type[BaseException]],
|
||||
Optional[TracebackType]]
|
||||
|
||||
class TestResult:
|
||||
errors = ... # type: List[Tuple[TestCase, str]]
|
||||
failures = ... # type: List[Tuple[TestCase, str]]
|
||||
skipped = ... # type: List[Tuple[TestCase, str]]
|
||||
expectedFailures = ... # type: List[Tuple[TestCase, str]]
|
||||
unexpectedSuccesses = ... # type: List[TestCase]
|
||||
shouldStop = ... # type: bool
|
||||
testsRun = ... # type: int
|
||||
buffer = ... # type: bool
|
||||
failfast = ... # type: bool
|
||||
tb_locals = ... # type: bool
|
||||
errors: List[Tuple[TestCase, str]]
|
||||
failures: List[Tuple[TestCase, str]]
|
||||
skipped: List[Tuple[TestCase, str]]
|
||||
expectedFailures: List[Tuple[TestCase, str]]
|
||||
unexpectedSuccesses: List[TestCase]
|
||||
shouldStop: bool
|
||||
testsRun: int
|
||||
buffer: bool
|
||||
failfast: bool
|
||||
tb_locals: bool
|
||||
def wasSuccessful(self) -> bool: ...
|
||||
def stop(self) -> None: ...
|
||||
def startTest(self, test: TestCase) -> None: ...
|
||||
@@ -300,7 +300,7 @@ class TextTestResult(TestResult):
|
||||
def printErrorList(self, flavour: str, errors: Tuple[TestCase, str]) -> None: ...
|
||||
_TextTestResult = TextTestResult
|
||||
|
||||
defaultTestLoader = ... # type: TestLoader
|
||||
defaultTestLoader: TestLoader
|
||||
|
||||
_ResultClassType = Callable[[IO[str], bool, int], TestResult]
|
||||
|
||||
@@ -334,7 +334,7 @@ class TextTestRunner(TestRunner):
|
||||
|
||||
# not really documented
|
||||
class TestProgram:
|
||||
result = ... # type: TestResult
|
||||
result: TestResult
|
||||
def runTests(self) -> None: ... # undocumented
|
||||
|
||||
def main(module: Union[None, str, ModuleType] = ...,
|
||||
|
||||
@@ -3,26 +3,26 @@
|
||||
import sys
|
||||
from typing import Any, Optional, Text, Type
|
||||
|
||||
FILTER_DIR = ... # type: Any
|
||||
FILTER_DIR: Any
|
||||
|
||||
class _slotted: ...
|
||||
|
||||
class _SentinelObject:
|
||||
name = ... # type: Any
|
||||
name: Any
|
||||
def __init__(self, name: Any) -> None: ...
|
||||
|
||||
class _Sentinel:
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
|
||||
sentinel = ... # type: Any
|
||||
DEFAULT = ... # type: Any
|
||||
sentinel: Any
|
||||
DEFAULT: Any
|
||||
|
||||
class _CallList(list):
|
||||
def __contains__(self, value: Any) -> bool: ...
|
||||
|
||||
class _MockIter:
|
||||
obj = ... # type: Any
|
||||
obj: Any
|
||||
def __init__(self, obj: Any) -> None: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
def __next__(self) -> Any: ...
|
||||
@@ -36,50 +36,50 @@ class Base:
|
||||
NonCallableMock: Any
|
||||
|
||||
class CallableMixin(Base):
|
||||
side_effect = ... # type: Any
|
||||
side_effect: Any
|
||||
def __init__(self, spec: Optional[Any] = ..., side_effect: Optional[Any] = ..., return_value: Any = ..., wraps: Optional[Any] = ..., name: Optional[Any] = ..., spec_set: Optional[Any] = ..., parent: Optional[Any] = ..., _spec_state: Optional[Any] = ..., _new_name: Any = ..., _new_parent: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
||||
def __call__(_mock_self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
|
||||
Mock: Any
|
||||
|
||||
class _patch:
|
||||
attribute_name = ... # type: Any
|
||||
getter = ... # type: Any
|
||||
attribute = ... # type: Any
|
||||
new = ... # type: Any
|
||||
new_callable = ... # type: Any
|
||||
spec = ... # type: Any
|
||||
create = ... # type: bool
|
||||
has_local = ... # type: Any
|
||||
spec_set = ... # type: Any
|
||||
autospec = ... # type: Any
|
||||
kwargs = ... # type: Any
|
||||
additional_patchers = ... # type: Any
|
||||
attribute_name: Any
|
||||
getter: Any
|
||||
attribute: Any
|
||||
new: Any
|
||||
new_callable: Any
|
||||
spec: Any
|
||||
create: bool
|
||||
has_local: Any
|
||||
spec_set: Any
|
||||
autospec: Any
|
||||
kwargs: Any
|
||||
additional_patchers: Any
|
||||
def __init__(self, getter: Any, attribute: Any, new: Any, spec: Any, create: Any, spec_set: Any, autospec: Any, new_callable: Any, kwargs: Any) -> None: ...
|
||||
def copy(self) -> Any: ...
|
||||
def __call__(self, func: Any) -> Any: ...
|
||||
def decorate_class(self, klass: Any) -> Any: ...
|
||||
def decorate_callable(self, func: Any) -> Any: ...
|
||||
def get_original(self) -> Any: ...
|
||||
target = ... # type: Any
|
||||
temp_original = ... # type: Any
|
||||
is_local = ... # type: Any
|
||||
target: Any
|
||||
temp_original: Any
|
||||
is_local: Any
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, *exc_info: Any) -> Any: ...
|
||||
def start(self) -> Any: ...
|
||||
def stop(self) -> Any: ...
|
||||
|
||||
class _patch_dict:
|
||||
in_dict = ... # type: Any
|
||||
values = ... # type: Any
|
||||
clear = ... # type: Any
|
||||
in_dict: Any
|
||||
values: Any
|
||||
clear: Any
|
||||
def __init__(self, in_dict: Any, values: Any = ..., clear: Any = ..., **kwargs: Any) -> None: ...
|
||||
def __call__(self, f: Any) -> Any: ...
|
||||
def decorate_class(self, klass: Any) -> Any: ...
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, *args: Any) -> Any: ...
|
||||
start = ... # type: Any
|
||||
stop = ... # type: Any
|
||||
start: Any
|
||||
stop: Any
|
||||
|
||||
class _patcher:
|
||||
TEST_PREFIX: str
|
||||
@@ -98,8 +98,8 @@ NonCallableMagicMock: Any
|
||||
MagicMock: Any
|
||||
|
||||
class MagicProxy:
|
||||
name = ... # type: Any
|
||||
parent = ... # type: Any
|
||||
name: Any
|
||||
parent: Any
|
||||
def __init__(self, name: Any, parent: Any) -> None: ...
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def create_mock(self) -> Any: ...
|
||||
@@ -109,33 +109,33 @@ class _ANY:
|
||||
def __eq__(self, other: Any) -> bool: ...
|
||||
def __ne__(self, other: Any) -> bool: ...
|
||||
|
||||
ANY = ... # type: Any
|
||||
ANY: Any
|
||||
|
||||
class _Call(tuple):
|
||||
def __new__(cls, value: Any = ..., name: Optional[Any] = ..., parent: Optional[Any] = ..., two: bool = ..., from_kall: bool = ...) -> Any: ...
|
||||
name = ... # type: Any
|
||||
parent = ... # type: Any
|
||||
from_kall = ... # type: Any
|
||||
name: Any
|
||||
parent: Any
|
||||
from_kall: Any
|
||||
def __init__(self, value: Any = ..., name: Optional[Any] = ..., parent: Optional[Any] = ..., two: bool = ..., from_kall: bool = ...) -> None: ...
|
||||
def __eq__(self, other: Any) -> bool: ...
|
||||
__ne__ = ... # type: Any
|
||||
__ne__: Any
|
||||
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def __getattr__(self, attr: Any) -> Any: ...
|
||||
def count(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def index(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||
def call_list(self) -> Any: ...
|
||||
|
||||
call = ... # type: Any
|
||||
call: Any
|
||||
|
||||
def create_autospec(spec: Any, spec_set: Any = ..., instance: Any = ..., _parent: Optional[Any] = ..., _name: Optional[Any] = ..., **kwargs: Any) -> Any: ...
|
||||
|
||||
class _SpecState:
|
||||
spec = ... # type: Any
|
||||
ids = ... # type: Any
|
||||
spec_set = ... # type: Any
|
||||
parent = ... # type: Any
|
||||
instance = ... # type: Any
|
||||
name = ... # type: Any
|
||||
spec: Any
|
||||
ids: Any
|
||||
spec_set: Any
|
||||
parent: Any
|
||||
instance: Any
|
||||
name: Any
|
||||
def __init__(self, spec: Any, spec_set: Any = ..., parent: Optional[Any] = ..., name: Optional[Any] = ..., ids: Optional[Any] = ..., instance: Any = ...) -> None: ...
|
||||
|
||||
def mock_open(mock: Optional[Any] = ..., read_data: Any = ...) -> Any: ...
|
||||
|
||||
@@ -4,9 +4,9 @@ from urllib.response import addinfourl
|
||||
# Stubs for urllib.error
|
||||
|
||||
class URLError(IOError):
|
||||
reason = ... # type: Union[str, BaseException]
|
||||
reason: Union[str, BaseException]
|
||||
class HTTPError(URLError, addinfourl):
|
||||
code = ... # type: int
|
||||
headers = ... # type: Dict[str, str]
|
||||
code: int
|
||||
headers: Dict[str, str]
|
||||
def __init__(self, url, code, msg, hdrs, fp) -> None: ...
|
||||
class ContentTooShortError(URLError): ...
|
||||
|
||||
@@ -5,13 +5,13 @@ import sys
|
||||
_Str = Union[bytes, str]
|
||||
|
||||
|
||||
uses_relative = ... # type: List[str]
|
||||
uses_netloc = ... # type: List[str]
|
||||
uses_params = ... # type: List[str]
|
||||
non_hierarchical = ... # type: List[str]
|
||||
uses_query = ... # type: List[str]
|
||||
uses_fragment = ... # type: List[str]
|
||||
scheme_chars = ... # type: str
|
||||
uses_relative: List[str]
|
||||
uses_netloc: List[str]
|
||||
uses_params: List[str]
|
||||
non_hierarchical: List[str]
|
||||
uses_query: List[str]
|
||||
uses_fragment: List[str]
|
||||
scheme_chars: str
|
||||
MAX_CACHE_SIZE = 0
|
||||
|
||||
class _ResultMixinBase(Generic[AnyStr]):
|
||||
@@ -26,18 +26,18 @@ class _ResultMixinBytes(_ResultMixinBase[str]):
|
||||
|
||||
|
||||
class _NetlocResultMixinBase(Generic[AnyStr]):
|
||||
username = ... # type: AnyStr
|
||||
password = ... # type: AnyStr
|
||||
hostname = ... # type: AnyStr
|
||||
port = ... # type: int
|
||||
username: AnyStr
|
||||
password: AnyStr
|
||||
hostname: AnyStr
|
||||
port: int
|
||||
|
||||
class _NetlocResultMixinStr(_NetlocResultMixinBase[str], _ResultMixinStr): ...
|
||||
|
||||
class _NetlocResultMixinBytes(_NetlocResultMixinBase[bytes], _ResultMixinBytes): ...
|
||||
|
||||
class _DefragResultBase(tuple, Generic[AnyStr]):
|
||||
url = ... # type: AnyStr
|
||||
fragment = ... # type: AnyStr
|
||||
url: AnyStr
|
||||
fragment: AnyStr
|
||||
|
||||
|
||||
_SplitResultBase = NamedTuple(
|
||||
|
||||
Reference in New Issue
Block a user