mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-22 08:00:28 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
+15
-15
@@ -2,34 +2,34 @@ import sys
|
||||
|
||||
from typing import Any, Iterable, Iterator, List, Optional, Sequence, Text
|
||||
|
||||
QUOTE_ALL = ... # type: int
|
||||
QUOTE_MINIMAL = ... # type: int
|
||||
QUOTE_NONE = ... # type: int
|
||||
QUOTE_NONNUMERIC = ... # type: int
|
||||
QUOTE_ALL: int
|
||||
QUOTE_MINIMAL: int
|
||||
QUOTE_NONE: int
|
||||
QUOTE_NONNUMERIC: int
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
class Dialect:
|
||||
delimiter = ... # type: str
|
||||
quotechar = ... # type: Optional[str]
|
||||
escapechar = ... # type: Optional[str]
|
||||
doublequote = ... # type: bool
|
||||
skipinitialspace = ... # type: bool
|
||||
lineterminator = ... # type: str
|
||||
quoting = ... # type: int
|
||||
strict = ... # type: int
|
||||
delimiter: str
|
||||
quotechar: Optional[str]
|
||||
escapechar: Optional[str]
|
||||
doublequote: bool
|
||||
skipinitialspace: bool
|
||||
lineterminator: str
|
||||
quoting: int
|
||||
strict: int
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class _reader(Iterator[List[str]]):
|
||||
dialect = ... # type: Dialect
|
||||
line_num = ... # type: int
|
||||
dialect: Dialect
|
||||
line_num: int
|
||||
if sys.version_info >= (3, 0):
|
||||
def __next__(self) -> List[str]: ...
|
||||
else:
|
||||
def next(self) -> List[str]: ...
|
||||
|
||||
class _writer:
|
||||
dialect = ... # type: Dialect
|
||||
dialect: Dialect
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
def writerow(self, row: Iterable[Any]) -> None: ...
|
||||
|
||||
@@ -9,11 +9,11 @@ from typing import (Any, BinaryIO, Generic, Iterable, Iterator, List, MutableSeq
|
||||
_T = TypeVar('_T', int, float, Text)
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
typecodes = ... # type: str
|
||||
typecodes: str
|
||||
|
||||
class array(MutableSequence[_T], Generic[_T]):
|
||||
typecode = ... # type: str
|
||||
itemsize = ... # type: int
|
||||
typecode: str
|
||||
itemsize: int
|
||||
def __init__(self, typecode: str,
|
||||
__initializer: Union[bytes, Iterable[_T]] = ...) -> None: ...
|
||||
def append(self, x: _T) -> None: ...
|
||||
|
||||
@@ -10,8 +10,8 @@ class simple_producer:
|
||||
def more(self) -> bytes: ...
|
||||
|
||||
class async_chat(asyncore.dispatcher):
|
||||
ac_in_buffer_size = ... # type: int
|
||||
ac_out_buffer_size = ... # type: int
|
||||
ac_in_buffer_size: int
|
||||
ac_out_buffer_size: int
|
||||
def __init__(self, sock: Optional[socket.socket] = ..., map: Optional[asyncore._maptype] = ...) -> None: ...
|
||||
|
||||
@abstractmethod
|
||||
|
||||
@@ -33,13 +33,13 @@ def loop(timeout: float = ..., use_poll: bool = ..., map: _maptype = ..., count:
|
||||
# It is not covariant to it.
|
||||
class dispatcher:
|
||||
|
||||
debug = ... # type: bool
|
||||
connected = ... # type: bool
|
||||
accepting = ... # type: bool
|
||||
connecting = ... # type: bool
|
||||
closing = ... # type: bool
|
||||
ignore_log_types = ... # type: frozenset[str]
|
||||
socket = ... # type: Optional[SocketType] # undocumented
|
||||
debug: bool
|
||||
connected: bool
|
||||
accepting: bool
|
||||
connecting: bool
|
||||
closing: bool
|
||||
ignore_log_types: frozenset[str]
|
||||
socket: Optional[SocketType]
|
||||
|
||||
def __init__(self, sock: Optional[SocketType] = ..., map: _maptype = ...) -> None: ...
|
||||
def add_channel(self, map: _maptype = ...) -> None: ...
|
||||
@@ -122,7 +122,7 @@ def close_all(map: _maptype = ..., ignore_all: bool = ...) -> None: ...
|
||||
# if os.name == 'posix':
|
||||
# import fcntl
|
||||
class file_wrapper:
|
||||
fd = ... # type: int
|
||||
fd: int
|
||||
|
||||
def __init__(self, fd: int) -> None: ...
|
||||
def recv(self, bufsize: int, flags: int = ...) -> bytes: ...
|
||||
|
||||
@@ -8,15 +8,15 @@ from typing import (
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
REASONABLY_LARGE = ... # type: int
|
||||
LINELEN = ... # type: int
|
||||
RUNCHAR = ... # type: bytes
|
||||
REASONABLY_LARGE: int
|
||||
LINELEN: int
|
||||
RUNCHAR: bytes
|
||||
|
||||
class FInfo:
|
||||
def __init__(self) -> None: ...
|
||||
Type = ... # type: str
|
||||
Creator = ... # type: str
|
||||
Flags = ... # type: int
|
||||
Type: str
|
||||
Creator: str
|
||||
Flags: int
|
||||
|
||||
_FileInfoTuple = Tuple[str, FInfo, int, int]
|
||||
_FileHandleUnion = Union[str, IO[bytes]]
|
||||
|
||||
+12
-12
@@ -98,25 +98,25 @@ class LocaleHTMLCalendar(HTMLCalendar):
|
||||
def formatweekday(self, day: int) -> str: ...
|
||||
def formatmonthname(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...
|
||||
|
||||
c = ... # type: TextCalendar
|
||||
c: TextCalendar
|
||||
def setfirstweekday(firstweekday: int) -> None: ...
|
||||
def format(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def formatstring(cols: int, colwidth: int = ..., spacing: int = ...) -> str: ...
|
||||
def timegm(tuple: Union[Tuple[int, ...], struct_time]) -> int: ...
|
||||
|
||||
# Data attributes
|
||||
day_name = ... # type: Sequence[str]
|
||||
day_abbr = ... # type: Sequence[str]
|
||||
month_name = ... # type: Sequence[str]
|
||||
month_abbr = ... # type: Sequence[str]
|
||||
day_name: Sequence[str]
|
||||
day_abbr: Sequence[str]
|
||||
month_name: Sequence[str]
|
||||
month_abbr: Sequence[str]
|
||||
|
||||
# Below constants are not in docs or __all__, but enough people have used them
|
||||
# they are now effectively public.
|
||||
|
||||
MONDAY = ... # type: int
|
||||
TUESDAY = ... # type: int
|
||||
WEDNESDAY = ... # type: int
|
||||
THURSDAY = ... # type: int
|
||||
FRIDAY = ... # type: int
|
||||
SATURDAY = ... # type: int
|
||||
SUNDAY = ... # type: int
|
||||
MONDAY: int
|
||||
TUESDAY: int
|
||||
WEDNESDAY: int
|
||||
THURSDAY: int
|
||||
FRIDAY: int
|
||||
SATURDAY: int
|
||||
SUNDAY: int
|
||||
|
||||
+33
-33
@@ -25,44 +25,44 @@ else:
|
||||
|
||||
class MiniFieldStorage:
|
||||
# The first five "Any" attributes here are always None, but mypy doesn't support that
|
||||
filename = ... # type: Any
|
||||
list = ... # type: Any
|
||||
type = ... # type: Any
|
||||
file = ... # type: Optional[IO[bytes]] # Always None
|
||||
type_options = ... # type: Dict[Any, Any]
|
||||
disposition = ... # type: Any
|
||||
disposition_options = ... # type: Dict[Any, Any]
|
||||
headers = ... # type: Dict[Any, Any]
|
||||
name = ... # type: Any
|
||||
value = ... # type: Any
|
||||
filename: Any
|
||||
list: Any
|
||||
type: Any
|
||||
file: Optional[IO[bytes]]
|
||||
type_options: Dict[Any, Any]
|
||||
disposition: Any
|
||||
disposition_options: Dict[Any, Any]
|
||||
headers: Dict[Any, Any]
|
||||
name: Any
|
||||
value: Any
|
||||
|
||||
def __init__(self, name: Any, value: Any) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
|
||||
class FieldStorage(object):
|
||||
FieldStorageClass = ... # type: Optional[type]
|
||||
keep_blank_values = ... # type: int
|
||||
strict_parsing = ... # type: int
|
||||
qs_on_post = ... # type: Optional[str]
|
||||
headers = ... # type: Mapping[str, str]
|
||||
fp = ... # type: IO[bytes]
|
||||
encoding = ... # type: str
|
||||
errors = ... # type: str
|
||||
outerboundary = ... # type: bytes
|
||||
bytes_read = ... # type: int
|
||||
limit = ... # type: Optional[int]
|
||||
disposition = ... # type: str
|
||||
disposition_options = ... # type: Dict[str, str]
|
||||
filename = ... # type: Optional[str]
|
||||
file = ... # type: Optional[IO[bytes]]
|
||||
type = ... # type: str
|
||||
type_options = ... # type: Dict[str, str]
|
||||
innerboundary = ... # type: bytes
|
||||
length = ... # type: int
|
||||
done = ... # type: int
|
||||
list = ... # type: Optional[List[Any]]
|
||||
value = ... # type: Union[None, bytes, List[Any]]
|
||||
FieldStorageClass: Optional[type]
|
||||
keep_blank_values: int
|
||||
strict_parsing: int
|
||||
qs_on_post: Optional[str]
|
||||
headers: Mapping[str, str]
|
||||
fp: IO[bytes]
|
||||
encoding: str
|
||||
errors: str
|
||||
outerboundary: bytes
|
||||
bytes_read: int
|
||||
limit: Optional[int]
|
||||
disposition: str
|
||||
disposition_options: Dict[str, str]
|
||||
filename: Optional[str]
|
||||
file: Optional[IO[bytes]]
|
||||
type: str
|
||||
type_options: Dict[str, str]
|
||||
innerboundary: bytes
|
||||
length: int
|
||||
done: int
|
||||
list: Optional[List[Any]]
|
||||
value: Union[None, bytes, List[Any]]
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
def __init__(self, fp: IO[Any] = ..., headers: Mapping[str, str] = ..., outerboundary: bytes = ...,
|
||||
@@ -102,7 +102,7 @@ if sys.version_info < (3, 0):
|
||||
from UserDict import UserDict
|
||||
|
||||
class FormContentDict(UserDict):
|
||||
query_string = ... # type: str
|
||||
query_string: str
|
||||
def __init__(self, environ: Mapping[str, str] = ..., keep_blank_values: int = ..., strict_parsing: int = ...) -> None: ...
|
||||
|
||||
class SvFormContentDict(FormContentDict):
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
from typing import IO
|
||||
|
||||
class Chunk:
|
||||
closed = ... # type: bool
|
||||
align = ... # type: bool
|
||||
file = ... # type: IO[bytes]
|
||||
chunkname = ... # type: bytes
|
||||
chunksize = ... # type: int
|
||||
size_read = ... # type: int
|
||||
offset = ... # type: int
|
||||
seekable = ... # type: bool
|
||||
closed: bool
|
||||
align: bool
|
||||
file: IO[bytes]
|
||||
chunkname: bytes
|
||||
chunksize: int
|
||||
size_read: int
|
||||
offset: int
|
||||
seekable: bool
|
||||
def __init__(self, file: IO[bytes], align: bool = ..., bigendian: bool = ..., inclheader: bool = ...) -> None: ...
|
||||
def getname(self) -> bytes: ...
|
||||
def getsize(self) -> int: ...
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import sys
|
||||
from typing import Union, Tuple
|
||||
|
||||
e = ... # type: float
|
||||
pi = ... # type: float
|
||||
e: float
|
||||
pi: float
|
||||
|
||||
_C = Union[float, complex]
|
||||
|
||||
|
||||
+17
-17
@@ -3,23 +3,23 @@
|
||||
from typing import Any, Optional, Text, IO, List, Callable, Tuple
|
||||
|
||||
class Cmd:
|
||||
prompt = ... # type: str
|
||||
identchars = ... # type: str
|
||||
ruler = ... # type: str
|
||||
lastcmd = ... # type: str
|
||||
intro = ... # type: Optional[Any]
|
||||
doc_leader = ... # type: str
|
||||
doc_header = ... # type: str
|
||||
misc_header = ... # type: str
|
||||
undoc_header = ... # type: str
|
||||
nohelp = ... # type: str
|
||||
use_rawinput = ... # type: bool
|
||||
stdin = ... # type: IO[str]
|
||||
stdout = ... # type: IO[str]
|
||||
cmdqueue = ... # type: List[str]
|
||||
completekey = ... # type: str
|
||||
prompt: str
|
||||
identchars: str
|
||||
ruler: str
|
||||
lastcmd: str
|
||||
intro: Optional[Any]
|
||||
doc_leader: str
|
||||
doc_header: str
|
||||
misc_header: str
|
||||
undoc_header: str
|
||||
nohelp: str
|
||||
use_rawinput: bool
|
||||
stdin: IO[str]
|
||||
stdout: IO[str]
|
||||
cmdqueue: List[str]
|
||||
completekey: str
|
||||
def __init__(self, completekey: str = ..., stdin: Optional[IO[str]] = ..., stdout: Optional[IO[str]] = ...) -> None: ...
|
||||
old_completer = ... # type: Optional[Callable[[str, int], Optional[str]]]
|
||||
old_completer: Optional[Callable[[str, int], Optional[str]]]
|
||||
def cmdloop(self, intro: Optional[Any] = ...) -> None: ...
|
||||
def precmd(self, line: str) -> str: ...
|
||||
def postcmd(self, stop: bool, line: str) -> bool: ...
|
||||
@@ -31,7 +31,7 @@ class Cmd:
|
||||
def default(self, line: str) -> bool: ...
|
||||
def completedefault(self, *ignored: Any) -> List[str]: ...
|
||||
def completenames(self, text: str, *ignored: Any) -> List[str]: ...
|
||||
completion_matches = ... # type: Optional[List[str]]
|
||||
completion_matches: Optional[List[str]]
|
||||
def complete(self, text: str, state: int) -> Optional[List[str]]: ...
|
||||
def get_names(self) -> List[str]: ...
|
||||
# Only the first element of args matters.
|
||||
|
||||
@@ -7,11 +7,11 @@ from typing import Optional
|
||||
def compile_command(source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
||||
|
||||
class Compile:
|
||||
flags = ... # type: int
|
||||
flags: int
|
||||
def __init__(self) -> None: ...
|
||||
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
|
||||
|
||||
class CommandCompiler:
|
||||
compiler = ... # type: Compile
|
||||
compiler: Compile
|
||||
def __init__(self) -> None: ...
|
||||
def __call__(self, source: str, filename: str = ..., symbol: str = ...) -> Optional[CodeType]: ...
|
||||
|
||||
@@ -10,6 +10,6 @@ def rgb_to_hsv(r: float, g: float, b: float) -> Tuple[float, float, float]: ...
|
||||
def hsv_to_rgb(h: float, s: float, v: float) -> Tuple[float, float, float]: ...
|
||||
|
||||
# TODO undocumented
|
||||
ONE_SIXTH = ... # type: float
|
||||
ONE_THIRD = ... # type: float
|
||||
TWO_THIRD = ... # type: float
|
||||
ONE_SIXTH: float
|
||||
ONE_THIRD: float
|
||||
TWO_THIRD: float
|
||||
|
||||
+31
-31
@@ -22,34 +22,34 @@ _Dialect = Union[str, Dialect]
|
||||
_DictRow = Mapping[str, Any]
|
||||
|
||||
class Dialect(object):
|
||||
delimiter = ... # type: str
|
||||
quotechar = ... # type: Optional[str]
|
||||
escapechar = ... # type: Optional[str]
|
||||
doublequote = ... # type: bool
|
||||
skipinitialspace = ... # type: bool
|
||||
lineterminator = ... # type: str
|
||||
quoting = ... # type: int
|
||||
delimiter: str
|
||||
quotechar: Optional[str]
|
||||
escapechar: Optional[str]
|
||||
doublequote: bool
|
||||
skipinitialspace: bool
|
||||
lineterminator: str
|
||||
quoting: int
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class excel(Dialect):
|
||||
delimiter = ... # type: str
|
||||
quotechar = ... # type: str
|
||||
doublequote = ... # type: bool
|
||||
skipinitialspace = ... # type: bool
|
||||
lineterminator = ... # type: str
|
||||
quoting = ... # type: int
|
||||
delimiter: str
|
||||
quotechar: str
|
||||
doublequote: bool
|
||||
skipinitialspace: bool
|
||||
lineterminator: str
|
||||
quoting: int
|
||||
|
||||
class excel_tab(excel):
|
||||
delimiter = ... # type: str
|
||||
delimiter: str
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class unix_dialect(Dialect):
|
||||
delimiter = ... # type: str
|
||||
quotechar = ... # type: str
|
||||
doublequote = ... # type: bool
|
||||
skipinitialspace = ... # type: bool
|
||||
lineterminator = ... # type: str
|
||||
quoting = ... # type: int
|
||||
delimiter: str
|
||||
quotechar: str
|
||||
doublequote: bool
|
||||
skipinitialspace: bool
|
||||
lineterminator: str
|
||||
quoting: int
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
_DRMapping = OrderedDict[str, str]
|
||||
@@ -58,12 +58,12 @@ else:
|
||||
|
||||
|
||||
class DictReader(Iterator[_DRMapping]):
|
||||
restkey = ... # type: Optional[str]
|
||||
restval = ... # type: Optional[str]
|
||||
reader = ... # type: _reader
|
||||
dialect = ... # type: _Dialect
|
||||
line_num = ... # type: int
|
||||
fieldnames = ... # type: Sequence[str]
|
||||
restkey: Optional[str]
|
||||
restval: Optional[str]
|
||||
reader: _reader
|
||||
dialect: _Dialect
|
||||
line_num: int
|
||||
fieldnames: Sequence[str]
|
||||
def __init__(self, f: Iterable[str], fieldnames: Sequence[str] = ...,
|
||||
restkey: Optional[str] = ..., restval: Optional[str] = ..., dialect: _Dialect = ...,
|
||||
*args: Any, **kwds: Any) -> None: ...
|
||||
@@ -75,10 +75,10 @@ class DictReader(Iterator[_DRMapping]):
|
||||
|
||||
|
||||
class DictWriter(object):
|
||||
fieldnames = ... # type: Sequence[str]
|
||||
restval = ... # type: Optional[Any]
|
||||
extrasaction = ... # type: str
|
||||
writer = ... # type: _writer
|
||||
fieldnames: Sequence[str]
|
||||
restval: Optional[Any]
|
||||
extrasaction: str
|
||||
writer: _writer
|
||||
def __init__(self, f: Any, fieldnames: Sequence[str],
|
||||
restval: Optional[Any] = ..., extrasaction: str = ..., dialect: _Dialect = ...,
|
||||
*args: Any, **kwds: Any) -> None: ...
|
||||
@@ -87,7 +87,7 @@ class DictWriter(object):
|
||||
def writerows(self, rowdicts: Iterable[_DictRow]) -> None: ...
|
||||
|
||||
class Sniffer(object):
|
||||
preferred = ... # type: List[str]
|
||||
preferred: List[str]
|
||||
def __init__(self) -> None: ...
|
||||
def sniff(self, sample: str, delimiters: Optional[str] = ...) -> Dialect: ...
|
||||
def has_header(self, sample: str) -> bool: ...
|
||||
|
||||
@@ -34,8 +34,8 @@ if sys.version_info >= (3, 4):
|
||||
)
|
||||
|
||||
class Bytecode:
|
||||
codeobj = ... # type: types.CodeType
|
||||
first_line = ... # type: int
|
||||
codeobj: types.CodeType
|
||||
first_line: int
|
||||
def __init__(self, x: _have_code_or_string, *, first_line: Optional[int] = ...,
|
||||
current_offset: Optional[int] = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[Instruction]: ...
|
||||
@@ -47,7 +47,7 @@ if sys.version_info >= (3, 4):
|
||||
def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ...
|
||||
|
||||
|
||||
COMPILER_FLAG_NAMES = ... # type: Dict[int, str]
|
||||
COMPILER_FLAG_NAMES: Dict[int, str]
|
||||
|
||||
|
||||
def findlabels(code: _have_code) -> List[int]: ...
|
||||
|
||||
@@ -5,7 +5,7 @@ from abc import abstractmethod
|
||||
from distutils.dist import Distribution
|
||||
|
||||
class Command:
|
||||
sub_commands = ... # type: List[Tuple[str, Union[Callable[[], bool], str, None]]]
|
||||
sub_commands: List[Tuple[str, Union[Callable[[], bool], str, None]]]
|
||||
def __init__(self, dist: Distribution) -> None: ...
|
||||
@abstractmethod
|
||||
def initialize_options(self) -> None: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Stubs for distutils.debug
|
||||
|
||||
DEBUG = ... # type: bool
|
||||
DEBUG: bool
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
from typing import Mapping, Optional, Union
|
||||
from distutils.ccompiler import CCompiler
|
||||
|
||||
PREFIX = ... # type: str
|
||||
EXEC_PREFIX = ... # type: str
|
||||
PREFIX: str
|
||||
EXEC_PREFIX: str
|
||||
|
||||
def get_config_var(name: str) -> Union[int, str, None]: ...
|
||||
def get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...
|
||||
|
||||
+124
-124
@@ -3,128 +3,128 @@
|
||||
from typing import Mapping
|
||||
import sys
|
||||
|
||||
errorcode = ... # type: Mapping[int, str]
|
||||
errorcode: Mapping[int, str]
|
||||
|
||||
EPERM = ... # type: int
|
||||
ENOENT = ... # type: int
|
||||
ESRCH = ... # type: int
|
||||
EINTR = ... # type: int
|
||||
EIO = ... # type: int
|
||||
ENXIO = ... # type: int
|
||||
E2BIG = ... # type: int
|
||||
ENOEXEC = ... # type: int
|
||||
EBADF = ... # type: int
|
||||
ECHILD = ... # type: int
|
||||
EAGAIN = ... # type: int
|
||||
ENOMEM = ... # type: int
|
||||
EACCES = ... # type: int
|
||||
EFAULT = ... # type: int
|
||||
ENOTBLK = ... # type: int
|
||||
EBUSY = ... # type: int
|
||||
EEXIST = ... # type: int
|
||||
EXDEV = ... # type: int
|
||||
ENODEV = ... # type: int
|
||||
ENOTDIR = ... # type: int
|
||||
EISDIR = ... # type: int
|
||||
EINVAL = ... # type: int
|
||||
ENFILE = ... # type: int
|
||||
EMFILE = ... # type: int
|
||||
ENOTTY = ... # type: int
|
||||
ETXTBSY = ... # type: int
|
||||
EFBIG = ... # type: int
|
||||
ENOSPC = ... # type: int
|
||||
ESPIPE = ... # type: int
|
||||
EROFS = ... # type: int
|
||||
EMLINK = ... # type: int
|
||||
EPIPE = ... # type: int
|
||||
EDOM = ... # type: int
|
||||
ERANGE = ... # type: int
|
||||
EDEADLCK = ... # type: int
|
||||
ENAMETOOLONG = ... # type: int
|
||||
ENOLCK = ... # type: int
|
||||
ENOSYS = ... # type: int
|
||||
ENOTEMPTY = ... # type: int
|
||||
ELOOP = ... # type: int
|
||||
EWOULDBLOCK = ... # type: int
|
||||
ENOMSG = ... # type: int
|
||||
EIDRM = ... # type: int
|
||||
ECHRNG = ... # type: int
|
||||
EL2NSYNC = ... # type: int
|
||||
EL3HLT = ... # type: int
|
||||
EL3RST = ... # type: int
|
||||
ELNRNG = ... # type: int
|
||||
EUNATCH = ... # type: int
|
||||
ENOCSI = ... # type: int
|
||||
EL2HLT = ... # type: int
|
||||
EBADE = ... # type: int
|
||||
EBADR = ... # type: int
|
||||
EXFULL = ... # type: int
|
||||
ENOANO = ... # type: int
|
||||
EBADRQC = ... # type: int
|
||||
EBADSLT = ... # type: int
|
||||
EDEADLOCK = ... # type: int
|
||||
EBFONT = ... # type: int
|
||||
ENOSTR = ... # type: int
|
||||
ENODATA = ... # type: int
|
||||
ETIME = ... # type: int
|
||||
ENOSR = ... # type: int
|
||||
ENONET = ... # type: int
|
||||
ENOPKG = ... # type: int
|
||||
EREMOTE = ... # type: int
|
||||
ENOLINK = ... # type: int
|
||||
EADV = ... # type: int
|
||||
ESRMNT = ... # type: int
|
||||
ECOMM = ... # type: int
|
||||
EPROTO = ... # type: int
|
||||
EMULTIHOP = ... # type: int
|
||||
EDOTDOT = ... # type: int
|
||||
EBADMSG = ... # type: int
|
||||
EOVERFLOW = ... # type: int
|
||||
ENOTUNIQ = ... # type: int
|
||||
EBADFD = ... # type: int
|
||||
EREMCHG = ... # type: int
|
||||
ELIBACC = ... # type: int
|
||||
ELIBBAD = ... # type: int
|
||||
ELIBSCN = ... # type: int
|
||||
ELIBMAX = ... # type: int
|
||||
ELIBEXEC = ... # type: int
|
||||
EILSEQ = ... # type: int
|
||||
ERESTART = ... # type: int
|
||||
ESTRPIPE = ... # type: int
|
||||
EUSERS = ... # type: int
|
||||
ENOTSOCK = ... # type: int
|
||||
EDESTADDRREQ = ... # type: int
|
||||
EMSGSIZE = ... # type: int
|
||||
EPROTOTYPE = ... # type: int
|
||||
ENOPROTOOPT = ... # type: int
|
||||
EPROTONOSUPPORT = ... # type: int
|
||||
ESOCKTNOSUPPORT = ... # type: int
|
||||
ENOTSUP = ... # type: int
|
||||
EOPNOTSUPP = ... # type: int
|
||||
EPFNOSUPPORT = ... # type: int
|
||||
EAFNOSUPPORT = ... # type: int
|
||||
EADDRINUSE = ... # type: int
|
||||
EADDRNOTAVAIL = ... # type: int
|
||||
ENETDOWN = ... # type: int
|
||||
ENETUNREACH = ... # type: int
|
||||
ENETRESET = ... # type: int
|
||||
ECONNABORTED = ... # type: int
|
||||
ECONNRESET = ... # type: int
|
||||
ENOBUFS = ... # type: int
|
||||
EISCONN = ... # type: int
|
||||
ENOTCONN = ... # type: int
|
||||
ESHUTDOWN = ... # type: int
|
||||
ETOOMANYREFS = ... # type: int
|
||||
ETIMEDOUT = ... # type: int
|
||||
ECONNREFUSED = ... # type: int
|
||||
EHOSTDOWN = ... # type: int
|
||||
EHOSTUNREACH = ... # type: int
|
||||
EALREADY = ... # type: int
|
||||
EINPROGRESS = ... # type: int
|
||||
ESTALE = ... # type: int
|
||||
EUCLEAN = ... # type: int
|
||||
ENOTNAM = ... # type: int
|
||||
ENAVAIL = ... # type: int
|
||||
EISNAM = ... # type: int
|
||||
EREMOTEIO = ... # type: int
|
||||
EDQUOT = ... # type: int
|
||||
EPERM: int
|
||||
ENOENT: int
|
||||
ESRCH: int
|
||||
EINTR: int
|
||||
EIO: int
|
||||
ENXIO: int
|
||||
E2BIG: int
|
||||
ENOEXEC: int
|
||||
EBADF: int
|
||||
ECHILD: int
|
||||
EAGAIN: int
|
||||
ENOMEM: int
|
||||
EACCES: int
|
||||
EFAULT: int
|
||||
ENOTBLK: int
|
||||
EBUSY: int
|
||||
EEXIST: int
|
||||
EXDEV: int
|
||||
ENODEV: int
|
||||
ENOTDIR: int
|
||||
EISDIR: int
|
||||
EINVAL: int
|
||||
ENFILE: int
|
||||
EMFILE: int
|
||||
ENOTTY: int
|
||||
ETXTBSY: int
|
||||
EFBIG: int
|
||||
ENOSPC: int
|
||||
ESPIPE: int
|
||||
EROFS: int
|
||||
EMLINK: int
|
||||
EPIPE: int
|
||||
EDOM: int
|
||||
ERANGE: int
|
||||
EDEADLCK: int
|
||||
ENAMETOOLONG: int
|
||||
ENOLCK: int
|
||||
ENOSYS: int
|
||||
ENOTEMPTY: int
|
||||
ELOOP: int
|
||||
EWOULDBLOCK: int
|
||||
ENOMSG: int
|
||||
EIDRM: int
|
||||
ECHRNG: int
|
||||
EL2NSYNC: int
|
||||
EL3HLT: int
|
||||
EL3RST: int
|
||||
ELNRNG: int
|
||||
EUNATCH: int
|
||||
ENOCSI: int
|
||||
EL2HLT: int
|
||||
EBADE: int
|
||||
EBADR: int
|
||||
EXFULL: int
|
||||
ENOANO: int
|
||||
EBADRQC: int
|
||||
EBADSLT: int
|
||||
EDEADLOCK: int
|
||||
EBFONT: int
|
||||
ENOSTR: int
|
||||
ENODATA: int
|
||||
ETIME: int
|
||||
ENOSR: int
|
||||
ENONET: int
|
||||
ENOPKG: int
|
||||
EREMOTE: int
|
||||
ENOLINK: int
|
||||
EADV: int
|
||||
ESRMNT: int
|
||||
ECOMM: int
|
||||
EPROTO: int
|
||||
EMULTIHOP: int
|
||||
EDOTDOT: int
|
||||
EBADMSG: int
|
||||
EOVERFLOW: int
|
||||
ENOTUNIQ: int
|
||||
EBADFD: int
|
||||
EREMCHG: int
|
||||
ELIBACC: int
|
||||
ELIBBAD: int
|
||||
ELIBSCN: int
|
||||
ELIBMAX: int
|
||||
ELIBEXEC: int
|
||||
EILSEQ: int
|
||||
ERESTART: int
|
||||
ESTRPIPE: int
|
||||
EUSERS: int
|
||||
ENOTSOCK: int
|
||||
EDESTADDRREQ: int
|
||||
EMSGSIZE: int
|
||||
EPROTOTYPE: int
|
||||
ENOPROTOOPT: int
|
||||
EPROTONOSUPPORT: int
|
||||
ESOCKTNOSUPPORT: int
|
||||
ENOTSUP: int
|
||||
EOPNOTSUPP: int
|
||||
EPFNOSUPPORT: int
|
||||
EAFNOSUPPORT: int
|
||||
EADDRINUSE: int
|
||||
EADDRNOTAVAIL: int
|
||||
ENETDOWN: int
|
||||
ENETUNREACH: int
|
||||
ENETRESET: int
|
||||
ECONNABORTED: int
|
||||
ECONNRESET: int
|
||||
ENOBUFS: int
|
||||
EISCONN: int
|
||||
ENOTCONN: int
|
||||
ESHUTDOWN: int
|
||||
ETOOMANYREFS: int
|
||||
ETIMEDOUT: int
|
||||
ECONNREFUSED: int
|
||||
EHOSTDOWN: int
|
||||
EHOSTUNREACH: int
|
||||
EALREADY: int
|
||||
EINPROGRESS: int
|
||||
ESTALE: int
|
||||
EUCLEAN: int
|
||||
ENOTNAM: int
|
||||
ENAVAIL: int
|
||||
EISNAM: int
|
||||
EREMOTEIO: int
|
||||
EDQUOT: int
|
||||
|
||||
+18
-18
@@ -2,7 +2,7 @@
|
||||
import sys
|
||||
from typing import AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Tuple, Union, Text
|
||||
|
||||
DEFAULT_IGNORES = ... # type: List[str]
|
||||
DEFAULT_IGNORES: List[str]
|
||||
|
||||
def cmp(f1: Union[bytes, Text], f2: Union[bytes, Text], shallow: Union[int, bool] = ...) -> bool: ...
|
||||
def cmpfiles(a: AnyStr, b: AnyStr, common: Iterable[AnyStr],
|
||||
@@ -13,30 +13,30 @@ class dircmp(Generic[AnyStr]):
|
||||
ignore: Optional[Sequence[AnyStr]] = ...,
|
||||
hide: Optional[Sequence[AnyStr]] = ...) -> None: ...
|
||||
|
||||
left = ... # type: AnyStr
|
||||
right = ... # type: AnyStr
|
||||
hide = ... # type: Sequence[AnyStr]
|
||||
ignore = ... # type: Sequence[AnyStr]
|
||||
left: AnyStr
|
||||
right: AnyStr
|
||||
hide: Sequence[AnyStr]
|
||||
ignore: Sequence[AnyStr]
|
||||
|
||||
# These properties are created at runtime by __getattr__
|
||||
subdirs = ... # type: Dict[AnyStr, dircmp[AnyStr]]
|
||||
same_files = ... # type: List[AnyStr]
|
||||
diff_files = ... # type: List[AnyStr]
|
||||
funny_files = ... # type: List[AnyStr]
|
||||
common_dirs = ... # type: List[AnyStr]
|
||||
common_files = ... # type: List[AnyStr]
|
||||
common_funny = ... # type: List[AnyStr]
|
||||
common = ... # type: List[AnyStr]
|
||||
left_only = ... # type: List[AnyStr]
|
||||
right_only = ... # type: List[AnyStr]
|
||||
left_list = ... # type: List[AnyStr]
|
||||
right_list = ... # type: List[AnyStr]
|
||||
subdirs: Dict[AnyStr, dircmp[AnyStr]]
|
||||
same_files: List[AnyStr]
|
||||
diff_files: List[AnyStr]
|
||||
funny_files: List[AnyStr]
|
||||
common_dirs: List[AnyStr]
|
||||
common_files: List[AnyStr]
|
||||
common_funny: List[AnyStr]
|
||||
common: List[AnyStr]
|
||||
left_only: List[AnyStr]
|
||||
right_only: List[AnyStr]
|
||||
left_list: List[AnyStr]
|
||||
right_list: List[AnyStr]
|
||||
|
||||
def report(self) -> None: ...
|
||||
def report_partial_closure(self) -> None: ...
|
||||
def report_full_closure(self) -> None: ...
|
||||
|
||||
methodmap = ... # type: Dict[str, Callable[[], None]]
|
||||
methodmap: Dict[str, Callable[[], None]]
|
||||
def phase0(self) -> None: ...
|
||||
def phase1(self) -> None: ...
|
||||
def phase2(self) -> None: ...
|
||||
|
||||
+16
-16
@@ -7,7 +7,7 @@ _FontType = Tuple[str, bool, bool, bool]
|
||||
_StylesType = Tuple[Any, ...]
|
||||
|
||||
class NullFormatter:
|
||||
writer = ... # type: Optional[NullWriter]
|
||||
writer: Optional[NullWriter]
|
||||
def __init__(self, writer: Optional[NullWriter] = ...) -> None: ...
|
||||
def end_paragraph(self, blankline: int) -> None: ...
|
||||
def add_line_break(self) -> None: ...
|
||||
@@ -28,19 +28,19 @@ class NullFormatter:
|
||||
def assert_line_data(self, flag: int = ...) -> None: ...
|
||||
|
||||
class AbstractFormatter:
|
||||
writer = ... # type: NullWriter
|
||||
align = ... # type: Optional[str]
|
||||
align_stack = ... # type: List[Optional[str]]
|
||||
font_stack = ... # type: List[_FontType]
|
||||
margin_stack = ... # type: List[int]
|
||||
spacing = ... # type: Optional[str]
|
||||
style_stack = ... # type: Any
|
||||
nospace = ... # type: int
|
||||
softspace = ... # type: int
|
||||
para_end = ... # type: int
|
||||
parskip = ... # type: int
|
||||
hard_break = ... # type: int
|
||||
have_label = ... # type: int
|
||||
writer: NullWriter
|
||||
align: Optional[str]
|
||||
align_stack: List[Optional[str]]
|
||||
font_stack: List[_FontType]
|
||||
margin_stack: List[int]
|
||||
spacing: Optional[str]
|
||||
style_stack: Any
|
||||
nospace: int
|
||||
softspace: int
|
||||
para_end: int
|
||||
parskip: int
|
||||
hard_break: int
|
||||
have_label: int
|
||||
def __init__(self, writer: NullWriter) -> None: ...
|
||||
def end_paragraph(self, blankline: int) -> None: ...
|
||||
def add_line_break(self) -> None: ...
|
||||
@@ -92,8 +92,8 @@ class AbstractWriter(NullWriter):
|
||||
def send_literal_data(self, data: str) -> None: ...
|
||||
|
||||
class DumbWriter(NullWriter):
|
||||
file = ... # type: IO
|
||||
maxcol = ... # type: int
|
||||
file: IO
|
||||
maxcol: int
|
||||
def __init__(self, file: Optional[IO] = ..., maxcol: int = ...) -> None: ...
|
||||
def reset(self) -> None: ...
|
||||
def send_paragraph(self, blankline: int) -> None: ...
|
||||
|
||||
+23
-23
@@ -8,12 +8,12 @@ from ssl import SSLContext
|
||||
_T = TypeVar('_T')
|
||||
_IntOrStr = Union[int, Text]
|
||||
|
||||
MSG_OOB = ... # type: int
|
||||
FTP_PORT = ... # type: int
|
||||
MAXLINE = ... # type: int
|
||||
CRLF = ... # type: str
|
||||
MSG_OOB: int
|
||||
FTP_PORT: int
|
||||
MAXLINE: int
|
||||
CRLF: str
|
||||
if sys.version_info >= (3,):
|
||||
B_CRLF = ... # type: bytes
|
||||
B_CRLF: bytes
|
||||
|
||||
class Error(Exception): ...
|
||||
class error_reply(Error): ...
|
||||
@@ -24,32 +24,32 @@ class error_proto(Error): ...
|
||||
all_errors = Tuple[Exception, ...]
|
||||
|
||||
class FTP:
|
||||
debugging = ... # type: int
|
||||
debugging: int
|
||||
|
||||
# Note: This is technically the type that's passed in as the host argument. But to make it easier in Python 2 we
|
||||
# accept Text but return str.
|
||||
host = ... # type: str
|
||||
host: str
|
||||
|
||||
port = ... # type: int
|
||||
maxline = ... # type: int
|
||||
sock = ... # type: Optional[socket]
|
||||
welcome = ... # type: Optional[str]
|
||||
passiveserver = ... # type: int
|
||||
timeout = ... # type: int
|
||||
af = ... # type: int
|
||||
lastresp = ... # type: str
|
||||
port: int
|
||||
maxline: int
|
||||
sock: Optional[socket]
|
||||
welcome: Optional[str]
|
||||
passiveserver: int
|
||||
timeout: int
|
||||
af: int
|
||||
lastresp: str
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
file = ... # type: Optional[TextIO]
|
||||
encoding = ... # type: str
|
||||
file: Optional[TextIO]
|
||||
encoding: str
|
||||
def __enter__(self: _T) -> _T: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[TracebackType]) -> bool: ...
|
||||
else:
|
||||
file = ... # type: Optional[BinaryIO]
|
||||
file: Optional[BinaryIO]
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
source_address = ... # type: Optional[Tuple[str, int]]
|
||||
source_address: Optional[Tuple[str, int]]
|
||||
def __init__(self, host: Text = ..., user: Text = ..., passwd: Text = ..., acct: Text = ...,
|
||||
timeout: float = ..., source_address: Optional[Tuple[str, int]] = ...) -> None: ...
|
||||
def connect(self, host: Text = ..., port: int = ..., timeout: float = ...,
|
||||
@@ -112,10 +112,10 @@ class FTP_TLS(FTP):
|
||||
context: Optional[SSLContext] = ..., timeout: float = ...,
|
||||
source_address: Optional[Tuple[str, int]] = ...) -> None: ...
|
||||
|
||||
ssl_version = ... # type: int
|
||||
keyfile = ... # type: Optional[str]
|
||||
certfile = ... # type: Optional[str]
|
||||
context = ... # type: SSLContext
|
||||
ssl_version: int
|
||||
keyfile: Optional[str]
|
||||
certfile: Optional[str]
|
||||
context: SSLContext
|
||||
|
||||
def login(self, user: Text = ..., passwd: Text = ..., acct: Text = ..., secure: bool = ...) -> str: ...
|
||||
def auth(self) -> str: ...
|
||||
|
||||
@@ -20,10 +20,10 @@ else:
|
||||
|
||||
class HMAC:
|
||||
if sys.version_info >= (3,):
|
||||
digest_size = ... # type: int
|
||||
digest_size: int
|
||||
if sys.version_info >= (3, 4):
|
||||
block_size = ... # type: int
|
||||
name = ... # type: str
|
||||
block_size: int
|
||||
name: str
|
||||
def update(self, msg: _B) -> None: ...
|
||||
def digest(self) -> bytes: ...
|
||||
def hexdigest(self) -> str: ...
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
from typing import Sequence, Text, Union
|
||||
|
||||
def iskeyword(s: Union[Text, bytes]) -> bool: ...
|
||||
kwlist = ... # type: Sequence[str]
|
||||
kwlist: Sequence[str]
|
||||
|
||||
+61
-61
@@ -10,74 +10,74 @@ if sys.version_info < (3,):
|
||||
else:
|
||||
from builtins import str as _str
|
||||
|
||||
CODESET = ... # type: int
|
||||
D_T_FMT = ... # type: int
|
||||
D_FMT = ... # type: int
|
||||
T_FMT = ... # type: int
|
||||
T_FMT_AMPM = ... # type: int
|
||||
CODESET: int
|
||||
D_T_FMT: int
|
||||
D_FMT: int
|
||||
T_FMT: int
|
||||
T_FMT_AMPM: int
|
||||
|
||||
DAY_1 = ... # type: int
|
||||
DAY_2 = ... # type: int
|
||||
DAY_3 = ... # type: int
|
||||
DAY_4 = ... # type: int
|
||||
DAY_5 = ... # type: int
|
||||
DAY_6 = ... # type: int
|
||||
DAY_7 = ... # type: int
|
||||
ABDAY_1 = ... # type: int
|
||||
ABDAY_2 = ... # type: int
|
||||
ABDAY_3 = ... # type: int
|
||||
ABDAY_4 = ... # type: int
|
||||
ABDAY_5 = ... # type: int
|
||||
ABDAY_6 = ... # type: int
|
||||
ABDAY_7 = ... # type: int
|
||||
DAY_1: int
|
||||
DAY_2: int
|
||||
DAY_3: int
|
||||
DAY_4: int
|
||||
DAY_5: int
|
||||
DAY_6: int
|
||||
DAY_7: int
|
||||
ABDAY_1: int
|
||||
ABDAY_2: int
|
||||
ABDAY_3: int
|
||||
ABDAY_4: int
|
||||
ABDAY_5: int
|
||||
ABDAY_6: int
|
||||
ABDAY_7: int
|
||||
|
||||
MON_1 = ... # type: int
|
||||
MON_2 = ... # type: int
|
||||
MON_3 = ... # type: int
|
||||
MON_4 = ... # type: int
|
||||
MON_5 = ... # type: int
|
||||
MON_6 = ... # type: int
|
||||
MON_7 = ... # type: int
|
||||
MON_8 = ... # type: int
|
||||
MON_9 = ... # type: int
|
||||
MON_10 = ... # type: int
|
||||
MON_11 = ... # type: int
|
||||
MON_12 = ... # type: int
|
||||
ABMON_1 = ... # type: int
|
||||
ABMON_2 = ... # type: int
|
||||
ABMON_3 = ... # type: int
|
||||
ABMON_4 = ... # type: int
|
||||
ABMON_5 = ... # type: int
|
||||
ABMON_6 = ... # type: int
|
||||
ABMON_7 = ... # type: int
|
||||
ABMON_8 = ... # type: int
|
||||
ABMON_9 = ... # type: int
|
||||
ABMON_10 = ... # type: int
|
||||
ABMON_11 = ... # type: int
|
||||
ABMON_12 = ... # type: int
|
||||
MON_1: int
|
||||
MON_2: int
|
||||
MON_3: int
|
||||
MON_4: int
|
||||
MON_5: int
|
||||
MON_6: int
|
||||
MON_7: int
|
||||
MON_8: int
|
||||
MON_9: int
|
||||
MON_10: int
|
||||
MON_11: int
|
||||
MON_12: int
|
||||
ABMON_1: int
|
||||
ABMON_2: int
|
||||
ABMON_3: int
|
||||
ABMON_4: int
|
||||
ABMON_5: int
|
||||
ABMON_6: int
|
||||
ABMON_7: int
|
||||
ABMON_8: int
|
||||
ABMON_9: int
|
||||
ABMON_10: int
|
||||
ABMON_11: int
|
||||
ABMON_12: int
|
||||
|
||||
RADIXCHAR = ... # type: int
|
||||
THOUSEP = ... # type: int
|
||||
YESEXPR = ... # type: int
|
||||
NOEXPR = ... # type: int
|
||||
CRNCYSTR = ... # type: int
|
||||
RADIXCHAR: int
|
||||
THOUSEP: int
|
||||
YESEXPR: int
|
||||
NOEXPR: int
|
||||
CRNCYSTR: int
|
||||
|
||||
ERA = ... # type: int
|
||||
ERA_D_T_FMT = ... # type: int
|
||||
ERA_D_FMT = ... # type: int
|
||||
ERA_T_FMT = ... # type: int
|
||||
ERA: int
|
||||
ERA_D_T_FMT: int
|
||||
ERA_D_FMT: int
|
||||
ERA_T_FMT: int
|
||||
|
||||
ALT_DIGITS = ... # type: int
|
||||
ALT_DIGITS: int
|
||||
|
||||
LC_CTYPE = ... # type: int
|
||||
LC_COLLATE = ... # type: int
|
||||
LC_TIME = ... # type: int
|
||||
LC_MONETARY = ... # type: int
|
||||
LC_MESSAGES = ... # type: int
|
||||
LC_NUMERIC = ... # type: int
|
||||
LC_ALL = ... # type: int
|
||||
LC_CTYPE: int
|
||||
LC_COLLATE: int
|
||||
LC_TIME: int
|
||||
LC_MONETARY: int
|
||||
LC_MESSAGES: int
|
||||
LC_NUMERIC: int
|
||||
LC_ALL: int
|
||||
|
||||
CHAR_MAX = ... # type: int
|
||||
CHAR_MAX: int
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
|
||||
@@ -30,25 +30,25 @@ raiseExceptions: bool
|
||||
def currentframe() -> FrameType: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
_levelToName = ... # type: Dict[int, str]
|
||||
_nameToLevel = ... # type: Dict[str, int]
|
||||
_levelToName: Dict[int, str]
|
||||
_nameToLevel: Dict[str, int]
|
||||
else:
|
||||
_levelNames = ... # type: dict
|
||||
_levelNames: dict
|
||||
|
||||
class Filterer(object):
|
||||
filters = ... # type: List[Filter]
|
||||
filters: List[Filter]
|
||||
def __init__(self) -> None: ...
|
||||
def addFilter(self, filter: Filter) -> None: ...
|
||||
def removeFilter(self, filter: Filter) -> None: ...
|
||||
def filter(self, record: LogRecord) -> bool: ...
|
||||
|
||||
class Logger(Filterer):
|
||||
name = ... # type: str
|
||||
level = ... # type: int
|
||||
parent = ... # type: Union[Logger, PlaceHolder]
|
||||
propagate = ... # type: bool
|
||||
handlers = ... # type: List[Handler]
|
||||
disabled = ... # type: int
|
||||
name: str
|
||||
level: int
|
||||
parent: Union[Logger, PlaceHolder]
|
||||
propagate: bool
|
||||
handlers: List[Handler]
|
||||
disabled: int
|
||||
def __init__(self, name: str, level: _Level = ...) -> None: ...
|
||||
def setLevel(self, level: Union[int, str]) -> None: ...
|
||||
def isEnabledFor(self, lvl: int) -> bool: ...
|
||||
@@ -165,13 +165,13 @@ class Handler(Filterer):
|
||||
|
||||
|
||||
class Formatter:
|
||||
converter = ... # type: Callable[[Optional[float]], struct_time]
|
||||
_fmt = ... # type: Optional[str]
|
||||
datefmt = ... # type: Optional[str]
|
||||
converter: Callable[[Optional[float]], struct_time]
|
||||
_fmt: Optional[str]
|
||||
datefmt: Optional[str]
|
||||
if sys.version_info >= (3,):
|
||||
_style = ... # type: PercentStyle
|
||||
default_time_format = ... # type: str
|
||||
default_msec_format = ... # type: str
|
||||
_style: PercentStyle
|
||||
default_time_format: str
|
||||
default_msec_format: str
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
def __init__(self, fmt: Optional[str] = ...,
|
||||
@@ -196,29 +196,29 @@ class Filter:
|
||||
|
||||
|
||||
class LogRecord:
|
||||
args = ... # type: _ArgsType
|
||||
asctime = ... # type: str
|
||||
created = ... # type: int
|
||||
exc_info = ... # type: Optional[_SysExcInfoType]
|
||||
exc_text = ... # type: Optional[str]
|
||||
filename = ... # type: str
|
||||
funcName = ... # type: str
|
||||
levelname = ... # type: str
|
||||
levelno = ... # type: int
|
||||
lineno = ... # type: int
|
||||
module = ... # type: str
|
||||
msecs = ... # type: int
|
||||
message = ... # type: str
|
||||
msg = ... # type: str
|
||||
name = ... # type: str
|
||||
pathname = ... # type: str
|
||||
process = ... # type: int
|
||||
processName = ... # type: str
|
||||
relativeCreated = ... # type: int
|
||||
args: _ArgsType
|
||||
asctime: str
|
||||
created: int
|
||||
exc_info: Optional[_SysExcInfoType]
|
||||
exc_text: Optional[str]
|
||||
filename: str
|
||||
funcName: str
|
||||
levelname: str
|
||||
levelno: int
|
||||
lineno: int
|
||||
module: str
|
||||
msecs: int
|
||||
message: str
|
||||
msg: str
|
||||
name: str
|
||||
pathname: str
|
||||
process: int
|
||||
processName: str
|
||||
relativeCreated: int
|
||||
if sys.version_info >= (3,):
|
||||
stack_info = ... # type: Optional[str]
|
||||
thread = ... # type: int
|
||||
threadName = ... # type: str
|
||||
stack_info: Optional[str]
|
||||
thread: int
|
||||
threadName: str
|
||||
if sys.version_info >= (3,):
|
||||
def __init__(self, name: str, level: int, pathname: str, lineno: int,
|
||||
msg: Any, args: _ArgsType,
|
||||
@@ -376,21 +376,21 @@ if sys.version_info >= (3,):
|
||||
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
lastResort = ... # type: Optional[StreamHandler]
|
||||
lastResort: Optional[StreamHandler]
|
||||
|
||||
|
||||
class StreamHandler(Handler):
|
||||
stream = ... # type: IO[str]
|
||||
stream: IO[str]
|
||||
if sys.version_info >= (3,):
|
||||
terminator = ... # type: str
|
||||
terminator: str
|
||||
def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...
|
||||
|
||||
|
||||
class FileHandler(Handler):
|
||||
baseFilename = ... # type: str
|
||||
mode = ... # type: str
|
||||
encoding = ... # type: Optional[str]
|
||||
delay = ... # type: bool
|
||||
baseFilename: str
|
||||
mode: str
|
||||
encoding: Optional[str]
|
||||
delay: bool
|
||||
def __init__(self, filename: _Path, mode: str = ...,
|
||||
encoding: Optional[str] = ..., delay: bool = ...) -> None: ...
|
||||
|
||||
@@ -407,15 +407,15 @@ class PlaceHolder:
|
||||
|
||||
class RootLogger(Logger): ...
|
||||
|
||||
root = ... # type: RootLogger
|
||||
root: RootLogger
|
||||
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class PercentStyle(object):
|
||||
default_format = ... # type: str
|
||||
asctime_format = ... # type: str
|
||||
asctime_search = ... # type: str
|
||||
_fmt = ... # type: str
|
||||
default_format: str
|
||||
asctime_format: str
|
||||
asctime_search: str
|
||||
_fmt: str
|
||||
|
||||
def __init__(self, fmt: str) -> None: ...
|
||||
def usesTime(self) -> bool: ...
|
||||
@@ -425,9 +425,9 @@ if sys.version_info >= (3,):
|
||||
...
|
||||
|
||||
class StringTemplateStyle(PercentStyle):
|
||||
_tpl = ... # type: Template
|
||||
_tpl: Template
|
||||
|
||||
_STYLES = ... # type: Dict[str, Tuple[PercentStyle, str]]
|
||||
_STYLES: Dict[str, Tuple[PercentStyle, str]]
|
||||
|
||||
|
||||
BASIC_FORMAT = ... # type: str
|
||||
BASIC_FORMAT: str
|
||||
|
||||
@@ -41,9 +41,9 @@ class WatchedFileHandler(Handler):
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class BaseRotatingHandler(FileHandler):
|
||||
terminator = ... # type: str
|
||||
namer = ... # type: Optional[Callable[[str], str]]
|
||||
rotator = ... # type: Optional[Callable[[str, str], None]]
|
||||
terminator: str
|
||||
namer: Optional[Callable[[str], str]]
|
||||
rotator: Optional[Callable[[str, str], None]]
|
||||
def __init__(self, filename: _Path, mode: str,
|
||||
encoding: Optional[str] = ...,
|
||||
delay: bool = ...) -> None: ...
|
||||
@@ -89,9 +89,9 @@ else:
|
||||
|
||||
|
||||
class SocketHandler(Handler):
|
||||
retryStart = ... # type: float
|
||||
retryFactor = ... # type: float
|
||||
retryMax = ... # type: float
|
||||
retryStart: float
|
||||
retryFactor: float
|
||||
retryMax: float
|
||||
if sys.version_info >= (3, 4):
|
||||
def __init__(self, host: str, port: Optional[int]) -> None: ...
|
||||
else:
|
||||
@@ -106,34 +106,34 @@ class DatagramHandler(SocketHandler): ...
|
||||
|
||||
|
||||
class SysLogHandler(Handler):
|
||||
LOG_ALERT = ... # type: int
|
||||
LOG_CRIT = ... # type: int
|
||||
LOG_DEBUG = ... # type: int
|
||||
LOG_EMERG = ... # type: int
|
||||
LOG_ERR = ... # type: int
|
||||
LOG_INFO = ... # type: int
|
||||
LOG_NOTICE = ... # type: int
|
||||
LOG_WARNING = ... # type: int
|
||||
LOG_AUTH = ... # type: int
|
||||
LOG_AUTHPRIV = ... # type: int
|
||||
LOG_CRON = ... # type: int
|
||||
LOG_DAEMON = ... # type: int
|
||||
LOG_FTP = ... # type: int
|
||||
LOG_KERN = ... # type: int
|
||||
LOG_LPR = ... # type: int
|
||||
LOG_MAIL = ... # type: int
|
||||
LOG_NEWS = ... # type: int
|
||||
LOG_SYSLOG = ... # type: int
|
||||
LOG_USER = ... # type: int
|
||||
LOG_UUCP = ... # type: int
|
||||
LOG_LOCAL0 = ... # type: int
|
||||
LOG_LOCAL1 = ... # type: int
|
||||
LOG_LOCAL2 = ... # type: int
|
||||
LOG_LOCAL3 = ... # type: int
|
||||
LOG_LOCAL4 = ... # type: int
|
||||
LOG_LOCAL5 = ... # type: int
|
||||
LOG_LOCAL6 = ... # type: int
|
||||
LOG_LOCAL7 = ... # type: int
|
||||
LOG_ALERT: int
|
||||
LOG_CRIT: int
|
||||
LOG_DEBUG: int
|
||||
LOG_EMERG: int
|
||||
LOG_ERR: int
|
||||
LOG_INFO: int
|
||||
LOG_NOTICE: int
|
||||
LOG_WARNING: int
|
||||
LOG_AUTH: int
|
||||
LOG_AUTHPRIV: int
|
||||
LOG_CRON: int
|
||||
LOG_DAEMON: int
|
||||
LOG_FTP: int
|
||||
LOG_KERN: int
|
||||
LOG_LPR: int
|
||||
LOG_MAIL: int
|
||||
LOG_NEWS: int
|
||||
LOG_SYSLOG: int
|
||||
LOG_USER: int
|
||||
LOG_UUCP: int
|
||||
LOG_LOCAL0: int
|
||||
LOG_LOCAL1: int
|
||||
LOG_LOCAL2: int
|
||||
LOG_LOCAL3: int
|
||||
LOG_LOCAL4: int
|
||||
LOG_LOCAL5: int
|
||||
LOG_LOCAL6: int
|
||||
LOG_LOCAL7: int
|
||||
def __init__(self, address: Union[Tuple[str, int], str] = ...,
|
||||
facility: int = ..., socktype: _SocketKind = ...) -> None: ...
|
||||
def encodePriority(self, facility: Union[int, str],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any, IO
|
||||
|
||||
version = ... # type: int
|
||||
version: int
|
||||
|
||||
def dump(value: Any, file: IO[Any], version: int = ...) -> None: ...
|
||||
def load(file: IO[Any]) -> Any: ...
|
||||
|
||||
@@ -5,13 +5,13 @@ from typing import Tuple, Iterable, SupportsFloat, SupportsInt
|
||||
|
||||
import sys
|
||||
|
||||
e = ... # type: float
|
||||
pi = ... # type: float
|
||||
e: float
|
||||
pi: float
|
||||
if sys.version_info >= (3, 5):
|
||||
inf = ... # type: float
|
||||
nan = ... # type: float
|
||||
inf: float
|
||||
nan: float
|
||||
if sys.version_info >= (3, 6):
|
||||
tau = ... # type: float
|
||||
tau: float
|
||||
|
||||
def acos(x: SupportsFloat) -> float: ...
|
||||
def acosh(x: SupportsFloat) -> float: ...
|
||||
|
||||
+10
-10
@@ -12,18 +12,18 @@ def init(files: Optional[Sequence[str]] = ...) -> None: ...
|
||||
def read_mime_types(filename: str) -> Optional[Dict[str, str]]: ...
|
||||
def add_type(type: str, ext: str, strict: bool = ...) -> None: ...
|
||||
|
||||
inited = ... # type: bool
|
||||
knownfiles = ... # type: List[str]
|
||||
suffix_map = ... # type: Dict[str, str]
|
||||
encodings_map = ... # type: Dict[str, str]
|
||||
types_map = ... # type: Dict[str, str]
|
||||
common_types = ... # type: Dict[str, str]
|
||||
inited: bool
|
||||
knownfiles: List[str]
|
||||
suffix_map: Dict[str, str]
|
||||
encodings_map: Dict[str, str]
|
||||
types_map: Dict[str, str]
|
||||
common_types: Dict[str, str]
|
||||
|
||||
class MimeTypes:
|
||||
suffix_map = ... # type: Dict[str, str]
|
||||
encodings_map = ... # type: Dict[str, str]
|
||||
types_map = ... # type: Tuple[Dict[str, str], Dict[str, str]]
|
||||
types_map_inv = ... # type: Tuple[Dict[str, str], Dict[str, str]]
|
||||
suffix_map: Dict[str, str]
|
||||
encodings_map: Dict[str, str]
|
||||
types_map: Tuple[Dict[str, str], Dict[str, str]]
|
||||
types_map_inv: Tuple[Dict[str, str], Dict[str, str]]
|
||||
def __init__(self, filenames: Tuple[str, ...] = ...,
|
||||
strict: bool = ...) -> None: ...
|
||||
def guess_extension(self, type: str,
|
||||
|
||||
+16
-16
@@ -2,25 +2,25 @@ import sys
|
||||
from typing import (Optional, Sequence, Union, Generic, overload,
|
||||
Iterable, Iterator, Sized, ContextManager, AnyStr)
|
||||
|
||||
ACCESS_DEFAULT = ... # type: int
|
||||
ACCESS_READ = ... # type: int
|
||||
ACCESS_WRITE = ... # type: int
|
||||
ACCESS_COPY = ... # type: int
|
||||
ACCESS_DEFAULT: int
|
||||
ACCESS_READ: int
|
||||
ACCESS_WRITE: int
|
||||
ACCESS_COPY: int
|
||||
|
||||
ALLOCATIONGRANULARITY = ... # type: int
|
||||
ALLOCATIONGRANULARITY: int
|
||||
|
||||
if sys.platform != 'win32':
|
||||
MAP_ANON = ... # type: int
|
||||
MAP_ANONYMOUS = ... # type: int
|
||||
MAP_DENYWRITE = ... # type: int
|
||||
MAP_EXECUTABLE = ... # type: int
|
||||
MAP_PRIVATE = ... # type: int
|
||||
MAP_SHARED = ... # type: int
|
||||
PROT_EXEC = ... # type: int
|
||||
PROT_READ = ... # type: int
|
||||
PROT_WRITE = ... # type: int
|
||||
MAP_ANON: int
|
||||
MAP_ANONYMOUS: int
|
||||
MAP_DENYWRITE: int
|
||||
MAP_EXECUTABLE: int
|
||||
MAP_PRIVATE: int
|
||||
MAP_SHARED: int
|
||||
PROT_EXEC: int
|
||||
PROT_READ: int
|
||||
PROT_WRITE: int
|
||||
|
||||
PAGESIZE = ... # type: int
|
||||
PAGESIZE: int
|
||||
|
||||
class _mmap(Generic[AnyStr]):
|
||||
if sys.platform == 'win32':
|
||||
@@ -50,7 +50,7 @@ class _mmap(Generic[AnyStr]):
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class mmap(_mmap, ContextManager[mmap], Iterable[bytes], Sized):
|
||||
closed = ... # type: bool
|
||||
closed: bool
|
||||
def rfind(self, sub: bytes, start: int = ..., stop: int = ...) -> int: ...
|
||||
@overload
|
||||
def __getitem__(self, index: int) -> int: ...
|
||||
|
||||
+13
-13
@@ -2,22 +2,22 @@ from typing import List, Dict, Optional, Sequence
|
||||
|
||||
import sys
|
||||
|
||||
cmp_op = ... # type: Sequence[str]
|
||||
hasconst = ... # type: List[int]
|
||||
hasname = ... # type: List[int]
|
||||
hasjrel = ... # type: List[int]
|
||||
hasjabs = ... # type: List[int]
|
||||
haslocal = ... # type: List[int]
|
||||
hascompare = ... # type: List[int]
|
||||
hasfree = ... # type: List[int]
|
||||
opname = ... # type: List[str]
|
||||
cmp_op: Sequence[str]
|
||||
hasconst: List[int]
|
||||
hasname: List[int]
|
||||
hasjrel: List[int]
|
||||
hasjabs: List[int]
|
||||
haslocal: List[int]
|
||||
hascompare: List[int]
|
||||
hasfree: List[int]
|
||||
opname: List[str]
|
||||
|
||||
opmap = ... # type: Dict[str, int]
|
||||
HAVE_ARGUMENT = ... # type: int
|
||||
EXTENDED_ARG = ... # type: int
|
||||
opmap: Dict[str, int]
|
||||
HAVE_ARGUMENT: int
|
||||
EXTENDED_ARG: int
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
def stack_effect(opcode: int, oparg: Optional[int] = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
hasnargs = ... # type: List[int]
|
||||
hasnargs: List[int]
|
||||
|
||||
+59
-59
@@ -8,9 +8,9 @@ if sys.version_info >= (3,):
|
||||
else:
|
||||
_Text = Union[str, unicode]
|
||||
|
||||
NO_DEFAULT = ... # type: Tuple[_Text, ...]
|
||||
SUPPRESS_HELP = ... # type: _Text
|
||||
SUPPRESS_USAGE = ... # type: _Text
|
||||
NO_DEFAULT: Tuple[_Text, ...]
|
||||
SUPPRESS_HELP: _Text
|
||||
SUPPRESS_USAGE: _Text
|
||||
|
||||
def check_builtin(option: Option, opt: Any, value: _Text) -> Any: ...
|
||||
def check_choice(option: Option, opt: Any, value: _Text) -> Any: ...
|
||||
@@ -18,20 +18,20 @@ if sys.version_info < (3,):
|
||||
def isbasestring(x: Any) -> bool: ...
|
||||
|
||||
class OptParseError(Exception):
|
||||
msg = ... # type: _Text
|
||||
msg: _Text
|
||||
def __init__(self, msg: _Text) -> None: ...
|
||||
|
||||
class BadOptionError(OptParseError):
|
||||
opt_str = ... # type: _Text
|
||||
opt_str: _Text
|
||||
def __init__(self, opt_str: _Text) -> None: ...
|
||||
|
||||
class AmbiguousOptionError(BadOptionError):
|
||||
possibilities = ... # type: Iterable[_Text]
|
||||
possibilities: Iterable[_Text]
|
||||
def __init__(self, opt_str: _Text, possibilities: Sequence[_Text]) -> None: ...
|
||||
|
||||
class OptionError(OptParseError):
|
||||
msg = ... # type: _Text
|
||||
option_id = ... # type: _Text
|
||||
msg: _Text
|
||||
option_id: _Text
|
||||
def __init__(self, msg: _Text, option: Option) -> None: ...
|
||||
|
||||
class OptionConflictError(OptionError): ...
|
||||
@@ -40,20 +40,20 @@ class OptionValueError(OptParseError): ...
|
||||
|
||||
|
||||
class HelpFormatter:
|
||||
NO_DEFAULT_VALUE = ... # type: _Text
|
||||
_long_opt_fmt = ... # type: _Text
|
||||
_short_opt_fmt = ... # type: _Text
|
||||
current_indent = ... # type: int
|
||||
default_tag = ... # type: _Text
|
||||
help_position = ... # type: Any
|
||||
help_width = ... # type: Any
|
||||
indent_increment = ... # type: int
|
||||
level = ... # type: int
|
||||
max_help_position = ... # type: int
|
||||
option_strings = ... # type: Dict[Option, _Text]
|
||||
parser = ... # type: OptionParser
|
||||
short_first = ... # type: Any
|
||||
width = ... # type: int
|
||||
NO_DEFAULT_VALUE: _Text
|
||||
_long_opt_fmt: _Text
|
||||
_short_opt_fmt: _Text
|
||||
current_indent: int
|
||||
default_tag: _Text
|
||||
help_position: Any
|
||||
help_width: Any
|
||||
indent_increment: int
|
||||
level: int
|
||||
max_help_position: int
|
||||
option_strings: Dict[Option, _Text]
|
||||
parser: OptionParser
|
||||
short_first: Any
|
||||
width: int
|
||||
def __init__(self, indent_increment: int, max_help_position: int, width: Optional[int], short_first: int) -> None: ...
|
||||
def _format__Text(self, _Text: _Text) -> _Text: ...
|
||||
def dedent(self) -> None: ...
|
||||
@@ -89,21 +89,21 @@ class TitledHelpFormatter(HelpFormatter):
|
||||
def format_usage(self, usage: _Text) -> _Text: ...
|
||||
|
||||
class Option:
|
||||
ACTIONS = ... # type: Tuple[_Text, ...]
|
||||
ALWAYS_TYPED_ACTIONS = ... # type: Tuple[_Text, ...]
|
||||
ATTRS = ... # type: List[_Text]
|
||||
CHECK_METHODS = ... # type: Optional[List[Callable]]
|
||||
CONST_ACTIONS = ... # type: Tuple[_Text, ...]
|
||||
STORE_ACTIONS = ... # type: Tuple[_Text, ...]
|
||||
TYPED_ACTIONS = ... # type: Tuple[_Text, ...]
|
||||
TYPES = ... # type: Tuple[_Text, ...]
|
||||
TYPE_CHECKER = ... # type: Dict[_Text, Callable]
|
||||
_long_opts = ... # type: List[_Text]
|
||||
_short_opts = ... # type: List[_Text]
|
||||
action = ... # type: _Text
|
||||
dest = ... # type: Optional[_Text]
|
||||
nargs = ... # type: int
|
||||
type = ... # type: Any
|
||||
ACTIONS: Tuple[_Text, ...]
|
||||
ALWAYS_TYPED_ACTIONS: Tuple[_Text, ...]
|
||||
ATTRS: List[_Text]
|
||||
CHECK_METHODS: Optional[List[Callable]]
|
||||
CONST_ACTIONS: Tuple[_Text, ...]
|
||||
STORE_ACTIONS: Tuple[_Text, ...]
|
||||
TYPED_ACTIONS: Tuple[_Text, ...]
|
||||
TYPES: Tuple[_Text, ...]
|
||||
TYPE_CHECKER: Dict[_Text, Callable]
|
||||
_long_opts: List[_Text]
|
||||
_short_opts: List[_Text]
|
||||
action: _Text
|
||||
dest: Optional[_Text]
|
||||
nargs: int
|
||||
type: Any
|
||||
def __init__(self, *opts, **attrs) -> None: ...
|
||||
def _check_action(self) -> None: ...
|
||||
def _check_callback(self) -> None: ...
|
||||
@@ -125,12 +125,12 @@ class Option:
|
||||
make_option = Option
|
||||
|
||||
class OptionContainer:
|
||||
_long_opt = ... # type: Dict[_Text, Option]
|
||||
_short_opt = ... # type: Dict[_Text, Option]
|
||||
conflict_handler = ... # type: _Text
|
||||
defaults = ... # type: Dict[_Text, Any]
|
||||
description = ... # type: Any
|
||||
option_class = ... # type: Any
|
||||
_long_opt: Dict[_Text, Option]
|
||||
_short_opt: Dict[_Text, Option]
|
||||
conflict_handler: _Text
|
||||
defaults: Dict[_Text, Any]
|
||||
description: Any
|
||||
option_class: Any
|
||||
def __init__(self, option_class: Option, conflict_handler: Any, description: Any) -> None: ...
|
||||
def _check_conflict(self, option: Any) -> None: ...
|
||||
def _create_option_mappings(self) -> None: ...
|
||||
@@ -149,9 +149,9 @@ class OptionContainer:
|
||||
def set_description(self, description: Any) -> None: ...
|
||||
|
||||
class OptionGroup(OptionContainer):
|
||||
option_list = ... # type: List[Option]
|
||||
parser = ... # type: OptionParser
|
||||
title = ... # type: _Text
|
||||
option_list: List[Option]
|
||||
parser: OptionParser
|
||||
title: _Text
|
||||
def __init__(self, parser: OptionParser, title: _Text, description: Optional[_Text] = ...) -> None: ...
|
||||
def _create_option_list(self) -> None: ...
|
||||
def set_title(self, title: _Text) -> None: ...
|
||||
@@ -168,19 +168,19 @@ class Values:
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
|
||||
class OptionParser(OptionContainer):
|
||||
allow_interspersed_args = ... # type: bool
|
||||
epilog = ... # type: Optional[_Text]
|
||||
formatter = ... # type: HelpFormatter
|
||||
largs = ... # type: Optional[List[_Text]]
|
||||
option_groups = ... # type: List[OptionParser]
|
||||
option_list = ... # type: List[Option]
|
||||
process_default_values = ... # type: Any
|
||||
prog = ... # type: Optional[_Text]
|
||||
rargs = ... # type: Optional[List[Any]]
|
||||
standard_option_list = ... # type: List[Option]
|
||||
usage = ... # type: Optional[_Text]
|
||||
values = ... # type: Optional[Values]
|
||||
version = ... # type: _Text
|
||||
allow_interspersed_args: bool
|
||||
epilog: Optional[_Text]
|
||||
formatter: HelpFormatter
|
||||
largs: Optional[List[_Text]]
|
||||
option_groups: List[OptionParser]
|
||||
option_list: List[Option]
|
||||
process_default_values: Any
|
||||
prog: Optional[_Text]
|
||||
rargs: Optional[List[Any]]
|
||||
standard_option_list: List[Option]
|
||||
usage: Optional[_Text]
|
||||
values: Optional[Values]
|
||||
version: _Text
|
||||
def __init__(self,
|
||||
usage: Optional[_Text] = ...,
|
||||
option_list: Iterable[Option] = ...,
|
||||
|
||||
@@ -53,5 +53,5 @@ if sys.version_info < (3, 7):
|
||||
def __delattr__(self, attr: str) -> None: ...
|
||||
|
||||
class Data:
|
||||
data = ... # type: bytes
|
||||
data: bytes
|
||||
def __init__(self, data: bytes) -> None: ...
|
||||
|
||||
@@ -6,10 +6,10 @@ from typing import Optional, List, Text, AnyStr, Union
|
||||
_EitherStr = Union[bytes, Text]
|
||||
|
||||
class PyCompileError(Exception):
|
||||
exc_type_name = ... # type: str
|
||||
exc_value = ... # type: BaseException
|
||||
file = ... # type: str
|
||||
msg = ... # type: str
|
||||
exc_type_name: str
|
||||
exc_value: BaseException
|
||||
file: str
|
||||
msg: str
|
||||
def __init__(self, exc_type: str, exc_value: BaseException, file: str, msg: str = ...) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 2):
|
||||
|
||||
+10
-10
@@ -2,12 +2,12 @@ from typing import List, Union, Sequence, Optional, Dict
|
||||
|
||||
|
||||
class Class:
|
||||
module = ... # type: str
|
||||
name = ... # type: str
|
||||
super = ... # type: Optional[List[Union[Class, str]]]
|
||||
methods = ... # type: Dict[str, int]
|
||||
file = ... # type: int
|
||||
lineno = ... # type: int
|
||||
module: str
|
||||
name: str
|
||||
super: Optional[List[Union[Class, str]]]
|
||||
methods: Dict[str, int]
|
||||
file: int
|
||||
lineno: int
|
||||
|
||||
def __init__(self,
|
||||
module: str,
|
||||
@@ -18,10 +18,10 @@ class Class:
|
||||
|
||||
|
||||
class Function:
|
||||
module = ... # type: str
|
||||
name = ... # type: str
|
||||
file = ... # type: int
|
||||
lineno = ... # type: int
|
||||
module: str
|
||||
name: str
|
||||
file: int
|
||||
lineno: int
|
||||
|
||||
def __init__(self,
|
||||
module: str,
|
||||
|
||||
+27
-27
@@ -9,10 +9,10 @@ else:
|
||||
# the return type of sys.exc_info(), used by ErrorDuringImport.__init__
|
||||
_Exc_Info = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
|
||||
|
||||
__author__ = ... # type: str
|
||||
__date__ = ... # type: str
|
||||
__version__ = ... # type: str
|
||||
__credits__ = ... # type: str
|
||||
__author__: str
|
||||
__date__: str
|
||||
__version__: str
|
||||
__credits__: str
|
||||
|
||||
def pathdirs() -> List[str]: ...
|
||||
def getdoc(object: object) -> Text: ...
|
||||
@@ -31,10 +31,10 @@ def source_synopsis(file: IO[AnyStr]) -> Optional[AnyStr]: ...
|
||||
def synopsis(filename: str, cache: MutableMapping[str, Tuple[int, str]] = ...) -> Optional[str]: ...
|
||||
|
||||
class ErrorDuringImport(Exception):
|
||||
filename = ... # type: str
|
||||
exc = ... # type: Optional[Type[BaseException]]
|
||||
value = ... # type: Optional[BaseException]
|
||||
tb = ... # type: Optional[TracebackType]
|
||||
filename: str
|
||||
exc: Optional[Type[BaseException]]
|
||||
value: Optional[BaseException]
|
||||
tb: Optional[TracebackType]
|
||||
def __init__(self, filename: str, exc_info: _Exc_Info) -> None: ...
|
||||
|
||||
def importfile(path: str) -> ModuleType: ...
|
||||
@@ -52,11 +52,11 @@ class Doc:
|
||||
def getdocloc(self, object: object) -> Optional[str]: ...
|
||||
|
||||
class HTMLRepr(Repr):
|
||||
maxlist = ... # type: int
|
||||
maxtuple = ... # type: int
|
||||
maxdict = ... # type: int
|
||||
maxstring = ... # type: int
|
||||
maxother = ... # type: int
|
||||
maxlist: int
|
||||
maxtuple: int
|
||||
maxdict: int
|
||||
maxstring: int
|
||||
maxother: int
|
||||
def __init__(self) -> None: ...
|
||||
def escape(self, text: str) -> str: ...
|
||||
def repr(self, object: object) -> str: ...
|
||||
@@ -92,11 +92,11 @@ class HTMLDoc(Doc):
|
||||
def index(self, dir: str, shadowed: Optional[MutableMapping[str, bool]] = ...) -> str: ...
|
||||
|
||||
class TextRepr(Repr):
|
||||
maxlist = ... # type: int
|
||||
maxtuple = ... # type: int
|
||||
maxdict = ... # type: int
|
||||
maxstring = ... # type: int
|
||||
maxother = ... # type: int
|
||||
maxlist: int
|
||||
maxtuple: int
|
||||
maxdict: int
|
||||
maxstring: int
|
||||
maxother: int
|
||||
def __init__(self) -> None: ...
|
||||
def repr1(self, x: object, level: complex) -> str: ...
|
||||
def repr_string(self, x: str, level: complex) -> str: ...
|
||||
@@ -127,8 +127,8 @@ def plainpager(text: str) -> None: ...
|
||||
def describe(thing: Any) -> str: ...
|
||||
def locate(path: str, forceload: bool = ...) -> object: ...
|
||||
|
||||
text = ... # type: TextDoc
|
||||
html = ... # type: HTMLDoc
|
||||
text: TextDoc
|
||||
html: HTMLDoc
|
||||
|
||||
class _OldStyleClass: ...
|
||||
|
||||
@@ -139,12 +139,12 @@ def writedoc(thing: Union[str, object], forceload: bool = ...) -> None: ...
|
||||
def writedocs(dir: str, pkgpath: str = ..., done: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class Helper:
|
||||
keywords = ... # type: Dict[str, Union[str, Tuple[str, str]]]
|
||||
symbols = ... # type: Dict[str, str]
|
||||
topics = ... # type: Dict[str, Union[str, Tuple[str, ...]]]
|
||||
keywords: Dict[str, Union[str, Tuple[str, str]]]
|
||||
symbols: Dict[str, str]
|
||||
topics: Dict[str, Union[str, Tuple[str, ...]]]
|
||||
def __init__(self, input: Optional[IO[str]] = ..., output: Optional[IO[str]] = ...) -> None: ...
|
||||
input = ... # type: IO[str]
|
||||
output = ... # type: IO[str]
|
||||
input: IO[str]
|
||||
output: IO[str]
|
||||
def __call__(self, request: Union[str, Helper, object] = ...) -> None: ...
|
||||
def interact(self) -> None: ...
|
||||
def getline(self, prompt: str) -> str: ...
|
||||
@@ -158,7 +158,7 @@ class Helper:
|
||||
def showsymbol(self, symbol: str) -> None: ...
|
||||
def listmodules(self, key: str = ...) -> None: ...
|
||||
|
||||
help = ... # type: Helper
|
||||
help: Helper
|
||||
|
||||
# See Python issue #11182: "remove the unused and undocumented pydoc.Scanner class"
|
||||
# class Scanner:
|
||||
@@ -170,7 +170,7 @@ help = ... # type: Helper
|
||||
# def next(self): ...
|
||||
|
||||
class ModuleScanner:
|
||||
quit = ... # type: bool
|
||||
quit: bool
|
||||
def run(self, callback: Callable[[Optional[str], str, str], None], key: Optional[Any] = ..., completer: Optional[Callable[[], None]] = ..., onerror: Optional[Callable] = ...) -> None: ...
|
||||
|
||||
def apropos(key: str) -> None: ...
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
from typing import List, Iterable, Optional
|
||||
import sys
|
||||
|
||||
PREFIXES = ... # type: List[str]
|
||||
ENABLE_USER_SITE = ... # type: Optional[bool]
|
||||
USER_SITE = ... # type: Optional[str]
|
||||
USER_BASE = ... # type: Optional[str]
|
||||
PREFIXES: List[str]
|
||||
ENABLE_USER_SITE: Optional[bool]
|
||||
USER_SITE: Optional[str]
|
||||
USER_BASE: Optional[str]
|
||||
|
||||
if sys.version_info < (3,):
|
||||
def main() -> None: ...
|
||||
|
||||
@@ -30,43 +30,43 @@ def register_adapters_and_converters(): ...
|
||||
|
||||
# The remaining definitions are imported from _sqlite3.
|
||||
|
||||
PARSE_COLNAMES = ... # type: int
|
||||
PARSE_DECLTYPES = ... # type: int
|
||||
SQLITE_ALTER_TABLE = ... # type: int
|
||||
SQLITE_ANALYZE = ... # type: int
|
||||
SQLITE_ATTACH = ... # type: int
|
||||
SQLITE_CREATE_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_TEMP_VIEW = ... # type: int
|
||||
SQLITE_CREATE_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_VIEW = ... # type: int
|
||||
SQLITE_DELETE = ... # type: int
|
||||
SQLITE_DENY = ... # type: int
|
||||
SQLITE_DETACH = ... # type: int
|
||||
SQLITE_DROP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TEMP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_TEMP_VIEW = ... # type: int
|
||||
SQLITE_DROP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_VIEW = ... # type: int
|
||||
SQLITE_IGNORE = ... # type: int
|
||||
SQLITE_INSERT = ... # type: int
|
||||
SQLITE_OK = ... # type: int
|
||||
SQLITE_PRAGMA = ... # type: int
|
||||
SQLITE_READ = ... # type: int
|
||||
SQLITE_REINDEX = ... # type: int
|
||||
SQLITE_SELECT = ... # type: int
|
||||
SQLITE_TRANSACTION = ... # type: int
|
||||
SQLITE_UPDATE = ... # type: int
|
||||
adapters = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
sqlite_version = ... # type: str
|
||||
version = ... # type: str
|
||||
PARSE_COLNAMES: int
|
||||
PARSE_DECLTYPES: int
|
||||
SQLITE_ALTER_TABLE: int
|
||||
SQLITE_ANALYZE: int
|
||||
SQLITE_ATTACH: int
|
||||
SQLITE_CREATE_INDEX: int
|
||||
SQLITE_CREATE_TABLE: int
|
||||
SQLITE_CREATE_TEMP_INDEX: int
|
||||
SQLITE_CREATE_TEMP_TABLE: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER: int
|
||||
SQLITE_CREATE_TEMP_VIEW: int
|
||||
SQLITE_CREATE_TRIGGER: int
|
||||
SQLITE_CREATE_VIEW: int
|
||||
SQLITE_DELETE: int
|
||||
SQLITE_DENY: int
|
||||
SQLITE_DETACH: int
|
||||
SQLITE_DROP_INDEX: int
|
||||
SQLITE_DROP_TABLE: int
|
||||
SQLITE_DROP_TEMP_INDEX: int
|
||||
SQLITE_DROP_TEMP_TABLE: int
|
||||
SQLITE_DROP_TEMP_TRIGGER: int
|
||||
SQLITE_DROP_TEMP_VIEW: int
|
||||
SQLITE_DROP_TRIGGER: int
|
||||
SQLITE_DROP_VIEW: int
|
||||
SQLITE_IGNORE: int
|
||||
SQLITE_INSERT: int
|
||||
SQLITE_OK: int
|
||||
SQLITE_PRAGMA: int
|
||||
SQLITE_READ: int
|
||||
SQLITE_REINDEX: int
|
||||
SQLITE_SELECT: int
|
||||
SQLITE_TRANSACTION: int
|
||||
SQLITE_UPDATE: int
|
||||
adapters: Any
|
||||
converters: Any
|
||||
sqlite_version: str
|
||||
version: str
|
||||
|
||||
# TODO: adapt needs to get probed
|
||||
def adapt(obj, protocol, alternate): ...
|
||||
@@ -108,21 +108,21 @@ class Cache(object):
|
||||
def get(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class Connection(object):
|
||||
DataError = ... # type: Any
|
||||
DatabaseError = ... # type: Any
|
||||
Error = ... # type: Any
|
||||
IntegrityError = ... # type: Any
|
||||
InterfaceError = ... # type: Any
|
||||
InternalError = ... # type: Any
|
||||
NotSupportedError = ... # type: Any
|
||||
OperationalError = ... # type: Any
|
||||
ProgrammingError = ... # type: Any
|
||||
Warning = ... # type: Any
|
||||
in_transaction = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
text_factory = ... # type: Any
|
||||
total_changes = ... # type: Any
|
||||
DataError: Any
|
||||
DatabaseError: Any
|
||||
Error: Any
|
||||
IntegrityError: Any
|
||||
InterfaceError: Any
|
||||
InternalError: Any
|
||||
NotSupportedError: Any
|
||||
OperationalError: Any
|
||||
ProgrammingError: Any
|
||||
Warning: Any
|
||||
in_transaction: Any
|
||||
isolation_level: Any
|
||||
row_factory: Any
|
||||
text_factory: Any
|
||||
total_changes: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def close(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
@@ -157,12 +157,12 @@ class Connection(object):
|
||||
def __exit__(self, *args, **kwargs): ...
|
||||
|
||||
class Cursor(Iterator[Any]):
|
||||
arraysize = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
description = ... # type: Any
|
||||
lastrowid = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
rowcount = ... # type: Any
|
||||
arraysize: Any
|
||||
connection: Any
|
||||
description: Any
|
||||
lastrowid: Any
|
||||
row_factory: Any
|
||||
rowcount: Any
|
||||
# TODO: Cursor class accepts exactly 1 argument
|
||||
# required type is sqlite3.Connection (which is imported as _Connection)
|
||||
# however, the name of the __init__ variable is unknown
|
||||
@@ -200,7 +200,7 @@ class NotSupportedError(DatabaseError): ...
|
||||
class OperationalError(DatabaseError): ...
|
||||
|
||||
class OptimizedUnicode(object):
|
||||
maketrans = ... # type: Any
|
||||
maketrans: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def capitalize(self, *args, **kwargs): ...
|
||||
def casefold(self, *args, **kwargs): ...
|
||||
|
||||
@@ -5,7 +5,7 @@ import sys
|
||||
from sre_parse import SubPattern
|
||||
from typing import Any, List, Pattern, Tuple, Type, TypeVar, Union
|
||||
|
||||
MAXCODE = ... # type: int
|
||||
MAXCODE: int
|
||||
if sys.version_info < (3, 0):
|
||||
STRING_TYPES: Tuple[Type[str], Type[unicode]]
|
||||
_IsStringType = int
|
||||
|
||||
@@ -32,7 +32,7 @@ class Struct:
|
||||
format: str
|
||||
else:
|
||||
format: bytes
|
||||
size = ... # type: int
|
||||
size: int
|
||||
|
||||
def __init__(self, format: _FmtType) -> None: ...
|
||||
|
||||
|
||||
+14
-14
@@ -7,20 +7,20 @@ _File = Union[Text, IO[bytes]]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
AUDIO_FILE_MAGIC = ... # type: int
|
||||
AUDIO_FILE_ENCODING_MULAW_8 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_8 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_16 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_24 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_32 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_FLOAT = ... # type: int
|
||||
AUDIO_FILE_ENCODING_DOUBLE = ... # type: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G721 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G722 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G723_3 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G723_5 = ... # type: int
|
||||
AUDIO_FILE_ENCODING_ALAW_8 = ... # type: int
|
||||
AUDIO_UNKNOWN_SIZE = ... # type: int
|
||||
AUDIO_FILE_MAGIC: int
|
||||
AUDIO_FILE_ENCODING_MULAW_8: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_8: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_16: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_24: int
|
||||
AUDIO_FILE_ENCODING_LINEAR_32: int
|
||||
AUDIO_FILE_ENCODING_FLOAT: int
|
||||
AUDIO_FILE_ENCODING_DOUBLE: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G721: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G722: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G723_3: int
|
||||
AUDIO_FILE_ENCODING_ADPCM_G723_5: int
|
||||
AUDIO_FILE_ENCODING_ALAW_8: int
|
||||
AUDIO_UNKNOWN_SIZE: int
|
||||
|
||||
if sys.version_info < (3, 0):
|
||||
_sunau_params = Tuple[int, int, int, int, str, str]
|
||||
|
||||
+31
-31
@@ -1,36 +1,36 @@
|
||||
from typing import overload
|
||||
|
||||
LOG_ALERT = ... # type: int
|
||||
LOG_AUTH = ... # type: int
|
||||
LOG_CONS = ... # type: int
|
||||
LOG_CRIT = ... # type: int
|
||||
LOG_CRON = ... # type: int
|
||||
LOG_DAEMON = ... # type: int
|
||||
LOG_DEBUG = ... # type: int
|
||||
LOG_EMERG = ... # type: int
|
||||
LOG_ERR = ... # type: int
|
||||
LOG_INFO = ... # type: int
|
||||
LOG_KERN = ... # type: int
|
||||
LOG_LOCAL0 = ... # type: int
|
||||
LOG_LOCAL1 = ... # type: int
|
||||
LOG_LOCAL2 = ... # type: int
|
||||
LOG_LOCAL3 = ... # type: int
|
||||
LOG_LOCAL4 = ... # type: int
|
||||
LOG_LOCAL5 = ... # type: int
|
||||
LOG_LOCAL6 = ... # type: int
|
||||
LOG_LOCAL7 = ... # type: int
|
||||
LOG_LPR = ... # type: int
|
||||
LOG_MAIL = ... # type: int
|
||||
LOG_NDELAY = ... # type: int
|
||||
LOG_NEWS = ... # type: int
|
||||
LOG_NOTICE = ... # type: int
|
||||
LOG_NOWAIT = ... # type: int
|
||||
LOG_PERROR = ... # type: int
|
||||
LOG_PID = ... # type: int
|
||||
LOG_SYSLOG = ... # type: int
|
||||
LOG_USER = ... # type: int
|
||||
LOG_UUCP = ... # type: int
|
||||
LOG_WARNING = ... # type: int
|
||||
LOG_ALERT: int
|
||||
LOG_AUTH: int
|
||||
LOG_CONS: int
|
||||
LOG_CRIT: int
|
||||
LOG_CRON: int
|
||||
LOG_DAEMON: int
|
||||
LOG_DEBUG: int
|
||||
LOG_EMERG: int
|
||||
LOG_ERR: int
|
||||
LOG_INFO: int
|
||||
LOG_KERN: int
|
||||
LOG_LOCAL0: int
|
||||
LOG_LOCAL1: int
|
||||
LOG_LOCAL2: int
|
||||
LOG_LOCAL3: int
|
||||
LOG_LOCAL4: int
|
||||
LOG_LOCAL5: int
|
||||
LOG_LOCAL6: int
|
||||
LOG_LOCAL7: int
|
||||
LOG_LPR: int
|
||||
LOG_MAIL: int
|
||||
LOG_NDELAY: int
|
||||
LOG_NEWS: int
|
||||
LOG_NOTICE: int
|
||||
LOG_NOWAIT: int
|
||||
LOG_PERROR: int
|
||||
LOG_PID: int
|
||||
LOG_SYSLOG: int
|
||||
LOG_USER: int
|
||||
LOG_UUCP: int
|
||||
LOG_WARNING: int
|
||||
|
||||
def LOG_MASK(a: int) -> int: ...
|
||||
def LOG_UPTO(a: int) -> int: ...
|
||||
|
||||
@@ -9,8 +9,8 @@ if sys.version_info >= (3, 6):
|
||||
else:
|
||||
_Path = Union[str, bytes]
|
||||
|
||||
verbose = ... # type: int
|
||||
filename_only = ... # type: int
|
||||
verbose: int
|
||||
filename_only: int
|
||||
|
||||
class NannyNag(Exception):
|
||||
def __init__(self, lineno: int, msg: str, line: str) -> None: ...
|
||||
|
||||
+41
-41
@@ -15,27 +15,27 @@ elif sys.version_info >= (3,):
|
||||
else:
|
||||
_Path = Union[str, unicode]
|
||||
|
||||
ENCODING = ... # type: str
|
||||
ENCODING: str
|
||||
|
||||
USTAR_FORMAT = ... # type: int
|
||||
GNU_FORMAT = ... # type: int
|
||||
PAX_FORMAT = ... # type: int
|
||||
DEFAULT_FORMAT = ... # type: int
|
||||
USTAR_FORMAT: int
|
||||
GNU_FORMAT: int
|
||||
PAX_FORMAT: int
|
||||
DEFAULT_FORMAT: int
|
||||
|
||||
REGTYPE = ... # type: bytes
|
||||
AREGTYPE = ... # type: bytes
|
||||
LNKTYPE = ... # type: bytes
|
||||
SYMTYPE = ... # type: bytes
|
||||
DIRTYPE = ... # type: bytes
|
||||
FIFOTYPE = ... # type: bytes
|
||||
CONTTYPE = ... # type: bytes
|
||||
CHRTYPE = ... # type: bytes
|
||||
BLKTYPE = ... # type: bytes
|
||||
GNUTYPE_SPARSE = ... # type: bytes
|
||||
REGTYPE: bytes
|
||||
AREGTYPE: bytes
|
||||
LNKTYPE: bytes
|
||||
SYMTYPE: bytes
|
||||
DIRTYPE: bytes
|
||||
FIFOTYPE: bytes
|
||||
CONTTYPE: bytes
|
||||
CHRTYPE: bytes
|
||||
BLKTYPE: bytes
|
||||
GNUTYPE_SPARSE: bytes
|
||||
|
||||
if sys.version_info < (3,):
|
||||
TAR_PLAIN = ... # type: int
|
||||
TAR_GZIPPED = ... # type: int
|
||||
TAR_PLAIN: int
|
||||
TAR_GZIPPED: int
|
||||
|
||||
def open(name: Optional[_Path] = ..., mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ..., bufsize: int = ...,
|
||||
@@ -49,20 +49,20 @@ def open(name: Optional[_Path] = ..., mode: str = ...,
|
||||
compresslevel: Optional[int] = ...) -> TarFile: ...
|
||||
|
||||
class TarFile(Iterable[TarInfo]):
|
||||
name = ... # type: Optional[_Path]
|
||||
mode = ... # type: str
|
||||
fileobj = ... # type: Optional[IO[bytes]]
|
||||
format = ... # type: Optional[int]
|
||||
tarinfo = ... # type: Optional[TarInfo]
|
||||
dereference = ... # type: Optional[bool]
|
||||
ignore_zeros = ... # type: Optional[bool]
|
||||
encoding = ... # type: Optional[str]
|
||||
errors = ... # type: str
|
||||
pax_headers = ... # type: Optional[Mapping[str, str]]
|
||||
debug = ... # type: Optional[int]
|
||||
errorlevel = ... # type: Optional[int]
|
||||
name: Optional[_Path]
|
||||
mode: str
|
||||
fileobj: Optional[IO[bytes]]
|
||||
format: Optional[int]
|
||||
tarinfo: Optional[TarInfo]
|
||||
dereference: Optional[bool]
|
||||
ignore_zeros: Optional[bool]
|
||||
encoding: Optional[str]
|
||||
errors: str
|
||||
pax_headers: Optional[Mapping[str, str]]
|
||||
debug: Optional[int]
|
||||
errorlevel: Optional[int]
|
||||
if sys.version_info < (3,):
|
||||
posix = ... # type: bool
|
||||
posix: bool
|
||||
def __init__(self, name: Optional[_Path] = ..., mode: str = ...,
|
||||
fileobj: Optional[IO[bytes]] = ...,
|
||||
format: Optional[int] = ..., tarinfo: Optional[TarInfo] = ...,
|
||||
@@ -156,17 +156,17 @@ class ExtractError(TarError): ...
|
||||
class HeaderError(TarError): ...
|
||||
|
||||
class TarInfo:
|
||||
name = ... # type: str
|
||||
size = ... # type: int
|
||||
mtime = ... # type: int
|
||||
mode = ... # type: int
|
||||
type = ... # type: bytes
|
||||
linkname = ... # type: str
|
||||
uid = ... # type: int
|
||||
gid = ... # type: int
|
||||
uname = ... # type: str
|
||||
gname = ... # type: str
|
||||
pax_headers = ... # type: Mapping[str, str]
|
||||
name: str
|
||||
size: int
|
||||
mtime: int
|
||||
mode: int
|
||||
type: bytes
|
||||
linkname: str
|
||||
uid: int
|
||||
gid: int
|
||||
uname: str
|
||||
gname: str
|
||||
pax_headers: Mapping[str, str]
|
||||
def __init__(self, name: str = ...) -> None: ...
|
||||
if sys.version_info >= (3,):
|
||||
@classmethod
|
||||
|
||||
+74
-74
@@ -4,84 +4,84 @@ import socket
|
||||
import sys
|
||||
from typing import Any, Callable, Match, Optional, Pattern, Sequence, Tuple, Union
|
||||
|
||||
DEBUGLEVEL = ... # type: int
|
||||
TELNET_PORT = ... # type: int
|
||||
DEBUGLEVEL: int
|
||||
TELNET_PORT: int
|
||||
|
||||
IAC = ... # type: bytes
|
||||
DONT = ... # type: bytes
|
||||
DO = ... # type: bytes
|
||||
WONT = ... # type: bytes
|
||||
WILL = ... # type: bytes
|
||||
theNULL = ... # type: bytes
|
||||
IAC: bytes
|
||||
DONT: bytes
|
||||
DO: bytes
|
||||
WONT: bytes
|
||||
WILL: bytes
|
||||
theNULL: bytes
|
||||
|
||||
SE = ... # type: bytes
|
||||
NOP = ... # type: bytes
|
||||
DM = ... # type: bytes
|
||||
BRK = ... # type: bytes
|
||||
IP = ... # type: bytes
|
||||
AO = ... # type: bytes
|
||||
AYT = ... # type: bytes
|
||||
EC = ... # type: bytes
|
||||
EL = ... # type: bytes
|
||||
GA = ... # type: bytes
|
||||
SB = ... # type: bytes
|
||||
SE: bytes
|
||||
NOP: bytes
|
||||
DM: bytes
|
||||
BRK: bytes
|
||||
IP: bytes
|
||||
AO: bytes
|
||||
AYT: bytes
|
||||
EC: bytes
|
||||
EL: bytes
|
||||
GA: bytes
|
||||
SB: bytes
|
||||
|
||||
BINARY = ... # type: bytes
|
||||
ECHO = ... # type: bytes
|
||||
RCP = ... # type: bytes
|
||||
SGA = ... # type: bytes
|
||||
NAMS = ... # type: bytes
|
||||
STATUS = ... # type: bytes
|
||||
TM = ... # type: bytes
|
||||
RCTE = ... # type: bytes
|
||||
NAOL = ... # type: bytes
|
||||
NAOP = ... # type: bytes
|
||||
NAOCRD = ... # type: bytes
|
||||
NAOHTS = ... # type: bytes
|
||||
NAOHTD = ... # type: bytes
|
||||
NAOFFD = ... # type: bytes
|
||||
NAOVTS = ... # type: bytes
|
||||
NAOVTD = ... # type: bytes
|
||||
NAOLFD = ... # type: bytes
|
||||
XASCII = ... # type: bytes
|
||||
LOGOUT = ... # type: bytes
|
||||
BM = ... # type: bytes
|
||||
DET = ... # type: bytes
|
||||
SUPDUP = ... # type: bytes
|
||||
SUPDUPOUTPUT = ... # type: bytes
|
||||
SNDLOC = ... # type: bytes
|
||||
TTYPE = ... # type: bytes
|
||||
EOR = ... # type: bytes
|
||||
TUID = ... # type: bytes
|
||||
OUTMRK = ... # type: bytes
|
||||
TTYLOC = ... # type: bytes
|
||||
VT3270REGIME = ... # type: bytes
|
||||
X3PAD = ... # type: bytes
|
||||
NAWS = ... # type: bytes
|
||||
TSPEED = ... # type: bytes
|
||||
LFLOW = ... # type: bytes
|
||||
LINEMODE = ... # type: bytes
|
||||
XDISPLOC = ... # type: bytes
|
||||
OLD_ENVIRON = ... # type: bytes
|
||||
AUTHENTICATION = ... # type: bytes
|
||||
ENCRYPT = ... # type: bytes
|
||||
NEW_ENVIRON = ... # type: bytes
|
||||
BINARY: bytes
|
||||
ECHO: bytes
|
||||
RCP: bytes
|
||||
SGA: bytes
|
||||
NAMS: bytes
|
||||
STATUS: bytes
|
||||
TM: bytes
|
||||
RCTE: bytes
|
||||
NAOL: bytes
|
||||
NAOP: bytes
|
||||
NAOCRD: bytes
|
||||
NAOHTS: bytes
|
||||
NAOHTD: bytes
|
||||
NAOFFD: bytes
|
||||
NAOVTS: bytes
|
||||
NAOVTD: bytes
|
||||
NAOLFD: bytes
|
||||
XASCII: bytes
|
||||
LOGOUT: bytes
|
||||
BM: bytes
|
||||
DET: bytes
|
||||
SUPDUP: bytes
|
||||
SUPDUPOUTPUT: bytes
|
||||
SNDLOC: bytes
|
||||
TTYPE: bytes
|
||||
EOR: bytes
|
||||
TUID: bytes
|
||||
OUTMRK: bytes
|
||||
TTYLOC: bytes
|
||||
VT3270REGIME: bytes
|
||||
X3PAD: bytes
|
||||
NAWS: bytes
|
||||
TSPEED: bytes
|
||||
LFLOW: bytes
|
||||
LINEMODE: bytes
|
||||
XDISPLOC: bytes
|
||||
OLD_ENVIRON: bytes
|
||||
AUTHENTICATION: bytes
|
||||
ENCRYPT: bytes
|
||||
NEW_ENVIRON: bytes
|
||||
|
||||
TN3270E = ... # type: bytes
|
||||
XAUTH = ... # type: bytes
|
||||
CHARSET = ... # type: bytes
|
||||
RSP = ... # type: bytes
|
||||
COM_PORT_OPTION = ... # type: bytes
|
||||
SUPPRESS_LOCAL_ECHO = ... # type: bytes
|
||||
TLS = ... # type: bytes
|
||||
KERMIT = ... # type: bytes
|
||||
SEND_URL = ... # type: bytes
|
||||
FORWARD_X = ... # type: bytes
|
||||
PRAGMA_LOGON = ... # type: bytes
|
||||
SSPI_LOGON = ... # type: bytes
|
||||
PRAGMA_HEARTBEAT = ... # type: bytes
|
||||
EXOPL = ... # type: bytes
|
||||
NOOPT = ... # type: bytes
|
||||
TN3270E: bytes
|
||||
XAUTH: bytes
|
||||
CHARSET: bytes
|
||||
RSP: bytes
|
||||
COM_PORT_OPTION: bytes
|
||||
SUPPRESS_LOCAL_ECHO: bytes
|
||||
TLS: bytes
|
||||
KERMIT: bytes
|
||||
SEND_URL: bytes
|
||||
FORWARD_X: bytes
|
||||
PRAGMA_LOGON: bytes
|
||||
SSPI_LOGON: bytes
|
||||
PRAGMA_HEARTBEAT: bytes
|
||||
EXOPL: bytes
|
||||
NOOPT: bytes
|
||||
|
||||
class Telnet:
|
||||
def __init__(self, host: Optional[str] = ..., port: int = ...,
|
||||
|
||||
+231
-231
@@ -6,237 +6,237 @@ _FD = Union[int, IO[str]]
|
||||
_Attr = List[Union[int, List[bytes]]]
|
||||
|
||||
# TODO constants not really documented
|
||||
B0 = ... # type: int
|
||||
B1000000 = ... # type: int
|
||||
B110 = ... # type: int
|
||||
B115200 = ... # type: int
|
||||
B1152000 = ... # type: int
|
||||
B1200 = ... # type: int
|
||||
B134 = ... # type: int
|
||||
B150 = ... # type: int
|
||||
B1500000 = ... # type: int
|
||||
B1800 = ... # type: int
|
||||
B19200 = ... # type: int
|
||||
B200 = ... # type: int
|
||||
B2000000 = ... # type: int
|
||||
B230400 = ... # type: int
|
||||
B2400 = ... # type: int
|
||||
B2500000 = ... # type: int
|
||||
B300 = ... # type: int
|
||||
B3000000 = ... # type: int
|
||||
B3500000 = ... # type: int
|
||||
B38400 = ... # type: int
|
||||
B4000000 = ... # type: int
|
||||
B460800 = ... # type: int
|
||||
B4800 = ... # type: int
|
||||
B50 = ... # type: int
|
||||
B500000 = ... # type: int
|
||||
B57600 = ... # type: int
|
||||
B576000 = ... # type: int
|
||||
B600 = ... # type: int
|
||||
B75 = ... # type: int
|
||||
B921600 = ... # type: int
|
||||
B9600 = ... # type: int
|
||||
BRKINT = ... # type: int
|
||||
BS0 = ... # type: int
|
||||
BS1 = ... # type: int
|
||||
BSDLY = ... # type: int
|
||||
CBAUD = ... # type: int
|
||||
CBAUDEX = ... # type: int
|
||||
CDSUSP = ... # type: int
|
||||
CEOF = ... # type: int
|
||||
CEOL = ... # type: int
|
||||
CEOT = ... # type: int
|
||||
CERASE = ... # type: int
|
||||
CFLUSH = ... # type: int
|
||||
CIBAUD = ... # type: int
|
||||
CINTR = ... # type: int
|
||||
CKILL = ... # type: int
|
||||
CLNEXT = ... # type: int
|
||||
CLOCAL = ... # type: int
|
||||
CQUIT = ... # type: int
|
||||
CR0 = ... # type: int
|
||||
CR1 = ... # type: int
|
||||
CR2 = ... # type: int
|
||||
CR3 = ... # type: int
|
||||
CRDLY = ... # type: int
|
||||
CREAD = ... # type: int
|
||||
CRPRNT = ... # type: int
|
||||
CRTSCTS = ... # type: int
|
||||
CS5 = ... # type: int
|
||||
CS6 = ... # type: int
|
||||
CS7 = ... # type: int
|
||||
CS8 = ... # type: int
|
||||
CSIZE = ... # type: int
|
||||
CSTART = ... # type: int
|
||||
CSTOP = ... # type: int
|
||||
CSTOPB = ... # type: int
|
||||
CSUSP = ... # type: int
|
||||
CWERASE = ... # type: int
|
||||
ECHO = ... # type: int
|
||||
ECHOCTL = ... # type: int
|
||||
ECHOE = ... # type: int
|
||||
ECHOK = ... # type: int
|
||||
ECHOKE = ... # type: int
|
||||
ECHONL = ... # type: int
|
||||
ECHOPRT = ... # type: int
|
||||
EXTA = ... # type: int
|
||||
EXTB = ... # type: int
|
||||
FF0 = ... # type: int
|
||||
FF1 = ... # type: int
|
||||
FFDLY = ... # type: int
|
||||
FIOASYNC = ... # type: int
|
||||
FIOCLEX = ... # type: int
|
||||
FIONBIO = ... # type: int
|
||||
FIONCLEX = ... # type: int
|
||||
FIONREAD = ... # type: int
|
||||
FLUSHO = ... # type: int
|
||||
HUPCL = ... # type: int
|
||||
ICANON = ... # type: int
|
||||
ICRNL = ... # type: int
|
||||
IEXTEN = ... # type: int
|
||||
IGNBRK = ... # type: int
|
||||
IGNCR = ... # type: int
|
||||
IGNPAR = ... # type: int
|
||||
IMAXBEL = ... # type: int
|
||||
INLCR = ... # type: int
|
||||
INPCK = ... # type: int
|
||||
IOCSIZE_MASK = ... # type: int
|
||||
IOCSIZE_SHIFT = ... # type: int
|
||||
ISIG = ... # type: int
|
||||
ISTRIP = ... # type: int
|
||||
IUCLC = ... # type: int
|
||||
IXANY = ... # type: int
|
||||
IXOFF = ... # type: int
|
||||
IXON = ... # type: int
|
||||
NCC = ... # type: int
|
||||
NCCS = ... # type: int
|
||||
NL0 = ... # type: int
|
||||
NL1 = ... # type: int
|
||||
NLDLY = ... # type: int
|
||||
NOFLSH = ... # type: int
|
||||
N_MOUSE = ... # type: int
|
||||
N_PPP = ... # type: int
|
||||
N_SLIP = ... # type: int
|
||||
N_STRIP = ... # type: int
|
||||
N_TTY = ... # type: int
|
||||
OCRNL = ... # type: int
|
||||
OFDEL = ... # type: int
|
||||
OFILL = ... # type: int
|
||||
OLCUC = ... # type: int
|
||||
ONLCR = ... # type: int
|
||||
ONLRET = ... # type: int
|
||||
ONOCR = ... # type: int
|
||||
OPOST = ... # type: int
|
||||
PARENB = ... # type: int
|
||||
PARMRK = ... # type: int
|
||||
PARODD = ... # type: int
|
||||
PENDIN = ... # type: int
|
||||
TAB0 = ... # type: int
|
||||
TAB1 = ... # type: int
|
||||
TAB2 = ... # type: int
|
||||
TAB3 = ... # type: int
|
||||
TABDLY = ... # type: int
|
||||
TCFLSH = ... # type: int
|
||||
TCGETA = ... # type: int
|
||||
TCGETS = ... # type: int
|
||||
TCIFLUSH = ... # type: int
|
||||
TCIOFF = ... # type: int
|
||||
TCIOFLUSH = ... # type: int
|
||||
TCION = ... # type: int
|
||||
TCOFLUSH = ... # type: int
|
||||
TCOOFF = ... # type: int
|
||||
TCOON = ... # type: int
|
||||
TCSADRAIN = ... # type: int
|
||||
TCSAFLUSH = ... # type: int
|
||||
TCSANOW = ... # type: int
|
||||
TCSBRK = ... # type: int
|
||||
TCSBRKP = ... # type: int
|
||||
TCSETA = ... # type: int
|
||||
TCSETAF = ... # type: int
|
||||
TCSETAW = ... # type: int
|
||||
TCSETS = ... # type: int
|
||||
TCSETSF = ... # type: int
|
||||
TCSETSW = ... # type: int
|
||||
TCXONC = ... # type: int
|
||||
TIOCCONS = ... # type: int
|
||||
TIOCEXCL = ... # type: int
|
||||
TIOCGETD = ... # type: int
|
||||
TIOCGICOUNT = ... # type: int
|
||||
TIOCGLCKTRMIOS = ... # type: int
|
||||
TIOCGPGRP = ... # type: int
|
||||
TIOCGSERIAL = ... # type: int
|
||||
TIOCGSOFTCAR = ... # type: int
|
||||
TIOCGWINSZ = ... # type: int
|
||||
TIOCINQ = ... # type: int
|
||||
TIOCLINUX = ... # type: int
|
||||
TIOCMBIC = ... # type: int
|
||||
TIOCMBIS = ... # type: int
|
||||
TIOCMGET = ... # type: int
|
||||
TIOCMIWAIT = ... # type: int
|
||||
TIOCMSET = ... # type: int
|
||||
TIOCM_CAR = ... # type: int
|
||||
TIOCM_CD = ... # type: int
|
||||
TIOCM_CTS = ... # type: int
|
||||
TIOCM_DSR = ... # type: int
|
||||
TIOCM_DTR = ... # type: int
|
||||
TIOCM_LE = ... # type: int
|
||||
TIOCM_RI = ... # type: int
|
||||
TIOCM_RNG = ... # type: int
|
||||
TIOCM_RTS = ... # type: int
|
||||
TIOCM_SR = ... # type: int
|
||||
TIOCM_ST = ... # type: int
|
||||
TIOCNOTTY = ... # type: int
|
||||
TIOCNXCL = ... # type: int
|
||||
TIOCOUTQ = ... # type: int
|
||||
TIOCPKT = ... # type: int
|
||||
TIOCPKT_DATA = ... # type: int
|
||||
TIOCPKT_DOSTOP = ... # type: int
|
||||
TIOCPKT_FLUSHREAD = ... # type: int
|
||||
TIOCPKT_FLUSHWRITE = ... # type: int
|
||||
TIOCPKT_NOSTOP = ... # type: int
|
||||
TIOCPKT_START = ... # type: int
|
||||
TIOCPKT_STOP = ... # type: int
|
||||
TIOCSCTTY = ... # type: int
|
||||
TIOCSERCONFIG = ... # type: int
|
||||
TIOCSERGETLSR = ... # type: int
|
||||
TIOCSERGETMULTI = ... # type: int
|
||||
TIOCSERGSTRUCT = ... # type: int
|
||||
TIOCSERGWILD = ... # type: int
|
||||
TIOCSERSETMULTI = ... # type: int
|
||||
TIOCSERSWILD = ... # type: int
|
||||
TIOCSER_TEMT = ... # type: int
|
||||
TIOCSETD = ... # type: int
|
||||
TIOCSLCKTRMIOS = ... # type: int
|
||||
TIOCSPGRP = ... # type: int
|
||||
TIOCSSERIAL = ... # type: int
|
||||
TIOCSSOFTCAR = ... # type: int
|
||||
TIOCSTI = ... # type: int
|
||||
TIOCSWINSZ = ... # type: int
|
||||
TOSTOP = ... # type: int
|
||||
VDISCARD = ... # type: int
|
||||
VEOF = ... # type: int
|
||||
VEOL = ... # type: int
|
||||
VEOL2 = ... # type: int
|
||||
VERASE = ... # type: int
|
||||
VINTR = ... # type: int
|
||||
VKILL = ... # type: int
|
||||
VLNEXT = ... # type: int
|
||||
VMIN = ... # type: int
|
||||
VQUIT = ... # type: int
|
||||
VREPRINT = ... # type: int
|
||||
VSTART = ... # type: int
|
||||
VSTOP = ... # type: int
|
||||
VSUSP = ... # type: int
|
||||
VSWTC = ... # type: int
|
||||
VSWTCH = ... # type: int
|
||||
VT0 = ... # type: int
|
||||
VT1 = ... # type: int
|
||||
VTDLY = ... # type: int
|
||||
VTIME = ... # type: int
|
||||
VWERASE = ... # type: int
|
||||
XCASE = ... # type: int
|
||||
XTABS = ... # type: int
|
||||
B0: int
|
||||
B1000000: int
|
||||
B110: int
|
||||
B115200: int
|
||||
B1152000: int
|
||||
B1200: int
|
||||
B134: int
|
||||
B150: int
|
||||
B1500000: int
|
||||
B1800: int
|
||||
B19200: int
|
||||
B200: int
|
||||
B2000000: int
|
||||
B230400: int
|
||||
B2400: int
|
||||
B2500000: int
|
||||
B300: int
|
||||
B3000000: int
|
||||
B3500000: int
|
||||
B38400: int
|
||||
B4000000: int
|
||||
B460800: int
|
||||
B4800: int
|
||||
B50: int
|
||||
B500000: int
|
||||
B57600: int
|
||||
B576000: int
|
||||
B600: int
|
||||
B75: int
|
||||
B921600: int
|
||||
B9600: int
|
||||
BRKINT: int
|
||||
BS0: int
|
||||
BS1: int
|
||||
BSDLY: int
|
||||
CBAUD: int
|
||||
CBAUDEX: int
|
||||
CDSUSP: int
|
||||
CEOF: int
|
||||
CEOL: int
|
||||
CEOT: int
|
||||
CERASE: int
|
||||
CFLUSH: int
|
||||
CIBAUD: int
|
||||
CINTR: int
|
||||
CKILL: int
|
||||
CLNEXT: int
|
||||
CLOCAL: int
|
||||
CQUIT: int
|
||||
CR0: int
|
||||
CR1: int
|
||||
CR2: int
|
||||
CR3: int
|
||||
CRDLY: int
|
||||
CREAD: int
|
||||
CRPRNT: int
|
||||
CRTSCTS: int
|
||||
CS5: int
|
||||
CS6: int
|
||||
CS7: int
|
||||
CS8: int
|
||||
CSIZE: int
|
||||
CSTART: int
|
||||
CSTOP: int
|
||||
CSTOPB: int
|
||||
CSUSP: int
|
||||
CWERASE: int
|
||||
ECHO: int
|
||||
ECHOCTL: int
|
||||
ECHOE: int
|
||||
ECHOK: int
|
||||
ECHOKE: int
|
||||
ECHONL: int
|
||||
ECHOPRT: int
|
||||
EXTA: int
|
||||
EXTB: int
|
||||
FF0: int
|
||||
FF1: int
|
||||
FFDLY: int
|
||||
FIOASYNC: int
|
||||
FIOCLEX: int
|
||||
FIONBIO: int
|
||||
FIONCLEX: int
|
||||
FIONREAD: int
|
||||
FLUSHO: int
|
||||
HUPCL: int
|
||||
ICANON: int
|
||||
ICRNL: int
|
||||
IEXTEN: int
|
||||
IGNBRK: int
|
||||
IGNCR: int
|
||||
IGNPAR: int
|
||||
IMAXBEL: int
|
||||
INLCR: int
|
||||
INPCK: int
|
||||
IOCSIZE_MASK: int
|
||||
IOCSIZE_SHIFT: int
|
||||
ISIG: int
|
||||
ISTRIP: int
|
||||
IUCLC: int
|
||||
IXANY: int
|
||||
IXOFF: int
|
||||
IXON: int
|
||||
NCC: int
|
||||
NCCS: int
|
||||
NL0: int
|
||||
NL1: int
|
||||
NLDLY: int
|
||||
NOFLSH: int
|
||||
N_MOUSE: int
|
||||
N_PPP: int
|
||||
N_SLIP: int
|
||||
N_STRIP: int
|
||||
N_TTY: int
|
||||
OCRNL: int
|
||||
OFDEL: int
|
||||
OFILL: int
|
||||
OLCUC: int
|
||||
ONLCR: int
|
||||
ONLRET: int
|
||||
ONOCR: int
|
||||
OPOST: int
|
||||
PARENB: int
|
||||
PARMRK: int
|
||||
PARODD: int
|
||||
PENDIN: int
|
||||
TAB0: int
|
||||
TAB1: int
|
||||
TAB2: int
|
||||
TAB3: int
|
||||
TABDLY: int
|
||||
TCFLSH: int
|
||||
TCGETA: int
|
||||
TCGETS: int
|
||||
TCIFLUSH: int
|
||||
TCIOFF: int
|
||||
TCIOFLUSH: int
|
||||
TCION: int
|
||||
TCOFLUSH: int
|
||||
TCOOFF: int
|
||||
TCOON: int
|
||||
TCSADRAIN: int
|
||||
TCSAFLUSH: int
|
||||
TCSANOW: int
|
||||
TCSBRK: int
|
||||
TCSBRKP: int
|
||||
TCSETA: int
|
||||
TCSETAF: int
|
||||
TCSETAW: int
|
||||
TCSETS: int
|
||||
TCSETSF: int
|
||||
TCSETSW: int
|
||||
TCXONC: int
|
||||
TIOCCONS: int
|
||||
TIOCEXCL: int
|
||||
TIOCGETD: int
|
||||
TIOCGICOUNT: int
|
||||
TIOCGLCKTRMIOS: int
|
||||
TIOCGPGRP: int
|
||||
TIOCGSERIAL: int
|
||||
TIOCGSOFTCAR: int
|
||||
TIOCGWINSZ: int
|
||||
TIOCINQ: int
|
||||
TIOCLINUX: int
|
||||
TIOCMBIC: int
|
||||
TIOCMBIS: int
|
||||
TIOCMGET: int
|
||||
TIOCMIWAIT: int
|
||||
TIOCMSET: int
|
||||
TIOCM_CAR: int
|
||||
TIOCM_CD: int
|
||||
TIOCM_CTS: int
|
||||
TIOCM_DSR: int
|
||||
TIOCM_DTR: int
|
||||
TIOCM_LE: int
|
||||
TIOCM_RI: int
|
||||
TIOCM_RNG: int
|
||||
TIOCM_RTS: int
|
||||
TIOCM_SR: int
|
||||
TIOCM_ST: int
|
||||
TIOCNOTTY: int
|
||||
TIOCNXCL: int
|
||||
TIOCOUTQ: int
|
||||
TIOCPKT: int
|
||||
TIOCPKT_DATA: int
|
||||
TIOCPKT_DOSTOP: int
|
||||
TIOCPKT_FLUSHREAD: int
|
||||
TIOCPKT_FLUSHWRITE: int
|
||||
TIOCPKT_NOSTOP: int
|
||||
TIOCPKT_START: int
|
||||
TIOCPKT_STOP: int
|
||||
TIOCSCTTY: int
|
||||
TIOCSERCONFIG: int
|
||||
TIOCSERGETLSR: int
|
||||
TIOCSERGETMULTI: int
|
||||
TIOCSERGSTRUCT: int
|
||||
TIOCSERGWILD: int
|
||||
TIOCSERSETMULTI: int
|
||||
TIOCSERSWILD: int
|
||||
TIOCSER_TEMT: int
|
||||
TIOCSETD: int
|
||||
TIOCSLCKTRMIOS: int
|
||||
TIOCSPGRP: int
|
||||
TIOCSSERIAL: int
|
||||
TIOCSSOFTCAR: int
|
||||
TIOCSTI: int
|
||||
TIOCSWINSZ: int
|
||||
TOSTOP: int
|
||||
VDISCARD: int
|
||||
VEOF: int
|
||||
VEOL: int
|
||||
VEOL2: int
|
||||
VERASE: int
|
||||
VINTR: int
|
||||
VKILL: int
|
||||
VLNEXT: int
|
||||
VMIN: int
|
||||
VQUIT: int
|
||||
VREPRINT: int
|
||||
VSTART: int
|
||||
VSTOP: int
|
||||
VSUSP: int
|
||||
VSWTC: int
|
||||
VSWTCH: int
|
||||
VT0: int
|
||||
VT1: int
|
||||
VTDLY: int
|
||||
VTIME: int
|
||||
VWERASE: int
|
||||
XCASE: int
|
||||
XTABS: int
|
||||
|
||||
def tcgetattr(fd: _FD) -> _Attr: ...
|
||||
def tcsetattr(fd: _FD, when: int, attributes: _Attr) -> None: ...
|
||||
|
||||
@@ -34,7 +34,7 @@ def setprofile(func: _PF) -> None: ...
|
||||
def stack_size(size: int = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
TIMEOUT_MAX = ... # type: float
|
||||
TIMEOUT_MAX: float
|
||||
|
||||
class ThreadError(Exception): ...
|
||||
|
||||
@@ -46,9 +46,9 @@ class local(object):
|
||||
|
||||
|
||||
class Thread:
|
||||
name = ... # type: str
|
||||
ident = ... # type: Optional[int]
|
||||
daemon = ... # type: bool
|
||||
name: str
|
||||
ident: Optional[int]
|
||||
daemon: bool
|
||||
if sys.version_info >= (3,):
|
||||
def __init__(self, group: None = ...,
|
||||
target: Optional[Callable[..., Any]] = ...,
|
||||
@@ -175,9 +175,9 @@ class Timer(Thread):
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class Barrier:
|
||||
parties = ... # type: int
|
||||
n_waiting = ... # type: int
|
||||
broken = ... # type: bool
|
||||
parties: int
|
||||
n_waiting: int
|
||||
broken: bool
|
||||
def __init__(self, parties: int, action: Optional[Callable[[], None]] = ...,
|
||||
timeout: Optional[float] = ...) -> None: ...
|
||||
def wait(self, timeout: Optional[float] = ...) -> int: ...
|
||||
|
||||
@@ -7,7 +7,7 @@ _str = Union[str, Text]
|
||||
_Timer = Callable[[], float]
|
||||
_stmt = Union[_str, Callable[[], Any]]
|
||||
|
||||
default_timer = ... # type: _Timer
|
||||
default_timer: _Timer
|
||||
|
||||
class Timer:
|
||||
if sys.version_info >= (3, 5):
|
||||
|
||||
+61
-61
@@ -1,70 +1,70 @@
|
||||
import sys
|
||||
from typing import Dict
|
||||
|
||||
ENDMARKER = ... # type: int
|
||||
NAME = ... # type: int
|
||||
NUMBER = ... # type: int
|
||||
STRING = ... # type: int
|
||||
NEWLINE = ... # type: int
|
||||
INDENT = ... # type: int
|
||||
DEDENT = ... # type: int
|
||||
LPAR = ... # type: int
|
||||
RPAR = ... # type: int
|
||||
LSQB = ... # type: int
|
||||
RSQB = ... # type: int
|
||||
COLON = ... # type: int
|
||||
COMMA = ... # type: int
|
||||
SEMI = ... # type: int
|
||||
PLUS = ... # type: int
|
||||
MINUS = ... # type: int
|
||||
STAR = ... # type: int
|
||||
SLASH = ... # type: int
|
||||
VBAR = ... # type: int
|
||||
AMPER = ... # type: int
|
||||
LESS = ... # type: int
|
||||
GREATER = ... # type: int
|
||||
EQUAL = ... # type: int
|
||||
DOT = ... # type: int
|
||||
PERCENT = ... # type: int
|
||||
ENDMARKER: int
|
||||
NAME: int
|
||||
NUMBER: int
|
||||
STRING: int
|
||||
NEWLINE: int
|
||||
INDENT: int
|
||||
DEDENT: int
|
||||
LPAR: int
|
||||
RPAR: int
|
||||
LSQB: int
|
||||
RSQB: int
|
||||
COLON: int
|
||||
COMMA: int
|
||||
SEMI: int
|
||||
PLUS: int
|
||||
MINUS: int
|
||||
STAR: int
|
||||
SLASH: int
|
||||
VBAR: int
|
||||
AMPER: int
|
||||
LESS: int
|
||||
GREATER: int
|
||||
EQUAL: int
|
||||
DOT: int
|
||||
PERCENT: int
|
||||
if sys.version_info < (3,):
|
||||
BACKQUOTE = ... # type: int
|
||||
LBRACE = ... # type: int
|
||||
RBRACE = ... # type: int
|
||||
EQEQUAL = ... # type: int
|
||||
NOTEQUAL = ... # type: int
|
||||
LESSEQUAL = ... # type: int
|
||||
GREATEREQUAL = ... # type: int
|
||||
TILDE = ... # type: int
|
||||
CIRCUMFLEX = ... # type: int
|
||||
LEFTSHIFT = ... # type: int
|
||||
RIGHTSHIFT = ... # type: int
|
||||
DOUBLESTAR = ... # type: int
|
||||
PLUSEQUAL = ... # type: int
|
||||
MINEQUAL = ... # type: int
|
||||
STAREQUAL = ... # type: int
|
||||
SLASHEQUAL = ... # type: int
|
||||
PERCENTEQUAL = ... # type: int
|
||||
AMPEREQUAL = ... # type: int
|
||||
VBAREQUAL = ... # type: int
|
||||
CIRCUMFLEXEQUAL = ... # type: int
|
||||
LEFTSHIFTEQUAL = ... # type: int
|
||||
RIGHTSHIFTEQUAL = ... # type: int
|
||||
DOUBLESTAREQUAL = ... # type: int
|
||||
DOUBLESLASH = ... # type: int
|
||||
DOUBLESLASHEQUAL = ... # type: int
|
||||
AT = ... # type: int
|
||||
BACKQUOTE: int
|
||||
LBRACE: int
|
||||
RBRACE: int
|
||||
EQEQUAL: int
|
||||
NOTEQUAL: int
|
||||
LESSEQUAL: int
|
||||
GREATEREQUAL: int
|
||||
TILDE: int
|
||||
CIRCUMFLEX: int
|
||||
LEFTSHIFT: int
|
||||
RIGHTSHIFT: int
|
||||
DOUBLESTAR: int
|
||||
PLUSEQUAL: int
|
||||
MINEQUAL: int
|
||||
STAREQUAL: int
|
||||
SLASHEQUAL: int
|
||||
PERCENTEQUAL: int
|
||||
AMPEREQUAL: int
|
||||
VBAREQUAL: int
|
||||
CIRCUMFLEXEQUAL: int
|
||||
LEFTSHIFTEQUAL: int
|
||||
RIGHTSHIFTEQUAL: int
|
||||
DOUBLESTAREQUAL: int
|
||||
DOUBLESLASH: int
|
||||
DOUBLESLASHEQUAL: int
|
||||
AT: int
|
||||
if sys.version_info >= (3,):
|
||||
RARROW = ... # type: int
|
||||
ELLIPSIS = ... # type: int
|
||||
RARROW: int
|
||||
ELLIPSIS: int
|
||||
if sys.version_info >= (3, 5):
|
||||
ATEQUAL = ... # type: int
|
||||
AWAIT = ... # type: int
|
||||
ASYNC = ... # type: int
|
||||
OP = ... # type: int
|
||||
ERRORTOKEN = ... # type: int
|
||||
N_TOKENS = ... # type: int
|
||||
NT_OFFSET = ... # type: int
|
||||
tok_name = ... # type: Dict[int, str]
|
||||
ATEQUAL: int
|
||||
AWAIT: int
|
||||
ASYNC: int
|
||||
OP: int
|
||||
ERRORTOKEN: int
|
||||
N_TOKENS: int
|
||||
NT_OFFSET: int
|
||||
tok_name: Dict[int, str]
|
||||
|
||||
def ISTERMINAL(x: int) -> bool: ...
|
||||
def ISNONTERMINAL(x: int) -> bool: ...
|
||||
|
||||
@@ -74,14 +74,14 @@ if sys.version_info >= (3, 5):
|
||||
class TracebackException:
|
||||
__cause__ = ... # type:TracebackException
|
||||
__context__ = ... # type:TracebackException
|
||||
__suppress_context__ = ... # type: bool
|
||||
stack = ... # type: StackSummary
|
||||
exc_type = ... # type: Type[BaseException]
|
||||
filename = ... # type: str
|
||||
lineno = ... # type: int
|
||||
text = ... # type: str
|
||||
offset = ... # type: int
|
||||
msg = ... # type: str
|
||||
__suppress_context__: bool
|
||||
stack: StackSummary
|
||||
exc_type: Type[BaseException]
|
||||
filename: str
|
||||
lineno: int
|
||||
text: str
|
||||
offset: int
|
||||
msg: str
|
||||
def __init__(self, exc_type: Type[BaseException],
|
||||
exc_value: BaseException, exc_traceback: TracebackType,
|
||||
*, limit: Optional[int] = ..., lookup_lines: bool = ...,
|
||||
|
||||
@@ -5,13 +5,13 @@ from typing import IO, Union
|
||||
_FD = Union[int, IO[str]]
|
||||
|
||||
# XXX: Undocumented integer constants
|
||||
IFLAG = ... # type: int
|
||||
OFLAG = ... # type: int
|
||||
CFLAG = ... # type: int
|
||||
LFLAG = ... # type: int
|
||||
ISPEED = ... # type: int
|
||||
OSPEED = ... # type: int
|
||||
CC = ... # type: int
|
||||
IFLAG: int
|
||||
OFLAG: int
|
||||
CFLAG: int
|
||||
LFLAG: int
|
||||
ISPEED: int
|
||||
OSPEED: int
|
||||
CC: int
|
||||
|
||||
def setraw(fd: _FD, when: int = ...) -> None: ...
|
||||
def setcbreak(fd: _FD, when: int = ...) -> None: ...
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# Stubs for unicodedata (Python 2.7 and 3.4)
|
||||
from typing import Any, Text, TypeVar, Union
|
||||
|
||||
ucd_3_2_0 = ... # type: UCD
|
||||
ucnhash_CAPI = ... # type: Any
|
||||
unidata_version = ... # type: str
|
||||
ucd_3_2_0: UCD
|
||||
ucnhash_CAPI: Any
|
||||
unidata_version: str
|
||||
|
||||
_default = TypeVar('_default')
|
||||
|
||||
@@ -23,7 +23,7 @@ def numeric(__chr: Text, __default: _default = ...) -> Union[float, _default]: .
|
||||
class UCD(object):
|
||||
# The methods below are constructed from the same array in C
|
||||
# (unicodedata_functions) and hence identical to the methods above.
|
||||
unidata_version = ... # type: str
|
||||
unidata_version: str
|
||||
def bidirectional(self, __chr: Text) -> str: ...
|
||||
def category(self, __chr: Text) -> str: ...
|
||||
def combining(self, __chr: Text) -> int: ...
|
||||
|
||||
@@ -80,11 +80,11 @@ def uuid3(namespace: UUID, name: str) -> UUID: ...
|
||||
def uuid4() -> UUID: ...
|
||||
def uuid5(namespace: UUID, name: str) -> UUID: ...
|
||||
|
||||
NAMESPACE_DNS = ... # type: UUID
|
||||
NAMESPACE_URL = ... # type: UUID
|
||||
NAMESPACE_OID = ... # type: UUID
|
||||
NAMESPACE_X500 = ... # type: UUID
|
||||
RESERVED_NCS = ... # type: str
|
||||
RFC_4122 = ... # type: str
|
||||
RESERVED_MICROSOFT = ... # type: str
|
||||
RESERVED_FUTURE = ... # type: str
|
||||
NAMESPACE_DNS: UUID
|
||||
NAMESPACE_URL: UUID
|
||||
NAMESPACE_OID: UUID
|
||||
NAMESPACE_X500: UUID
|
||||
RESERVED_NCS: str
|
||||
RFC_4122: str
|
||||
RESERVED_MICROSOFT: str
|
||||
RESERVED_FUTURE: str
|
||||
|
||||
@@ -9,7 +9,7 @@ _File = Union[Text, BinaryIO]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
WAVE_FORMAT_PCM = ... # type: int
|
||||
WAVE_FORMAT_PCM: int
|
||||
|
||||
if sys.version_info < (3, 0):
|
||||
_wave_params = Tuple[int, int, int, int, str, str]
|
||||
|
||||
+42
-42
@@ -13,18 +13,18 @@ def open_new(url: Text) -> bool: ...
|
||||
def open_new_tab(url: Text) -> bool: ...
|
||||
|
||||
class BaseBrowser:
|
||||
args = ... # type: List[str]
|
||||
name = ... # type: str
|
||||
basename = ... # type: str
|
||||
args: List[str]
|
||||
name: str
|
||||
basename: str
|
||||
def __init__(self, name: Text = ...) -> None: ...
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
def open_new(self, url: Text) -> bool: ...
|
||||
def open_new_tab(self, url: Text) -> bool: ...
|
||||
|
||||
class GenericBrowser(BaseBrowser):
|
||||
args = ... # type: List[str]
|
||||
name = ... # type: str
|
||||
basename = ... # type: str
|
||||
args: List[str]
|
||||
name: str
|
||||
basename: str
|
||||
def __init__(self, name: Union[Text, Sequence[Text]]) -> None: ...
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
@@ -32,53 +32,53 @@ class BackgroundBrowser(GenericBrowser):
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
class UnixBrowser(BaseBrowser):
|
||||
raise_opts = ... # type: List[str]
|
||||
background = ... # type: bool
|
||||
redirect_stdout = ... # type: bool
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
raise_opts: List[str]
|
||||
background: bool
|
||||
redirect_stdout: bool
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
remote_action_newtab: str
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
class Mozilla(UnixBrowser):
|
||||
raise_opts = ... # type: List[str]
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
raise_opts: List[str]
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
remote_action_newtab: str
|
||||
background: bool
|
||||
|
||||
class Galeon(UnixBrowser):
|
||||
raise_opts = ... # type: List[str]
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
background = ... # type: bool
|
||||
raise_opts: List[str]
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
background: bool
|
||||
|
||||
if sys.version_info[:2] == (2, 7) or sys.version_info >= (3, 3):
|
||||
class Chrome(UnixBrowser):
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
remote_action_newtab: str
|
||||
background: bool
|
||||
|
||||
class Opera(UnixBrowser):
|
||||
raise_opts = ... # type: List[str]
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
raise_opts: List[str]
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
remote_action_newtab: str
|
||||
background: bool
|
||||
|
||||
class Elinks(UnixBrowser):
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
redirect_stdout = ... # type: bool
|
||||
remote_args: List[str]
|
||||
remote_action: str
|
||||
remote_action_newwin: str
|
||||
remote_action_newtab: str
|
||||
background: bool
|
||||
redirect_stdout: bool
|
||||
|
||||
class Konqueror(BaseBrowser):
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
@@ -90,7 +90,7 @@ class WindowsDefault(BaseBrowser):
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
class MacOSX(BaseBrowser):
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, name: Text) -> None: ...
|
||||
def open(self, url: Text, new: int = ..., autoraise: bool = ...) -> bool: ...
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from typing import Callable, List, Sequence, TypeVar
|
||||
_T = TypeVar('_T')
|
||||
|
||||
class Error(Exception):
|
||||
msg = ... # type: str
|
||||
msg: str
|
||||
def __init__(self, msg: str) -> None: ...
|
||||
|
||||
class ConversionError(Error): ...
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
from typing import Union, Optional, Callable
|
||||
from xml.etree.ElementTree import Element
|
||||
|
||||
XINCLUDE = ... # type: str
|
||||
XINCLUDE_INCLUDE = ... # type: str
|
||||
XINCLUDE_FALLBACK = ... # type: str
|
||||
XINCLUDE: str
|
||||
XINCLUDE_INCLUDE: str
|
||||
XINCLUDE_FALLBACK: str
|
||||
|
||||
class FatalIncludeError(SyntaxError): ...
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
from typing import Pattern, Dict, Generator, Tuple, List, Union, TypeVar, Callable, Optional
|
||||
from xml.etree.ElementTree import Element
|
||||
|
||||
xpath_tokenizer_re = ... # type: Pattern
|
||||
xpath_tokenizer_re: Pattern
|
||||
|
||||
_token = Tuple[str, str]
|
||||
_next = Callable[[], _token]
|
||||
@@ -18,11 +18,11 @@ def prepare_descendant(next: _next, token: _token) -> _callback: ...
|
||||
def prepare_parent(next: _next, token: _token) -> _callback: ...
|
||||
def prepare_predicate(next: _next, token: _token) -> _callback: ...
|
||||
|
||||
ops = ... # type: Dict[str, Callable[[_next, _token], _callback]]
|
||||
ops: Dict[str, Callable[[_next, _token], _callback]]
|
||||
|
||||
class _SelectorContext:
|
||||
parent_map = ... # type: Dict[Element, Element]
|
||||
root = ... # type: Element
|
||||
parent_map: Dict[Element, Element]
|
||||
root: Element
|
||||
def __init__(self, root: Element) -> None: ...
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
@@ -4,7 +4,7 @@ from typing import Any, Callable, Dict, Generator, IO, ItemsView, Iterable, Iter
|
||||
import io
|
||||
import sys
|
||||
|
||||
VERSION = ... # type: str
|
||||
VERSION: str
|
||||
|
||||
class ParseError(SyntaxError): ...
|
||||
|
||||
@@ -42,10 +42,10 @@ else:
|
||||
_tostring_result_type = bytes
|
||||
|
||||
class Element(MutableSequence[Element]):
|
||||
tag = ... # type: _str_result_type
|
||||
attrib = ... # type: Dict[_str_result_type, _str_result_type]
|
||||
text = ... # type: Optional[_str_result_type]
|
||||
tail = ... # type: Optional[_str_result_type]
|
||||
tag: _str_result_type
|
||||
attrib: Dict[_str_result_type, _str_result_type]
|
||||
text: Optional[_str_result_type]
|
||||
tail: Optional[_str_result_type]
|
||||
def __init__(self, tag: Union[_str_argument_type, Callable[..., Element]], attrib: Dict[_str_argument_type, _str_argument_type] = ..., **extra: _str_argument_type) -> None: ...
|
||||
def append(self, subelement: Element) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
@@ -86,10 +86,10 @@ def SubElement(parent: Element, tag: _str_argument_type, attrib: Dict[_str_argum
|
||||
def Comment(text: Optional[_str_argument_type] = ...) -> Element: ...
|
||||
def ProcessingInstruction(target: _str_argument_type, text: Optional[_str_argument_type] = ...) -> Element: ...
|
||||
|
||||
PI = ... # type: Callable[..., Element]
|
||||
PI: Callable[..., Element]
|
||||
|
||||
class QName:
|
||||
text = ... # type: str
|
||||
text: str
|
||||
def __init__(self, text_or_uri: _str_argument_type, tag: Optional[_str_argument_type] = ...) -> None: ...
|
||||
|
||||
|
||||
@@ -156,11 +156,11 @@ class TreeBuilder:
|
||||
def end(self, tag: _parser_input_type) -> Element: ...
|
||||
|
||||
class XMLParser:
|
||||
parser = ... # type: Any
|
||||
target = ... # type: TreeBuilder
|
||||
parser: Any
|
||||
target: TreeBuilder
|
||||
# TODO-what is entity used for???
|
||||
entity = ... # type: Any
|
||||
version = ... # type: str
|
||||
entity: Any
|
||||
version: str
|
||||
def __init__(self, html: int = ..., target: Optional[TreeBuilder] = ..., encoding: Optional[str] = ...) -> None: ...
|
||||
def doctype(self, name: str, pubid: str, system: str) -> None: ...
|
||||
def close(self) -> Element: ...
|
||||
|
||||
@@ -21,7 +21,7 @@ class SAXNotRecognizedException(SAXException): ...
|
||||
class SAXNotSupportedException(SAXException): ...
|
||||
class SAXReaderNotAvailable(SAXNotSupportedException): ...
|
||||
|
||||
default_parser_list = ... # type: List[str]
|
||||
default_parser_list: List[str]
|
||||
|
||||
def make_parser(parser_list: List[str] = ...) -> xml.sax.xmlreader.XMLReader: ...
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
version = ... # type: Any
|
||||
version: Any
|
||||
|
||||
class ErrorHandler:
|
||||
def error(self, exception): ...
|
||||
@@ -30,17 +30,17 @@ class DTDHandler:
|
||||
class EntityResolver:
|
||||
def resolveEntity(self, publicId, systemId): ...
|
||||
|
||||
feature_namespaces = ... # type: Any
|
||||
feature_namespace_prefixes = ... # type: Any
|
||||
feature_string_interning = ... # type: Any
|
||||
feature_validation = ... # type: Any
|
||||
feature_external_ges = ... # type: Any
|
||||
feature_external_pes = ... # type: Any
|
||||
all_features = ... # type: Any
|
||||
property_lexical_handler = ... # type: Any
|
||||
property_declaration_handler = ... # type: Any
|
||||
property_dom_node = ... # type: Any
|
||||
property_xml_string = ... # type: Any
|
||||
property_encoding = ... # type: Any
|
||||
property_interning_dict = ... # type: Any
|
||||
all_properties = ... # type: Any
|
||||
feature_namespaces: Any
|
||||
feature_namespace_prefixes: Any
|
||||
feature_string_interning: Any
|
||||
feature_validation: Any
|
||||
feature_external_ges: Any
|
||||
feature_external_pes: Any
|
||||
all_features: Any
|
||||
property_lexical_handler: Any
|
||||
property_declaration_handler: Any
|
||||
property_dom_node: Any
|
||||
property_xml_string: Any
|
||||
property_encoding: Any
|
||||
property_interning_dict: Any
|
||||
all_properties: Any
|
||||
|
||||
+26
-26
@@ -24,11 +24,11 @@ error = BadZipfile
|
||||
class LargeZipFile(Exception): ...
|
||||
|
||||
class ZipFile:
|
||||
debug = ... # type: int
|
||||
comment = ... # type: bytes
|
||||
filelist = ... # type: List[ZipInfo]
|
||||
fp = ... # type: IO[bytes]
|
||||
NameToInfo = ... # type: Dict[Text, ZipInfo]
|
||||
debug: int
|
||||
comment: bytes
|
||||
filelist: List[ZipInfo]
|
||||
fp: IO[bytes]
|
||||
NameToInfo: Dict[Text, ZipInfo]
|
||||
def __init__(self, file: Union[_Path, IO[bytes]], mode: Text = ..., compression: int = ...,
|
||||
allowZip64: bool = ...) -> None: ...
|
||||
def __enter__(self) -> ZipFile: ...
|
||||
@@ -72,23 +72,23 @@ class PyZipFile(ZipFile):
|
||||
pathname: Text, basename: Text = ...) -> None: ...
|
||||
|
||||
class ZipInfo:
|
||||
filename = ... # type: Text
|
||||
date_time = ... # type: _DT
|
||||
compress_type = ... # type: int
|
||||
comment = ... # type: bytes
|
||||
extra = ... # type: bytes
|
||||
create_system = ... # type: int
|
||||
create_version = ... # type: int
|
||||
extract_version = ... # type: int
|
||||
reserved = ... # type: int
|
||||
flag_bits = ... # type: int
|
||||
volume = ... # type: int
|
||||
internal_attr = ... # type: int
|
||||
external_attr = ... # type: int
|
||||
header_offset = ... # type: int
|
||||
CRC = ... # type: int
|
||||
compress_size = ... # type: int
|
||||
file_size = ... # type: int
|
||||
filename: Text
|
||||
date_time: _DT
|
||||
compress_type: int
|
||||
comment: bytes
|
||||
extra: bytes
|
||||
create_system: int
|
||||
create_version: int
|
||||
extract_version: int
|
||||
reserved: int
|
||||
flag_bits: int
|
||||
volume: int
|
||||
internal_attr: int
|
||||
external_attr: int
|
||||
header_offset: int
|
||||
CRC: int
|
||||
compress_size: int
|
||||
file_size: int
|
||||
def __init__(self, filename: Optional[Text] = ...,
|
||||
date_time: Optional[_DT] = ...) -> None: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
@@ -98,8 +98,8 @@ class ZipInfo:
|
||||
|
||||
def is_zipfile(filename: Union[_Path, IO[bytes]]) -> bool: ...
|
||||
|
||||
ZIP_STORED = ... # type: int
|
||||
ZIP_DEFLATED = ... # type: int
|
||||
ZIP_STORED: int
|
||||
ZIP_DEFLATED: int
|
||||
if sys.version_info >= (3, 3):
|
||||
ZIP_BZIP2 = ... # type: int
|
||||
ZIP_LZMA = ... # type: int
|
||||
ZIP_BZIP2: int
|
||||
ZIP_LZMA: int
|
||||
|
||||
@@ -6,8 +6,8 @@ from types import CodeType, ModuleType
|
||||
class ZipImportError(ImportError): ...
|
||||
|
||||
class zipimporter(object):
|
||||
archive = ... # type: str
|
||||
prefix = ... # type: str
|
||||
archive: str
|
||||
prefix: str
|
||||
def __init__(self, archivepath: str) -> None: ...
|
||||
def find_module(self, fullname: str, path: str = ...) -> Optional[zipimporter]: ...
|
||||
def get_code(self, fullname: str) -> CodeType: ...
|
||||
|
||||
+19
-19
@@ -1,23 +1,23 @@
|
||||
# Stubs for zlib
|
||||
import sys
|
||||
|
||||
DEFLATED = ... # type: int
|
||||
DEF_MEM_LEVEL = ... # type: int
|
||||
MAX_WBITS = ... # type: int
|
||||
ZLIB_VERSION = ... # type: str
|
||||
Z_BEST_COMPRESSION = ... # type: int
|
||||
Z_BEST_SPEED = ... # type: int
|
||||
Z_DEFAULT_COMPRESSION = ... # type: int
|
||||
Z_DEFAULT_STRATEGY = ... # type: int
|
||||
Z_FILTERED = ... # type: int
|
||||
Z_FINISH = ... # type: int
|
||||
Z_FULL_FLUSH = ... # type: int
|
||||
Z_HUFFMAN_ONLY = ... # type: int
|
||||
Z_NO_FLUSH = ... # type: int
|
||||
Z_SYNC_FLUSH = ... # type: int
|
||||
DEFLATED: int
|
||||
DEF_MEM_LEVEL: int
|
||||
MAX_WBITS: int
|
||||
ZLIB_VERSION: str
|
||||
Z_BEST_COMPRESSION: int
|
||||
Z_BEST_SPEED: int
|
||||
Z_DEFAULT_COMPRESSION: int
|
||||
Z_DEFAULT_STRATEGY: int
|
||||
Z_FILTERED: int
|
||||
Z_FINISH: int
|
||||
Z_FULL_FLUSH: int
|
||||
Z_HUFFMAN_ONLY: int
|
||||
Z_NO_FLUSH: int
|
||||
Z_SYNC_FLUSH: int
|
||||
if sys.version_info >= (3,):
|
||||
DEF_BUF_SIZE = ... # type: int
|
||||
ZLIB_RUNTIME_VERSION = ... # type: str
|
||||
DEF_BUF_SIZE: int
|
||||
ZLIB_RUNTIME_VERSION: str
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
@@ -29,10 +29,10 @@ class _Compress:
|
||||
|
||||
|
||||
class _Decompress:
|
||||
unused_data = ... # type: bytes
|
||||
unconsumed_tail = ... # type: bytes
|
||||
unused_data: bytes
|
||||
unconsumed_tail: bytes
|
||||
if sys.version_info >= (3,):
|
||||
eof = ... # type: bool
|
||||
eof: bool
|
||||
def decompress(self, data: bytes, max_length: int = ...) -> bytes: ...
|
||||
def flush(self, length: int = ...) -> bytes: ...
|
||||
def copy(self) -> _Decompress: ...
|
||||
|
||||
Reference in New Issue
Block a user