mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-11 20:51:42 +08:00
rework directory hierarchy
This commit is contained in:
18
builtins/2.7/_bisect.pyi
Normal file
18
builtins/2.7/_bisect.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Stub file for the '_bisect' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def bisect(a, x, *args, **kwargs) -> int: ...
|
||||
|
||||
def bisect_left(a, x, *args, **kwargs) -> int: ...
|
||||
|
||||
def bisect_right(a, x, *args, **kwargs) -> int: ...
|
||||
|
||||
def insort(a, x, *args, **kwargs) -> None: ...
|
||||
|
||||
def insort_left(a, x, *args, **kwargs) -> None: ...
|
||||
|
||||
def insort_right(a, x, *args, **kwargs) -> None: ...
|
||||
88
builtins/2.7/_codecs.pyi
Normal file
88
builtins/2.7/_codecs.pyi
Normal file
@@ -0,0 +1,88 @@
|
||||
"""Stub file for the '_codecs' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def ascii_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def ascii_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def charbuffer_encode(*args, **kwargs) -> tuple: ...
|
||||
|
||||
def charmap_build(a: str) -> Any: ...
|
||||
|
||||
def charmap_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def charmap_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def decode(a, *args, **kwargs) -> Any: ...
|
||||
|
||||
def encode(a, *args, **kwargs) -> Any: ...
|
||||
|
||||
def escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def escape_encode(a: str, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def latin_1_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def latin_1_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def lookup(a: str) -> Any: ...
|
||||
|
||||
def lookup_error(a: str) -> Any: ...
|
||||
|
||||
def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def readbuffer_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def register(*args, **kwargs) -> None: ...
|
||||
|
||||
def register_error(a: str, b) -> None: ...
|
||||
|
||||
def unicode_escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_escape_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_internal_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_internal_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_be_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_be_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_ex_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_le_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_le_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_be_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_be_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_ex_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_le_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_le_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_7_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_7_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_8_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_8_encode(a, *args, **kwargs) -> tuple: ...
|
||||
41
builtins/2.7/_collections.pyi
Normal file
41
builtins/2.7/_collections.pyi
Normal file
@@ -0,0 +1,41 @@
|
||||
"""Stub file for the '_collections' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
class defaultdict(object):
|
||||
def __copy__(self) -> Any: ...
|
||||
def __missing__(self, *args, **kwargs) -> Any:
|
||||
raise KeyError()
|
||||
def __reduce__(self) -> tuple: ...
|
||||
def copy(self) -> Any: ...
|
||||
|
||||
class deque(object):
|
||||
def __copy__(self) -> Any: ...
|
||||
def __reduce__(self) -> tuple: ...
|
||||
def __reversed__(self) -> Any: ...
|
||||
def __sizeof__(self) -> long: ...
|
||||
def append(self, *args, **kwargs) -> None: ...
|
||||
def appendleft(self, *args, **kwargs) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def count(self, *args, **kwargs) -> int:
|
||||
raise RuntimeError()
|
||||
def extend(self, *args, **kwargs) -> None: ...
|
||||
def extendleft(self, *args, **kwargs) -> None: ...
|
||||
def pop(self) -> Any:
|
||||
raise IndexError()
|
||||
def popleft(self) -> Any:
|
||||
raise IndexError()
|
||||
def remove(self, *args, **kwargs) -> None:
|
||||
raise IndexError()
|
||||
raise ValueError()
|
||||
def reverse(self) -> None: ...
|
||||
def rotate(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class deque_iterator(object):
|
||||
def __length_hint__(self) -> int: ...
|
||||
|
||||
class deque_reverse_iterator(object):
|
||||
def __length_hint__(self) -> int: ...
|
||||
14
builtins/2.7/_functools.pyi
Normal file
14
builtins/2.7/_functools.pyi
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Stub file for the '_functools' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def reduce(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
|
||||
|
||||
class partial(object):
|
||||
def __reduce__(self) -> tuple: ...
|
||||
def __setstate__(self, a, b, c, d) -> None: ...
|
||||
27
builtins/2.7/_heapq.pyi
Normal file
27
builtins/2.7/_heapq.pyi
Normal file
@@ -0,0 +1,27 @@
|
||||
"""Stub file for the '_heapq' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def heapify(*args, **kwargs) -> None:
|
||||
raise TypeError()
|
||||
|
||||
def heappop(*args, **kwargs) -> Any:
|
||||
raise IndexError()
|
||||
raise TypeError()
|
||||
|
||||
def heappush(*args, **kwargs) -> None:
|
||||
raise TypeError()
|
||||
|
||||
def heappushpop(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
|
||||
def heapreplace(*args, **kwargs) -> Any:
|
||||
raise IndexError()
|
||||
raise TypeError()
|
||||
|
||||
def nlargest(a: int, b) -> List[object]: ...
|
||||
|
||||
def nsmallest(a: int, b) -> List[object]: ...
|
||||
12
builtins/2.7/_random.pyi
Normal file
12
builtins/2.7/_random.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
# Stubs for _random
|
||||
|
||||
from typing import Optional, Any
|
||||
|
||||
class Random(object):
|
||||
def __init__(self, seed: x, object = None) -> None: ...
|
||||
def seed(self, x: object = None) -> None: ...
|
||||
def getstate(self) -> tuple: ...
|
||||
def setstate(self, state: tuple) -> None: ...
|
||||
def random(self) -> float: ...
|
||||
def getrandbits(self, k: int) -> int: ...
|
||||
def jumpahead(self, i: int) -> None: ...
|
||||
53
builtins/2.7/_sre.pyi
Normal file
53
builtins/2.7/_sre.pyi
Normal file
@@ -0,0 +1,53 @@
|
||||
"""Stub file for the '_sre' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
CODESIZE = ... # type: int
|
||||
MAGIC = ... # type: int
|
||||
MAXREPEAT = ... # type: long
|
||||
copyright = ... # type: str
|
||||
|
||||
def compile(a, b: int, c, *args, **kwargs) -> SRE_Pattern:
|
||||
raise OverflowError()
|
||||
|
||||
def getcodesize() -> int: ...
|
||||
|
||||
def getlower(a: int, b: int) -> int: ...
|
||||
|
||||
|
||||
class SRE_Match(object):
|
||||
def __copy__(self) -> Any:
|
||||
raise TypeError()
|
||||
def __deepcopy__(self, *args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
def end(self, *args, **kwargs) -> int:
|
||||
raise IndexError()
|
||||
def expand(self, *args, **kwargs) -> Any: ...
|
||||
def group(self, *args, **kwargs) -> tuple: ...
|
||||
def groupdict(self, *args, **kwargs) -> dict: ...
|
||||
def groups(self, *args, **kwargs) -> tuple: ...
|
||||
def span(self, *args, **kwargs) -> tuple:
|
||||
raise IndexError()
|
||||
def start(self, *args, **kwargs) -> int:
|
||||
raise IndexError()
|
||||
|
||||
class SRE_Pattern(object):
|
||||
def __copy__(self) -> Any:
|
||||
raise TypeError()
|
||||
def __deepcopy__(self, *args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
def findall(self, source, *args, **kwargs) -> List[tuple]: ...
|
||||
def finditer(self, *args, **kwargs) -> callable_iterator: ...
|
||||
def match(self, pattern, *args, **kwargs) -> Any: ...
|
||||
def scanner(self, a, *args, **kwargs) -> SRE_Scanner: ...
|
||||
def search(self, pattern, *args, **kwargs) -> Any: ...
|
||||
def split(self, source, *args, **kwargs) -> List[None]: ...
|
||||
def sub(self, repl, string, *args, **kwargs) -> tuple: ...
|
||||
def subn(self, repl, string, *args, **kwargs) -> tuple: ...
|
||||
|
||||
class SRE_Scanner(object):
|
||||
def match(self) -> Any: ...
|
||||
def search(self) -> Any: ...
|
||||
29
builtins/2.7/_struct.pyi
Normal file
29
builtins/2.7/_struct.pyi
Normal file
@@ -0,0 +1,29 @@
|
||||
"""Stub file for the '_struct' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _clearcache() -> None: ...
|
||||
|
||||
def calcsize(*args, **kwargs) -> int: ...
|
||||
|
||||
def pack(*args, **kwargs) -> str:
|
||||
raise TypeError()
|
||||
|
||||
def pack_into(*args, **kwargs) -> None:
|
||||
raise TypeError()
|
||||
|
||||
def unpack(*args, **kwargs) -> tuple: ...
|
||||
|
||||
def unpack_from(*args, **kwargs) -> tuple:
|
||||
raise TypeError()
|
||||
|
||||
|
||||
class Struct(object):
|
||||
def __sizeof__(self) -> long: ...
|
||||
def pack(self, *args, **kwargs) -> str: ...
|
||||
def pack_into(self, *args, **kwargs) -> None: ...
|
||||
def unpack(self, a) -> tuple: ...
|
||||
def unpack_from(self, *args, **kwargs) -> tuple: ...
|
||||
56
builtins/2.7/array.pyi
Normal file
56
builtins/2.7/array.pyi
Normal file
@@ -0,0 +1,56 @@
|
||||
"""Stub file for the 'array' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
class array(object):
|
||||
def __copy__(self) -> Any: ...
|
||||
def __deepcopy__(self, *args, **kwargs) -> Any: ...
|
||||
def __reduce__(self) -> tuple:
|
||||
raise AttributeError()
|
||||
def __sizeof__(self) -> long: ...
|
||||
def append(self, *args, **kwargs) -> None: ...
|
||||
def buffer_info(self) -> tuple: ...
|
||||
def byteswap(self) -> None:
|
||||
raise RuntimeError()
|
||||
def count(self, *args, **kwargs) -> int: ...
|
||||
def extend(self, *args, **kwargs) -> None: ...
|
||||
def fromfile(self, a, b: int) -> None:
|
||||
raise EOFError()
|
||||
raise IOError()
|
||||
raise MemoryError()
|
||||
raise TypeError()
|
||||
def fromlist(self, *args, **kwargs) -> None:
|
||||
raise MemoryError()
|
||||
raise TypeError()
|
||||
def fromstring(self, a) -> None:
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
def fromunicode(self, a: str) -> None:
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
def index(self, *args, **kwargs) -> int:
|
||||
raise ValueError()
|
||||
def insert(self, a: int, b) -> None: ...
|
||||
def pop(self, *args, **kwargs) -> Any:
|
||||
raise IndexError()
|
||||
def read(self, *args, **kwargs) -> None:
|
||||
raise DeprecationWarning()
|
||||
def remove(self, *args, **kwargs) -> None:
|
||||
raise ValueError()
|
||||
def reverse(self) -> None: ...
|
||||
def tofile(self, *args, **kwargs) -> None:
|
||||
raise IOError()
|
||||
raise TypeError()
|
||||
def tolist(self) -> list: ...
|
||||
def tostring(self) -> str:
|
||||
raise MemoryError()
|
||||
def tounicode(self) -> unicode:
|
||||
raise ValueError()
|
||||
def write(self, *args, **kwargs) -> None:
|
||||
raise DeprecationWarning()
|
||||
|
||||
class arrayiterator(object):
|
||||
pass
|
||||
23
builtins/2.7/binascii.pyi
Normal file
23
builtins/2.7/binascii.pyi
Normal file
@@ -0,0 +1,23 @@
|
||||
"""Stubs for the binascii module."""
|
||||
|
||||
from typing import Optional
|
||||
|
||||
def a2b_base64(string: str) -> str: ...
|
||||
def a2b_hex(hexstr: str) -> str: ...
|
||||
def a2b_hqx(string: str) -> str: ...
|
||||
def a2b_qp(string: str, header: bool = None) -> str: ...
|
||||
def a2b_uu(string: str) -> str: ...
|
||||
def b2a_base64(data: str) -> str: ...
|
||||
def b2a_hex(data: str) -> str: ...
|
||||
def b2a_hqx(data: str) -> str: ...
|
||||
def b2a_qp(data: str, quotetabs: bool = None, istext: bool = None, header: bool = None) -> str: ...
|
||||
def b2a_uu(data: str) -> str: ...
|
||||
def crc32(data: str, crc: Optional[int]) -> int: ...
|
||||
def crc_hqx(data: str, oldcrc: int) -> int: ...
|
||||
def hexlify(data: str) -> str: ...
|
||||
def rlecode_hqx(data: str) -> str: ...
|
||||
def rledecode_hqx(data: str) -> str: ...
|
||||
def unhexlify(hexstr: str) -> str: ...
|
||||
|
||||
class Error(Exception): ...
|
||||
class Incomplete(Exception): ...
|
||||
39
builtins/2.7/cStringIO.pyi
Normal file
39
builtins/2.7/cStringIO.pyi
Normal file
@@ -0,0 +1,39 @@
|
||||
# Stubs for cStringIO (Python 2.7)
|
||||
# See https://docs.python.org/2/library/stringio.html
|
||||
|
||||
from typing import IO, List, Iterable, Iterator, Any, Union
|
||||
|
||||
class StringIO(IO[str]):
|
||||
softspace = ... # type: int
|
||||
|
||||
def __init__(self, s: str = None) -> None: ...
|
||||
def getvalue(self) -> str: ...
|
||||
def close(self) -> None: ...
|
||||
@property
|
||||
def closed(self) -> bool: ...
|
||||
def fileno(self) -> int: ...
|
||||
def flush(self) -> None: ...
|
||||
def isatty(self) -> bool: ...
|
||||
def read(self, size: int = -1) -> str: ...
|
||||
def readable(self) -> bool: ...
|
||||
def readline(self, size: int = -1) -> str: ...
|
||||
def readlines(self, hint: int = -1) -> List[str]: ...
|
||||
def seek(self, offset: int, whence: int = ...) -> None: ...
|
||||
def seekable(self) -> bool: ...
|
||||
def tell(self) -> int: ...
|
||||
def truncate(self, size: int = None) -> int:
|
||||
raise IOError()
|
||||
def writable(self) -> bool: ...
|
||||
def writelines(self, lines: Iterable[str]) -> None: ...
|
||||
def next(self) -> str: ...
|
||||
def __iter__(self) -> "InputType": ...
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...
|
||||
# only StringO:
|
||||
def reset() -> None: ...
|
||||
def write(self, b: Union[str, unicode]) -> None: ...
|
||||
def writelines(self, lines: Iterable[Union[str, unicode]]) -> None: ...
|
||||
|
||||
InputType = StringIO
|
||||
OutputType = StringIO
|
||||
|
||||
48
builtins/2.7/cmath.pyi
Normal file
48
builtins/2.7/cmath.pyi
Normal file
@@ -0,0 +1,48 @@
|
||||
"""Stub file for the 'cmath' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def acos(*args, **kwargs) -> complex: ...
|
||||
|
||||
def acosh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def asin(*args, **kwargs) -> complex: ...
|
||||
|
||||
def asinh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def atan(*args, **kwargs) -> complex: ...
|
||||
|
||||
def atanh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def cos(*args, **kwargs) -> complex: ...
|
||||
|
||||
def cosh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def exp(*args, **kwargs) -> complex: ...
|
||||
|
||||
def isinf(a: complex) -> bool: ...
|
||||
|
||||
def isnan(a: complex) -> bool: ...
|
||||
|
||||
def log(a: complex, *args, **kwargs) -> complex: ...
|
||||
|
||||
def log10(*args, **kwargs) -> complex: ...
|
||||
|
||||
def phase(a: complex) -> float: ...
|
||||
|
||||
def polar(a: complex) -> tuple: ...
|
||||
|
||||
def rect(a: float, b: float) -> complex: ...
|
||||
|
||||
def sin(*args, **kwargs) -> complex: ...
|
||||
|
||||
def sinh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def sqrt(*args, **kwargs) -> complex: ...
|
||||
|
||||
def tan(*args, **kwargs) -> complex: ...
|
||||
|
||||
def tanh(*args, **kwargs) -> complex: ...
|
||||
129
builtins/2.7/errno.pyi
Normal file
129
builtins/2.7/errno.pyi
Normal file
@@ -0,0 +1,129 @@
|
||||
"""Stubs for the 'errno' module."""
|
||||
|
||||
from typing import Dict
|
||||
|
||||
errorcode = ... # type: Dict[int, str]
|
||||
|
||||
E2BIG = ... # type: int
|
||||
EACCES = ... # type: int
|
||||
EADDRINUSE = ... # type: int
|
||||
EADDRNOTAVAIL = ... # type: int
|
||||
EADV = ... # type: int
|
||||
EAFNOSUPPORT = ... # type: int
|
||||
EAGAIN = ... # type: int
|
||||
EALREADY = ... # type: int
|
||||
EBADE = ... # type: int
|
||||
EBADF = ... # type: int
|
||||
EBADFD = ... # type: int
|
||||
EBADMSG = ... # type: int
|
||||
EBADR = ... # type: int
|
||||
EBADRQC = ... # type: int
|
||||
EBADSLT = ... # type: int
|
||||
EBFONT = ... # type: int
|
||||
EBUSY = ... # type: int
|
||||
ECHILD = ... # type: int
|
||||
ECHRNG = ... # type: int
|
||||
ECOMM = ... # type: int
|
||||
ECONNABORTED = ... # type: int
|
||||
ECONNREFUSED = ... # type: int
|
||||
ECONNRESET = ... # type: int
|
||||
EDEADLK = ... # type: int
|
||||
EDEADLOCK = ... # type: int
|
||||
EDESTADDRREQ = ... # type: int
|
||||
EDOM = ... # type: int
|
||||
EDOTDOT = ... # type: int
|
||||
EDQUOT = ... # type: int
|
||||
EEXIST = ... # type: int
|
||||
EFAULT = ... # type: int
|
||||
EFBIG = ... # type: int
|
||||
EHOSTDOWN = ... # type: int
|
||||
EHOSTUNREACH = ... # type: int
|
||||
EIDRM = ... # type: int
|
||||
EILSEQ = ... # type: int
|
||||
EINPROGRESS = ... # type: int
|
||||
EINTR = ... # type: int
|
||||
EINVAL = ... # type: int
|
||||
EIO = ... # type: int
|
||||
EISCONN = ... # type: int
|
||||
EISDIR = ... # type: int
|
||||
EISNAM = ... # type: int
|
||||
EL2HLT = ... # type: int
|
||||
EL2NSYNC = ... # type: int
|
||||
EL3HLT = ... # type: int
|
||||
EL3RST = ... # type: int
|
||||
ELIBACC = ... # type: int
|
||||
ELIBBAD = ... # type: int
|
||||
ELIBEXEC = ... # type: int
|
||||
ELIBMAX = ... # type: int
|
||||
ELIBSCN = ... # type: int
|
||||
ELNRNG = ... # type: int
|
||||
ELOOP = ... # type: int
|
||||
EMFILE = ... # type: int
|
||||
EMLINK = ... # type: int
|
||||
EMSGSIZE = ... # type: int
|
||||
EMULTIHOP = ... # type: int
|
||||
ENAMETOOLONG = ... # type: int
|
||||
ENAVAIL = ... # type: int
|
||||
ENETDOWN = ... # type: int
|
||||
ENETRESET = ... # type: int
|
||||
ENETUNREACH = ... # type: int
|
||||
ENFILE = ... # type: int
|
||||
ENOANO = ... # type: int
|
||||
ENOBUFS = ... # type: int
|
||||
ENOCSI = ... # type: int
|
||||
ENODATA = ... # type: int
|
||||
ENODEV = ... # type: int
|
||||
ENOENT = ... # type: int
|
||||
ENOEXEC = ... # type: int
|
||||
ENOLCK = ... # type: int
|
||||
ENOLINK = ... # type: int
|
||||
ENOMEM = ... # type: int
|
||||
ENOMSG = ... # type: int
|
||||
ENONET = ... # type: int
|
||||
ENOPKG = ... # type: int
|
||||
ENOPROTOOPT = ... # type: int
|
||||
ENOSPC = ... # type: int
|
||||
ENOSR = ... # type: int
|
||||
ENOSTR = ... # type: int
|
||||
ENOSYS = ... # type: int
|
||||
ENOTBLK = ... # type: int
|
||||
ENOTCONN = ... # type: int
|
||||
ENOTDIR = ... # type: int
|
||||
ENOTEMPTY = ... # type: int
|
||||
ENOTNAM = ... # type: int
|
||||
ENOTSOCK = ... # type: int
|
||||
ENOTSUP = ... # type: int
|
||||
ENOTTY = ... # type: int
|
||||
ENOTUNIQ = ... # type: int
|
||||
ENXIO = ... # type: int
|
||||
EOPNOTSUPP = ... # type: int
|
||||
EOVERFLOW = ... # type: int
|
||||
EPERM = ... # type: int
|
||||
EPFNOSUPPORT = ... # type: int
|
||||
EPIPE = ... # type: int
|
||||
EPROTO = ... # type: int
|
||||
EPROTONOSUPPORT = ... # type: int
|
||||
EPROTOTYPE = ... # type: int
|
||||
ERANGE = ... # type: int
|
||||
EREMCHG = ... # type: int
|
||||
EREMOTE = ... # type: int
|
||||
EREMOTEIO = ... # type: int
|
||||
ERESTART = ... # type: int
|
||||
EROFS = ... # type: int
|
||||
ESHUTDOWN = ... # type: int
|
||||
ESOCKTNOSUPPORT = ... # type: int
|
||||
ESPIPE = ... # type: int
|
||||
ESRCH = ... # type: int
|
||||
ESRMNT = ... # type: int
|
||||
ESTALE = ... # type: int
|
||||
ESTRPIPE = ... # type: int
|
||||
ETIME = ... # type: int
|
||||
ETIMEDOUT = ... # type: int
|
||||
ETOOMANYREFS = ... # type: int
|
||||
ETXTBSY = ... # type: int
|
||||
EUCLEAN = ... # type: int
|
||||
EUNATCH = ... # type: int
|
||||
EUSERS = ... # type: int
|
||||
EWOULDBLOCK = ... # type: int
|
||||
EXDEV = ... # type: int
|
||||
EXFULL = ... # type: int
|
||||
85
builtins/2.7/fcntl.pyi
Normal file
85
builtins/2.7/fcntl.pyi
Normal file
@@ -0,0 +1,85 @@
|
||||
from typing import Union
|
||||
import io
|
||||
|
||||
FASYNC = ... # type: int
|
||||
FD_CLOEXEC = ... # type: int
|
||||
|
||||
DN_ACCESS = ... # type: int
|
||||
DN_ATTRIB = ... # type: int
|
||||
DN_CREATE = ... # type: int
|
||||
DN_DELETE = ... # type: int
|
||||
DN_MODIFY = ... # type: int
|
||||
DN_MULTISHOT = ... # type: int
|
||||
DN_RENAME = ... # type: int
|
||||
F_DUPFD = ... # type: int
|
||||
F_EXLCK = ... # type: int
|
||||
F_GETFD = ... # type: int
|
||||
F_GETFL = ... # type: int
|
||||
F_GETLEASE = ... # type: int
|
||||
F_GETLK = ... # type: int
|
||||
F_GETLK64 = ... # type: int
|
||||
F_GETOWN = ... # type: int
|
||||
F_GETSIG = ... # type: int
|
||||
F_NOTIFY = ... # type: int
|
||||
F_RDLCK = ... # type: int
|
||||
F_SETFD = ... # type: int
|
||||
F_SETFL = ... # type: int
|
||||
F_SETLEASE = ... # type: int
|
||||
F_SETLK = ... # type: int
|
||||
F_SETLK64 = ... # type: int
|
||||
F_SETLKW = ... # type: int
|
||||
F_SETLKW64 = ... # type: int
|
||||
F_SETOWN = ... # type: int
|
||||
F_SETSIG = ... # type: int
|
||||
F_SHLCK = ... # type: int
|
||||
F_UNLCK = ... # type: int
|
||||
F_WRLCK = ... # type: int
|
||||
I_ATMARK = ... # type: int
|
||||
I_CANPUT = ... # type: int
|
||||
I_CKBAND = ... # type: int
|
||||
I_FDINSERT = ... # type: int
|
||||
I_FIND = ... # type: int
|
||||
I_FLUSH = ... # type: int
|
||||
I_FLUSHBAND = ... # type: int
|
||||
I_GETBAND = ... # type: int
|
||||
I_GETCLTIME = ... # type: int
|
||||
I_GETSIG = ... # type: int
|
||||
I_GRDOPT = ... # type: int
|
||||
I_GWROPT = ... # type: int
|
||||
I_LINK = ... # type: int
|
||||
I_LIST = ... # type: int
|
||||
I_LOOK = ... # type: int
|
||||
I_NREAD = ... # type: int
|
||||
I_PEEK = ... # type: int
|
||||
I_PLINK = ... # type: int
|
||||
I_POP = ... # type: int
|
||||
I_PUNLINK = ... # type: int
|
||||
I_PUSH = ... # type: int
|
||||
I_RECVFD = ... # type: int
|
||||
I_SENDFD = ... # type: int
|
||||
I_SETCLTIME = ... # type: int
|
||||
I_SETSIG = ... # type: int
|
||||
I_SRDOPT = ... # type: int
|
||||
I_STR = ... # type: int
|
||||
I_SWROPT = ... # type: int
|
||||
I_UNLINK = ... # type: int
|
||||
LOCK_EX = ... # type: int
|
||||
LOCK_MAND = ... # type: int
|
||||
LOCK_NB = ... # type: int
|
||||
LOCK_READ = ... # type: int
|
||||
LOCK_RW = ... # type: int
|
||||
LOCK_SH = ... # type: int
|
||||
LOCK_UN = ... # type: int
|
||||
LOCK_WRITE = ... # type: int
|
||||
|
||||
_ANYFILE = Union[int, io.IOBase]
|
||||
|
||||
def fcntl(fd: _ANYFILE, op: int, arg: Union[int, str] = 0) -> Union[int, str]: ...
|
||||
|
||||
# TODO: arg: int or read-only buffer interface or read-write buffer interface
|
||||
def ioctl(fd: _ANYFILE, op: int, arg: Union[int, str] = 0,
|
||||
mutate_flag: bool = True) -> Union[int, str]: ...
|
||||
|
||||
def flock(fd: _ANYFILE, op: int) -> None: ...
|
||||
def lockf(fd: _ANYFILE, op: int, length: int = 0, start: int = 0,
|
||||
whence: int = 0) -> Union[int, str]: ...
|
||||
27
builtins/2.7/gc.pyi
Normal file
27
builtins/2.7/gc.pyi
Normal file
@@ -0,0 +1,27 @@
|
||||
# Stubs for gc (Python 2)
|
||||
|
||||
from typing import List, Any, Tuple
|
||||
|
||||
def enable() -> None: ...
|
||||
def disable() -> None: ...
|
||||
def isenabled() -> bool: ...
|
||||
def collect(generation: int = None) -> int: ...
|
||||
def set_debug(flags: int) -> None: ...
|
||||
def get_debug() -> int: ...
|
||||
def get_objects() -> List[Any]: ...
|
||||
def set_threshold(threshold0: int, threshold1: int = None, threshold2: int = None) -> None: ...
|
||||
def get_count() -> Tuple[int, int, int]: ...
|
||||
def get_threshold() -> Tuple[int, int, int]: ...
|
||||
def get_referrers(*objs: Any) -> List[Any]: ...
|
||||
def get_referents(*objs: Any) -> List[Any]: ...
|
||||
def is_tracked(obj: Any) -> bool: ...
|
||||
|
||||
garbage = ... # type: List[Any]
|
||||
|
||||
DEBUG_STATS = ... # type: Any
|
||||
DEBUG_COLLECTABLE = ... # type: Any
|
||||
DEBUG_UNCOLLECTABLE = ... # type: Any
|
||||
DEBUG_INSTANCES = ... # type: Any
|
||||
DEBUG_OBJECTS = ... # type: Any
|
||||
DEBUG_SAVEALL = ... # type: Any
|
||||
DEBUG_LEAK = ... # type: Any
|
||||
35
builtins/2.7/imp.pyi
Normal file
35
builtins/2.7/imp.pyi
Normal file
@@ -0,0 +1,35 @@
|
||||
"""Stubs for the 'imp' module."""
|
||||
|
||||
from typing import List, Optional, Tuple, Iterable, IO, Any
|
||||
import types
|
||||
|
||||
C_BUILTIN = ... # type: int
|
||||
C_EXTENSION = ... # type: int
|
||||
IMP_HOOK = ... # type: int
|
||||
PKG_DIRECTORY = ... # type: int
|
||||
PY_CODERESOURCE = ... # type: int
|
||||
PY_COMPILED = ... # type: int
|
||||
PY_FROZEN = ... # type: int
|
||||
PY_RESOURCE = ... # type: int
|
||||
PY_SOURCE = ... # type: int
|
||||
SEARCH_ERROR = ... # type: int
|
||||
|
||||
def acquire_lock() -> None: ...
|
||||
def find_module(name: str, path: Iterable[str] = None) -> Optional[Tuple[str, str, Tuple[str, str, int]]]: ...
|
||||
def get_magic() -> str: ...
|
||||
def get_suffixes() -> List[Tuple[str, str, int]]: ...
|
||||
def init_builtin(name: str) -> types.ModuleType: ...
|
||||
def init_frozen(name: str) -> types.ModuleType: ...
|
||||
def is_builtin(name: str) -> int: ...
|
||||
def is_frozen(name: str) -> bool: ...
|
||||
def load_compiled(name: str, pathname: str, file: IO[Any] = None) -> types.ModuleType: ...
|
||||
def load_dynamic(name: str, pathname: str, file: IO[Any] = None) -> types.ModuleType: ...
|
||||
def load_module(name: str, file: str, pathname: str, description: Tuple[str, str, int]) -> types.ModuleType: ...
|
||||
def load_source(name: str, pathname: str, file: IO[Any] = None) -> types.ModuleType: ...
|
||||
def lock_held() -> bool: ...
|
||||
def new_module(name: str) -> types.ModuleType: ...
|
||||
def release_lock() -> None: ...
|
||||
|
||||
class NullImporter:
|
||||
def __init__(self, path_string: str) -> None: ...
|
||||
def find_module(fullname: str, path: str = None) -> None: ...
|
||||
8
builtins/2.7/marshal.pyi
Normal file
8
builtins/2.7/marshal.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import Any, IO
|
||||
|
||||
version = ... # type: int
|
||||
|
||||
def dump(value: Any, file: IO[Any], version: int = None) -> None: ...
|
||||
def load(file: IO[Any]) -> Any: ...
|
||||
def dumps(value: Any, version: int = None) -> str: ...
|
||||
def loads(string: str) -> Any: ...
|
||||
48
builtins/2.7/math.pyi
Normal file
48
builtins/2.7/math.pyi
Normal file
@@ -0,0 +1,48 @@
|
||||
# Stubs for math
|
||||
# See: http://docs.python.org/2/library/math.html
|
||||
|
||||
from typing import Tuple, Iterable, Optional
|
||||
|
||||
e = ... # type: float
|
||||
pi = ... # type: float
|
||||
|
||||
def acos(x: float) -> float: ...
|
||||
def acosh(x: float) -> float: ...
|
||||
def asin(x: float) -> float: ...
|
||||
def asinh(x: float) -> float: ...
|
||||
def atan(x: float) -> float: ...
|
||||
def atan2(y: float, x: float) -> float: ...
|
||||
def atanh(x: float) -> float: ...
|
||||
def ceil(x: float) -> int: ...
|
||||
def copysign(x: float, y: float) -> float: ...
|
||||
def cos(x: float) -> float: ...
|
||||
def cosh(x: float) -> float: ...
|
||||
def degrees(x: float) -> float: ...
|
||||
def erf(x: float) -> float: ...
|
||||
def erfc(x: float) -> float: ...
|
||||
def exp(x: float) -> float: ...
|
||||
def expm1(x: float) -> float: ...
|
||||
def fabs(x: float) -> float: ...
|
||||
def factorial(x: int) -> int: ...
|
||||
def floor(x: float) -> float: ...
|
||||
def fmod(x: float, y: float) -> float: ...
|
||||
def frexp(x: float) -> Tuple[float, int]: ...
|
||||
def fsum(iterable: Iterable) -> float: ...
|
||||
def gamma(x: float) -> float: ...
|
||||
def hypot(x: float, y: float) -> float: ...
|
||||
def isinf(x: float) -> bool: ...
|
||||
def isnan(x: float) -> bool: ...
|
||||
def ldexp(x: float, i: int) -> float: ...
|
||||
def lgamma(x: float) -> float: ...
|
||||
def log(x: float, base: Optional[float]) -> float: ...
|
||||
def log10(x: float) -> float: ...
|
||||
def log1p(x: float) -> float: ...
|
||||
def modf(x: float) -> Tuple[float, float]: ...
|
||||
def pow(x: float, y: float) -> float: ...
|
||||
def radians(x: float) -> float: ...
|
||||
def sin(x: float) -> float: ...
|
||||
def sinh(x: float) -> float: ...
|
||||
def sqrt(x: float) -> float: ...
|
||||
def tan(x: float) -> float: ...
|
||||
def tanh(x: float) -> float: ...
|
||||
def trunc(x: float) -> int: ...
|
||||
124
builtins/2.7/operator.pyi
Normal file
124
builtins/2.7/operator.pyi
Normal file
@@ -0,0 +1,124 @@
|
||||
# Stubs for operator
|
||||
|
||||
from typing import Any
|
||||
|
||||
def __abs__(a: Any) -> Any: ...
|
||||
def __add__(a: Any, b: Any) -> Any: ...
|
||||
def __and__(a: Any, b: Any) -> Any: ...
|
||||
def __concat__(a: Any, b: Any) -> Any: ...
|
||||
def __contains__(container: Any, item: Any) -> bool: ...
|
||||
def __delitem__(container: Any, item: Any) -> None: ...
|
||||
def __delslice__(container: Any, b: int, c: int) -> None: ...
|
||||
def __div__(a: Any, b: Any) -> Any: ...
|
||||
def __eq__(a: Any, b: Any) -> Any: ...
|
||||
def __floordiv__(a: Any, b: Any) -> Any: ...
|
||||
def __ge__(a: Any, b: Any) -> Any: ...
|
||||
def __getitem__(container: Any, key: Any) -> Any: ...
|
||||
def __getslice__(container, b: int, c: int) -> Any: ...
|
||||
def __gt__(a: Any, b: Any) -> Any: ...
|
||||
def __iadd__(a: Any, b: Any) -> Any: ...
|
||||
def __iand__(a: Any, b: Any) -> Any: ...
|
||||
def __iconcat__(a: Any, b: Any) -> Any: ...
|
||||
def __idiv__(a: Any, b: Any) -> Any: ...
|
||||
def __ifloordiv__(a: Any, b: Any) -> Any: ...
|
||||
def __ilshift__(a: Any, b: Any) -> Any: ...
|
||||
def __imod__(a: Any, b: Any) -> Any: ...
|
||||
def __imul__(a: Any, b: Any) -> Any: ...
|
||||
def __index__(x: Any) -> Any: ...
|
||||
def __inv__(x: Any) -> Any: ...
|
||||
def __invert__(x: Any) -> Any: ...
|
||||
def __ior__(a: Any, b: Any) -> Any: ...
|
||||
def __ipow__(a: Any, b: Any) -> Any: ...
|
||||
def __irepeat__(a: Any, b: int) -> Any: ...
|
||||
def __irshift__(a: Any, b: Any) -> Any: ...
|
||||
def __isub__(a: Any, b: Any) -> Any: ...
|
||||
def __itruediv__(a: Any, b: Any) -> Any: ...
|
||||
def __ixor__(a: Any, b: Any) -> Any: ...
|
||||
def __le__(a: Any, b: Any) -> Any: ...
|
||||
def __lshift__(a: Any, b: Any) -> Any: ...
|
||||
def __lt__(a: Any, b: Any) -> Any: ...
|
||||
def __mod__(a: Any, b: Any) -> Any: ...
|
||||
def __mul__(a: Any, b: Any) -> Any: ...
|
||||
def __ne__(a: Any, b: Any) -> Any: ...
|
||||
def __neg__(x: Any) -> Any: ...
|
||||
def __not__(x: Any) -> bool: ...
|
||||
def __or__(a: Any, b: Any) -> Any: ...
|
||||
def __pos__(x: Any) -> Any: ...
|
||||
def __pow__(a: Any, b: Any) -> Any: ...
|
||||
def __repeat__(a, b: int) -> Any: ...
|
||||
def __rshift__(a: Any, b: Any) -> Any: ...
|
||||
def __setitem__(container: Any, b: Any) -> None: ...
|
||||
def __setslice__(container: Any, b: int, c: int, item: Any) -> None: ...
|
||||
def __sub__(a: Any, b: Any) -> Any: ...
|
||||
def __truediv__(a: Any, b: Any) -> Any: ...
|
||||
def __xor__(a: Any, b: Any) -> Any: ...
|
||||
|
||||
def abs(x: Any) -> Any: ...
|
||||
def add(a: Any, b: Any) -> Any: ...
|
||||
def and_(a: Any, b: Any) -> Any: ...
|
||||
def concat(a: Any, b: Any) -> Any: ...
|
||||
def contains(container: Any, item: Any) -> bool: ...
|
||||
def countOf(container: Any, item: Any) -> int: ...
|
||||
def delitem(container: Any, item: Any) -> None: ...
|
||||
def delslice(container: Any, b: int, c: int) -> None: ...
|
||||
def div(a: Any, b: Any) -> Any: ...
|
||||
def eq(a: Any, b: Any) -> Any: ...
|
||||
def floordiv(a: Any, b: Any) -> Any: ...
|
||||
def ge(a: Any, b: Any) -> Any: ...
|
||||
def getitem(a: Any, b: Any) -> Any: ...
|
||||
def getslice(container: Any, b: int, c: int) -> Any: ...
|
||||
def gt(a: Any, b: Any) -> Any: ...
|
||||
def iadd(a: Any, b: Any) -> Any: ...
|
||||
def iand(a: Any, b: Any) -> Any: ...
|
||||
def iconcat(a: Any, b: Any) -> Any: ...
|
||||
def idiv(a: Any, b: Any) -> Any: ...
|
||||
def ifloordiv(a: Any, b: Any) -> Any: ...
|
||||
def ilshift(a: Any, b: Any) -> Any: ...
|
||||
def imod(a: Any, b: Any) -> Any: ...
|
||||
def imul(a: Any, b: Any) -> Any: ...
|
||||
def index(x: Any) -> Any: ...
|
||||
def indexOf(container: Any, item: Any) -> int: ...
|
||||
def inv(x: Any) -> Any: ...
|
||||
def invert(x: Any) -> Any: ...
|
||||
def ior(a: Any, b: Any) -> Any: ...
|
||||
def ipow(a: Any, b: Any) -> Any: ...
|
||||
def irepeat(a, b: int) -> Any: ...
|
||||
def irshift(a: Any, b: Any) -> Any: ...
|
||||
def isCallable(x: Any) -> bool: ...
|
||||
def isMappingType(x: Any) -> bool: ...
|
||||
def isNumberType(x: Any) -> bool: ...
|
||||
def isSequenceType(x: Any) -> bool: ...
|
||||
def is_(a: Any, b: Any) -> bool: ...
|
||||
def is_not(a: Any, b: Any) -> bool: ...
|
||||
def isub(a: Any, b: Any) -> Any: ...
|
||||
def itruediv(a: Any, b: Any) -> Any: ...
|
||||
def ixor(a: Any, b: Any) -> Any: ...
|
||||
def le(a: Any, b: Any) -> Any: ...
|
||||
def lshift(a: Any, b: Any) -> Any: ...
|
||||
def lt(a: Any, b: Any) -> Any: ...
|
||||
def mod(a: Any, b: Any) -> Any: ...
|
||||
def mul(a: Any, b: Any) -> Any: ...
|
||||
def ne(a: Any, b: Any) -> Any: ...
|
||||
def neg(x: Any) -> Any: ...
|
||||
def not_(x: Any) -> bool: ...
|
||||
def or_(a: Any, b: Any) -> Any: ...
|
||||
def pos(x: Any) -> Any: ...
|
||||
def pow(a: Any, b: Any) -> Any: ...
|
||||
def repeat(a, b: int) -> Any: ...
|
||||
def rshift(a: Any, b: Any) -> Any: ...
|
||||
def sequenceIncludes(seq1: Any, seq2: Any) -> bool: ...
|
||||
def setitem(container: Any, key: Any, item: Any) -> None: ...
|
||||
def setslice(container: Any, b: int, c: int, slice: Any) -> None: ...
|
||||
def sub(a: Any, b: Any) -> Any: ...
|
||||
def truediv(a: Any, b: Any) -> Any: ...
|
||||
def truth(x: Any) -> bool: ...
|
||||
def xor(a: Any, b: Any) -> Any: ...
|
||||
|
||||
class attrgetter(object):
|
||||
def __init__(self, name: Any): ...
|
||||
|
||||
class itemgetter(object):
|
||||
def __init__(self, key: Any): ...
|
||||
|
||||
class methodcaller(object):
|
||||
def __init__(self, method_name: str, *args, **kwargs): ...
|
||||
101
builtins/2.7/select.pyi
Normal file
101
builtins/2.7/select.pyi
Normal file
@@ -0,0 +1,101 @@
|
||||
"""Stubs for the 'select' module."""
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
EPOLLERR = ... # type: int
|
||||
EPOLLET = ... # type: int
|
||||
EPOLLHUP = ... # type: int
|
||||
EPOLLIN = ... # type: int
|
||||
EPOLLMSG = ... # type: int
|
||||
EPOLLONESHOT = ... # type: int
|
||||
EPOLLOUT = ... # type: int
|
||||
EPOLLPRI = ... # type: int
|
||||
EPOLLRDBAND = ... # type: int
|
||||
EPOLLRDNORM = ... # type: int
|
||||
EPOLLWRBAND = ... # type: int
|
||||
EPOLLWRNORM = ... # type: int
|
||||
EPOLL_RDHUP = ... # type: int
|
||||
KQ_EV_ADD = ... # type: int
|
||||
KQ_EV_CLEAR = ... # type: int
|
||||
KQ_EV_DELETE = ... # type: int
|
||||
KQ_EV_DISABLE = ... # type: int
|
||||
KQ_EV_ENABLE = ... # type: int
|
||||
KQ_EV_EOF = ... # type: int
|
||||
KQ_EV_ERROR = ... # type: int
|
||||
KQ_EV_FLAG1 = ... # type: int
|
||||
KQ_EV_ONESHOT = ... # type: int
|
||||
KQ_EV_SYSFLAGS = ... # type: int
|
||||
KQ_FILTER_AIO = ... # type: int
|
||||
KQ_FILTER_NETDEV = ... # type: int
|
||||
KQ_FILTER_PROC = ... # type: int
|
||||
KQ_FILTER_READ = ... # type: int
|
||||
KQ_FILTER_SIGNAL = ... # type: int
|
||||
KQ_FILTER_TIMER = ... # type: int
|
||||
KQ_FILTER_VNODE = ... # type: int
|
||||
KQ_FILTER_WRITE = ... # type: int
|
||||
KQ_NOTE_ATTRIB = ... # type: int
|
||||
KQ_NOTE_CHILD = ... # type: int
|
||||
KQ_NOTE_DELETE = ... # type: int
|
||||
KQ_NOTE_EXEC = ... # type: int
|
||||
KQ_NOTE_EXIT = ... # type: int
|
||||
KQ_NOTE_EXTEND = ... # type: int
|
||||
KQ_NOTE_FORK = ... # type: int
|
||||
KQ_NOTE_LINK = ... # type: int
|
||||
KQ_NOTE_LINKDOWN = ... # type: int
|
||||
KQ_NOTE_LINKINV = ... # type: int
|
||||
KQ_NOTE_LINKUP = ... # type: int
|
||||
KQ_NOTE_LOWAT = ... # type: int
|
||||
KQ_NOTE_PCTRLMASK = ... # type: int
|
||||
KQ_NOTE_PDATAMASK = ... # type: int
|
||||
KQ_NOTE_RENAME = ... # type: int
|
||||
KQ_NOTE_REVOKE = ... # type: int
|
||||
KQ_NOTE_TRACK = ... # type: int
|
||||
KQ_NOTE_TRACKERR = ... # type: int
|
||||
KQ_NOTE_WRITE = ... # type: int
|
||||
PIPE_BUF = ... # type: int
|
||||
POLLERR = ... # type: int
|
||||
POLLHUP = ... # type: int
|
||||
POLLIN = ... # type: int
|
||||
POLLMSG = ... # type: int
|
||||
POLLNVAL = ... # type: int
|
||||
POLLOUT = ... # type: int
|
||||
POLLPRI = ... # type: int
|
||||
POLLRDBAND = ... # type: int
|
||||
POLLRDNORM = ... # type: int
|
||||
POLLWRBAND = ... # type: int
|
||||
POLLWRNORM = ... # type: int
|
||||
|
||||
def poll() -> epoll: ...
|
||||
def select(rlist, wlist, xlist, timeout: Optional[int]) -> Tuple[List, List, List]: ...
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
class kevent(object):
|
||||
data = ... # type: Any
|
||||
fflags = ... # type: int
|
||||
filter = ... # type: int
|
||||
flags = ... # type: int
|
||||
ident = ... # type: Any
|
||||
udata = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
|
||||
class kqueue(object):
|
||||
closed = ... # type: bool
|
||||
def __init__(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def control(self, changelist: Optional[Iterable[kevent]], max_events: int, timeout: int = ...) -> List[kevent]: ...
|
||||
def fileno(self) -> int: ...
|
||||
@classmethod
|
||||
def fromfd(cls, fd: int) -> kqueue: ...
|
||||
|
||||
class epoll(object):
|
||||
def __init__(self, sizehint: int = ...) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
def register(self, fd: int, eventmask: int = ...) -> None: ...
|
||||
def modify(self, fd: int, eventmask: int) -> None: ...
|
||||
def unregister(fd: int) -> None: ...
|
||||
def poll(timeout: float = ..., maxevents: int = ...) -> Any: ...
|
||||
@classmethod
|
||||
def fromfd(self, fd: int) -> epoll: ...
|
||||
|
||||
66
builtins/2.7/signal.pyi
Normal file
66
builtins/2.7/signal.pyi
Normal file
@@ -0,0 +1,66 @@
|
||||
from typing import Callable, Any, Tuple, Union
|
||||
|
||||
SIG_DFL = ... # type: long
|
||||
SIG_IGN = ... # type: long
|
||||
ITIMER_REAL = ... # type: long
|
||||
ITIMER_VIRTUAL = ... # type: long
|
||||
ITIMER_PROF = ... # type: long
|
||||
|
||||
SIGABRT = ... # type: int
|
||||
SIGALRM = ... # type: int
|
||||
SIGBUS = ... # type: int
|
||||
SIGCHLD = ... # type: int
|
||||
SIGCLD = ... # type: int
|
||||
SIGCONT = ... # type: int
|
||||
SIGFPE = ... # type: int
|
||||
SIGHUP = ... # type: int
|
||||
SIGILL = ... # type: int
|
||||
SIGINT = ... # type: int
|
||||
SIGIO = ... # type: int
|
||||
SIGIOT = ... # type: int
|
||||
SIGKILL = ... # type: int
|
||||
SIGPIPE = ... # type: int
|
||||
SIGPOLL = ... # type: int
|
||||
SIGPROF = ... # type: int
|
||||
SIGPWR = ... # type: int
|
||||
SIGQUIT = ... # type: int
|
||||
SIGRTMAX = ... # type: int
|
||||
SIGRTMIN = ... # type: int
|
||||
SIGSEGV = ... # type: int
|
||||
SIGSTOP = ... # type: int
|
||||
SIGSYS = ... # type: int
|
||||
SIGTERM = ... # type: int
|
||||
SIGTRAP = ... # type: int
|
||||
SIGTSTP = ... # type: int
|
||||
SIGTTIN = ... # type: int
|
||||
SIGTTOU = ... # type: int
|
||||
SIGURG = ... # type: int
|
||||
SIGUSR1 = ... # type: int
|
||||
SIGUSR2 = ... # type: int
|
||||
SIGVTALRM = ... # type: int
|
||||
SIGWINCH = ... # type: int
|
||||
SIGXCPU = ... # type: int
|
||||
SIGXFSZ = ... # type: int
|
||||
NSIG = ... # type: int
|
||||
|
||||
# Python 3 only:
|
||||
CTRL_C_EVENT = 0
|
||||
CTRL_BREAK_EVENT = 0
|
||||
GSIG = 0
|
||||
|
||||
class ItimerError(IOError): ...
|
||||
|
||||
_HANDLER = Union[Callable[[int, Any], Any], int, None]
|
||||
|
||||
def alarm(time: int) -> int: ...
|
||||
def getsignal(signalnum: int) -> _HANDLER: ...
|
||||
def pause() -> None: ...
|
||||
def setitimer(which: int, seconds: float, interval: float = None) -> Tuple[float, float]: ...
|
||||
def getitimer(which: int) -> Tuple[float, float]: ...
|
||||
def set_wakeup_fd(fd: int) -> long: ...
|
||||
def siginterrupt(signalnum: int, flag: bool) -> None:
|
||||
raise RuntimeError()
|
||||
def signal(signalnum: int, handler: _HANDLER) -> None:
|
||||
raise RuntimeError()
|
||||
def default_int_handler(*args, **kwargs) -> Any:
|
||||
raise KeyboardInterrupt()
|
||||
83
builtins/2.7/strop.pyi
Normal file
83
builtins/2.7/strop.pyi
Normal file
@@ -0,0 +1,83 @@
|
||||
"""Stub file for the 'strop' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def atof(a: str) -> float:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def atoi(a: str, *args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def atol(a: str, *args, **kwargs) -> long:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def capitalize(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def count(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def expandtabs(a, *args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
raise OverflowError()
|
||||
raise ValueError()
|
||||
|
||||
def find(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def join(*args, **kwargs) -> Any:
|
||||
raise DeprecationWarning()
|
||||
raise OverflowError()
|
||||
raise TypeError()
|
||||
|
||||
def joinfields(*args, **kwargs) -> Any:
|
||||
raise DeprecationWarning()
|
||||
raise OverflowError()
|
||||
raise TypeError()
|
||||
|
||||
def lower(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def lstrip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def maketrans(*args, **kwargs) -> str:
|
||||
raise ValueError()
|
||||
|
||||
def replace(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
|
||||
def rfind(*args, **kwargs) -> int:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def rstrip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def split(*args, **kwargs) -> List[str]:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def splitfields(*args, **kwargs) -> List[str]:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def strip(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def swapcase(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
|
||||
def translate(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
raise ValueError()
|
||||
|
||||
def upper(*args, **kwargs) -> str:
|
||||
raise DeprecationWarning()
|
||||
113
builtins/2.7/sys.pyi
Normal file
113
builtins/2.7/sys.pyi
Normal file
@@ -0,0 +1,113 @@
|
||||
"""Stubs for the 'sys' module."""
|
||||
|
||||
from typing import (
|
||||
List, Sequence, Any, Dict, Tuple, BinaryIO, overload
|
||||
)
|
||||
|
||||
class _flags:
|
||||
bytes_warning = ... # type: int
|
||||
debug = ... # type: int
|
||||
division_new = ... # type: int
|
||||
division_warning = ... # type: int
|
||||
dont_write_bytecode = ... # type: int
|
||||
hash_randomization = ... # type: int
|
||||
ignore_environment = ... # type: int
|
||||
inspect = ... # type: int
|
||||
interactive = ... # type: int
|
||||
no_site = ... # type: int
|
||||
no_user_site = ... # type: int
|
||||
optimize = ... # type: int
|
||||
py3k_warning = ... # type: int
|
||||
tabcheck = ... # type: int
|
||||
unicode = ... # type: int
|
||||
verbose = ... # type: int
|
||||
|
||||
class _float_info:
|
||||
max = ... # type: float
|
||||
max_exp = ... # type: int
|
||||
max_10_exp = ... # type: int
|
||||
min = ... # type: float
|
||||
min_exp = ... # type: int
|
||||
min_10_exp = ... # type: int
|
||||
dig = ... # type: int
|
||||
mant_dig = ... # type: int
|
||||
epsilon = ... # type: float
|
||||
radix = ... # type: int
|
||||
rounds = ... # type: int
|
||||
|
||||
class _version_info(Tuple[int, int, int, str, int]):
|
||||
major = 0
|
||||
minor = 0
|
||||
micro = 0
|
||||
releaselevel = ''
|
||||
serial = 0
|
||||
|
||||
_mercurial = ... # type: tuple
|
||||
api_version = ... # type: int
|
||||
argv = ... # type: List[str]
|
||||
builtin_module_names = ... # type: List[str]
|
||||
byteorder = ... # type: str
|
||||
copyright = ... # type: str
|
||||
dont_write_bytecode = ... # type: bool
|
||||
exec_prefix = ... # type: str
|
||||
executable = ... # type: str
|
||||
flags = ... # type: _flags
|
||||
float_repr_style = ... # type: str
|
||||
hexversion = ... # type: int
|
||||
long_info = ... # type: object
|
||||
maxint = ... # type: int
|
||||
maxsize = ... # type: int
|
||||
maxunicode = ... # type: int
|
||||
modules = ... # type: Dict[str, module]
|
||||
path = ... # type: List[str]
|
||||
platform = ... # type: str
|
||||
prefix = ... # type: str
|
||||
py3kwarning = ... # type: bool
|
||||
stderr = ... # type: file
|
||||
stdin = ... # type: file
|
||||
stdout = ... # type: file
|
||||
subversion = ... # type: tuple
|
||||
version = ... # type: str
|
||||
version_info = ... # type: Tuple[int]
|
||||
warnoptions = ... # type: object
|
||||
float_info = ... # type: _float_info
|
||||
version_info = ... # type: _version_info
|
||||
|
||||
class _WindowsVersionType:
|
||||
major = ... # type: Any
|
||||
minor = ... # type: Any
|
||||
build = ... # type: Any
|
||||
platform = ... # type: Any
|
||||
service_pack = ... # type: Any
|
||||
service_pack_major = ... # type: Any
|
||||
service_pack_minor = ... # type: Any
|
||||
suite_mask = ... # type: Any
|
||||
product_type = ... # type: Any
|
||||
|
||||
def getwindowsversion() -> _WindowsVersionType: ... # TODO return type
|
||||
|
||||
def _clear_type_cache() -> None: ...
|
||||
def _current_frames() -> Dict[int, Any]: ...
|
||||
def _getframe(depth: int = ...) -> Any: ... # TODO: Return FrameObject
|
||||
def call_tracing(fn: Any, args: Any) -> Any: ...
|
||||
def displayhook(value: int) -> None: ... # value might be None
|
||||
def excepthook(type_: type, value: BaseException, traceback: Any) -> None: ... # TODO traceback type
|
||||
def exc_clear() -> None:
|
||||
raise DeprecationWarning()
|
||||
def exc_info() -> Tuple[type, Any, Any]: ... # TODO traceback type
|
||||
def exit(arg: int = ...) -> None:
|
||||
raise SystemExit()
|
||||
def getcheckinterval() -> int: ... # deprecated
|
||||
def getdefaultencoding() -> str: ...
|
||||
def getdlopenflags() -> int: ...
|
||||
def getfilesystemencoding() -> Union[str, None]: ...
|
||||
def getrefcount(object) -> int: ...
|
||||
def getrecursionlimit() -> int: ...
|
||||
def getsizeof(obj: object, default: int = ...) -> int: ...
|
||||
def getprofile() -> None: ...
|
||||
def gettrace() -> None: ...
|
||||
def setcheckinterval(interval: int) -> None: ... # deprecated
|
||||
def setdlopenflags(n: int) -> None: ...
|
||||
def setprofile(profilefunc: Any) -> None: ... # TODO type
|
||||
def setrecursionlimit(limit: int) -> None: ...
|
||||
def settrace(tracefunc: Any) -> None: ... # TODO type
|
||||
32
builtins/2.7/thread.pyi
Normal file
32
builtins/2.7/thread.pyi
Normal file
@@ -0,0 +1,32 @@
|
||||
from typing import Callable, Any
|
||||
|
||||
def _count() -> int: ...
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
class LockType:
|
||||
def acquire(self, waitflag: int = None) -> bool: ...
|
||||
def acquire_lock(self, waitflag: int = None) -> bool: ...
|
||||
def release(self) -> None: ...
|
||||
def release_lock(self) -> None: ...
|
||||
def locked(self) -> bool: ...
|
||||
def locked_lock(self) -> bool: ...
|
||||
def __enter__(self) -> LockType: ...
|
||||
def __exit__(self, value: Any, traceback: Any) -> None: ...
|
||||
|
||||
class _local(object):
|
||||
pass
|
||||
|
||||
class _localdummy(object):
|
||||
pass
|
||||
|
||||
def start_new(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
|
||||
def start_new_thread(function: Callable[..., Any], args: Any, kwargs: Any = None) -> int: ...
|
||||
def interrupt_main() -> None: ...
|
||||
def exit() -> None:
|
||||
raise SystemExit()
|
||||
def exit_thread() -> Any:
|
||||
raise SystemExit()
|
||||
def allocate_lock() -> LockType: ...
|
||||
def get_ident() -> int: ...
|
||||
def stack_size(size: int = None) -> int: ...
|
||||
48
builtins/2.7/time.pyi
Normal file
48
builtins/2.7/time.pyi
Normal file
@@ -0,0 +1,48 @@
|
||||
"""Stub file for the 'time' module."""
|
||||
# See https://docs.python.org/2/library/time.html
|
||||
|
||||
from typing import NamedTuple, Tuple, Union
|
||||
|
||||
# ----- variables and constants -----
|
||||
accept2dyear = False
|
||||
altzone = 0
|
||||
daylight = 0
|
||||
timezone = 0
|
||||
tzname = ... # type: Tuple[str, str]
|
||||
|
||||
struct_time = NamedTuple('struct_time',
|
||||
[('tm_year', int), ('tm_mon', int), ('tm_mday', int),
|
||||
('tm_hour', int), ('tm_min', int), ('tm_sec', int),
|
||||
('tm_wday', int), ('tm_yday', int), ('tm_isdst', int)])
|
||||
|
||||
_TIME_TUPLE = Tuple[int, int, int, int, int, int, int, int, int]
|
||||
|
||||
def asctime(t: struct_time = None) -> str:
|
||||
raise ValueError()
|
||||
|
||||
def clock() -> float: ...
|
||||
|
||||
def ctime(secs: float = None) -> str:
|
||||
raise ValueError()
|
||||
|
||||
def gmtime(secs: float = None) -> struct_time: ...
|
||||
|
||||
def localtime(secs: float = None) -> struct_time: ...
|
||||
|
||||
def mktime(t: struct_time) -> float:
|
||||
raise OverflowError()
|
||||
raise ValueError()
|
||||
|
||||
def sleep(secs: float) -> None: ...
|
||||
|
||||
def strftime(format: str, t: struct_time = None) -> str:
|
||||
raise MemoryError()
|
||||
raise ValueError()
|
||||
|
||||
def strptime(string: str, format: str = "%a %b %d %H:%M:%S %Y") -> struct_time:
|
||||
raise ValueError()
|
||||
|
||||
def time() -> float:
|
||||
raise IOError()
|
||||
|
||||
def tzset() -> None: ...
|
||||
39
builtins/2.7/unicodedata.pyi
Normal file
39
builtins/2.7/unicodedata.pyi
Normal file
@@ -0,0 +1,39 @@
|
||||
"""Stubs for the 'unicodedata' module."""
|
||||
|
||||
from typing import Any, TypeVar
|
||||
|
||||
ucd_3_2_0 = ... # type: UCD
|
||||
ucnhash_CAPI = ... # type: Any (PyCapsule)
|
||||
unidata_version = ... # type: str
|
||||
|
||||
_default = TypeVar("default")
|
||||
|
||||
def bidirectional(unichr: unicode) -> str: ...
|
||||
def category(unichr: unicode) -> str: ...
|
||||
def combining(unichr: unicode) -> int: ...
|
||||
def decimal(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def decomposition(unichr: unicode) -> str: ...
|
||||
def digit(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def east_asian_width(unichr: unicode): str
|
||||
def lookup(name: str): unicode
|
||||
def mirrored(unichr: unicode): int
|
||||
def name(chr: unicode, default=_default) -> Union[str, _default]: ...
|
||||
def normalize(form: str, unistr: unicode) -> unicode: ...
|
||||
def numeric(chr, default=_default): Union[float, _default]: ...
|
||||
|
||||
class UCD(object):
|
||||
unidata_version = ... # type: str
|
||||
# The methods below are constructed from the same array in C
|
||||
# (unicodedata_functions) and hence identical to the methods above.
|
||||
def bidirectional(unichr: unicode) -> str: ...
|
||||
def category(unichr: unicode) -> str: ...
|
||||
def combining(unichr: unicode) -> int: ...
|
||||
def decimal(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def decomposition(unichr: unicode) -> str: ...
|
||||
def digit(chr: unicode, default=_default) -> Union[int, _default]: ...
|
||||
def east_asian_width(unichr: unicode): str
|
||||
def lookup(name: str): unicode
|
||||
def mirrored(unichr: unicode): int
|
||||
def name(chr: unicode, default=_default) -> Union[str, _default]: ...
|
||||
def normalize(form: str, unistr: unicode) -> unicode: ...
|
||||
def numeric(chr, default=_default): Union[float, _default]: ...
|
||||
19
builtins/2.7/xxsubtype.pyi
Normal file
19
builtins/2.7/xxsubtype.pyi
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Stub file for the 'xxsubtype' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def bench(a, b: str, *args, **kwargs) -> float: ...
|
||||
|
||||
|
||||
class spamdict(object):
|
||||
def getstate(self) -> int: ...
|
||||
def setstate(self, a: int) -> None: ...
|
||||
|
||||
class spamlist(object):
|
||||
def classmeth(self, *args, **kwargs) -> tuple: ...
|
||||
def getstate(self) -> int: ...
|
||||
def setstate(self, a: int) -> None: ...
|
||||
def staticmeth(self, *args, **kwargs) -> tuple: ...
|
||||
16
builtins/2.7/zipimport.pyi
Normal file
16
builtins/2.7/zipimport.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
"""Stub file for the 'zipimport' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
class zipimporter(object):
|
||||
def find_module(self, a: str, *args, **kwargs) -> None: ...
|
||||
def get_code(self, a: str) -> Any: ...
|
||||
def get_data(self, a: str) -> str:
|
||||
raise IOError()
|
||||
def get_filename(self, a: str) -> str: ...
|
||||
def get_source(self, a: str) -> Any: ...
|
||||
def is_package(self, a: str) -> bool: ...
|
||||
def load_module(self, a: str) -> Any: ...
|
||||
36
builtins/2.7/zlib.pyi
Normal file
36
builtins/2.7/zlib.pyi
Normal file
@@ -0,0 +1,36 @@
|
||||
# Stubs for zlib (Python 2.7)
|
||||
|
||||
class error(Exception): ...
|
||||
|
||||
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
|
||||
|
||||
def adler32(data: str, value: int = ...) -> int: ...
|
||||
def compress(data: str, level: int = ...) -> str: ...
|
||||
def crc32(data: str, value: int = ...) -> int: ...
|
||||
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
|
||||
|
||||
class compressobj:
|
||||
def __init__(level: int = ..., method: int = ..., wbits: int = ..., memlevel: int = ...,
|
||||
strategy: int = ...): ...
|
||||
def compress(self, data: str) -> str: ...
|
||||
def copy(self) -> _Compress: ...
|
||||
def flush(self) -> NoneType: ...
|
||||
|
||||
class decompressobj:
|
||||
def __init__(wbits: int = ...): ...
|
||||
def copy(self) -> _Compress: ...
|
||||
def decompress(self, data: str) -> str: ...
|
||||
def flush(self) -> NoneType: ...
|
||||
18
builtins/3/_bisect.pyi
Normal file
18
builtins/3/_bisect.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Stub file for the '_bisect' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def bisect(a, x, *args, **kwargs) -> long: ...
|
||||
|
||||
def bisect_left(a, x, *args, **kwargs) -> long: ...
|
||||
|
||||
def bisect_right(a, x, *args, **kwargs) -> long: ...
|
||||
|
||||
def insort(a, x, *args, **kwargs) -> None: ...
|
||||
|
||||
def insort_left(a, x, *args, **kwargs) -> None: ...
|
||||
|
||||
def insort_right(a, x, *args, **kwargs) -> None: ...
|
||||
91
builtins/3/_codecs.pyi
Normal file
91
builtins/3/_codecs.pyi
Normal file
@@ -0,0 +1,91 @@
|
||||
"""Stub file for the '_codecs' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _forget_codec(a: str) -> None: ...
|
||||
|
||||
def ascii_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def ascii_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def charmap_build(a: str) -> Any: ...
|
||||
|
||||
def charmap_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def charmap_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def decode(a, *args, **kwargs) -> Any: ...
|
||||
|
||||
def encode(a, *args, **kwargs) -> Any: ...
|
||||
|
||||
def escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def escape_encode(a, *args, **kwargs) -> tuple:
|
||||
raise OverflowError()
|
||||
|
||||
def latin_1_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def latin_1_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def lookup(a: str) -> Any: ...
|
||||
|
||||
def lookup_error(a: str) -> Any: ...
|
||||
|
||||
def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def readbuffer_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def register(*args, **kwargs) -> None: ...
|
||||
|
||||
def register_error(a: str, b) -> None: ...
|
||||
|
||||
def unicode_escape_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_escape_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_internal_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def unicode_internal_encode(a, *args, **kwargs) -> tuple:
|
||||
raise DeprecationWarning()
|
||||
raise MemoryError()
|
||||
|
||||
def utf_16_be_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_be_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_ex_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_le_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_16_le_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_be_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_be_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_ex_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_le_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_32_le_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_7_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_7_encode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_8_decode(a, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def utf_8_encode(a, *args, **kwargs) -> tuple: ...
|
||||
27
builtins/3/_heapq.pyi
Normal file
27
builtins/3/_heapq.pyi
Normal file
@@ -0,0 +1,27 @@
|
||||
"""Stub file for the '_heapq' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def heapify(*args, **kwargs) -> None:
|
||||
raise TypeError()
|
||||
|
||||
def heappop(*args, **kwargs) -> Any:
|
||||
raise IndexError()
|
||||
raise TypeError()
|
||||
|
||||
def heappush(*args, **kwargs) -> None:
|
||||
raise TypeError()
|
||||
|
||||
def heappushpop(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
|
||||
def heapreplace(*args, **kwargs) -> Any:
|
||||
raise IndexError()
|
||||
raise TypeError()
|
||||
|
||||
def nlargest(a: int, b) -> List[object]: ...
|
||||
|
||||
def nsmallest(a: int, b) -> List[object]: ...
|
||||
12
builtins/3/_json.pyi
Normal file
12
builtins/3/_json.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Stub file for the '_json' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def encode_basestring_ascii(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
|
||||
def scanstring(a, b: int, *args, **kwargs) -> tuple:
|
||||
raise TypeError()
|
||||
108
builtins/3/_operator.pyi
Normal file
108
builtins/3/_operator.pyi
Normal file
@@ -0,0 +1,108 @@
|
||||
"""Stub file for the '_operator' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _compare_digest(a, b) -> bool:
|
||||
raise BufferError()
|
||||
raise TypeError()
|
||||
|
||||
def abs(*args, **kwargs) -> Any: ...
|
||||
|
||||
def add(*args, **kwargs) -> Any: ...
|
||||
|
||||
def and_(*args, **kwargs) -> Any: ...
|
||||
|
||||
def concat(*args, **kwargs) -> Any: ...
|
||||
|
||||
def contains(*args, **kwargs) -> bool: ...
|
||||
|
||||
def countOf(*args, **kwargs) -> long: ...
|
||||
|
||||
def delitem(*args, **kwargs) -> None: ...
|
||||
|
||||
def eq(*args, **kwargs) -> Any: ...
|
||||
|
||||
def floordiv(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ge(*args, **kwargs) -> Any: ...
|
||||
|
||||
def getitem(*args, **kwargs) -> Any: ...
|
||||
|
||||
def gt(*args, **kwargs) -> Any: ...
|
||||
|
||||
def iadd(*args, **kwargs) -> Any: ...
|
||||
|
||||
def iand(*args, **kwargs) -> Any: ...
|
||||
|
||||
def iconcat(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ifloordiv(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ilshift(*args, **kwargs) -> Any: ...
|
||||
|
||||
def imod(*args, **kwargs) -> Any: ...
|
||||
|
||||
def imul(*args, **kwargs) -> Any: ...
|
||||
|
||||
def index(*args, **kwargs) -> Any: ...
|
||||
|
||||
def indexOf(*args, **kwargs) -> long: ...
|
||||
|
||||
def inv(*args, **kwargs) -> Any: ...
|
||||
|
||||
def invert(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ior(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ipow(*args, **kwargs) -> Any: ...
|
||||
|
||||
def irshift(*args, **kwargs) -> Any: ...
|
||||
|
||||
def is_(*args, **kwargs) -> bool: ...
|
||||
|
||||
def is_not(*args, **kwargs) -> bool: ...
|
||||
|
||||
def isub(*args, **kwargs) -> Any: ...
|
||||
|
||||
def itruediv(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ixor(*args, **kwargs) -> Any: ...
|
||||
|
||||
def le(*args, **kwargs) -> Any: ...
|
||||
|
||||
def length_hint(a, *args, **kwargs) -> long: ...
|
||||
|
||||
def lshift(*args, **kwargs) -> Any: ...
|
||||
|
||||
def lt(*args, **kwargs) -> Any: ...
|
||||
|
||||
def mod(*args, **kwargs) -> Any: ...
|
||||
|
||||
def mul(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ne(*args, **kwargs) -> Any: ...
|
||||
|
||||
def neg(*args, **kwargs) -> Any: ...
|
||||
|
||||
def not_(*args, **kwargs) -> bool: ...
|
||||
|
||||
def or_(*args, **kwargs) -> Any: ...
|
||||
|
||||
def pos(*args, **kwargs) -> Any: ...
|
||||
|
||||
def pow(*args, **kwargs) -> Any: ...
|
||||
|
||||
def rshift(*args, **kwargs) -> Any: ...
|
||||
|
||||
def setitem(*args, **kwargs) -> None: ...
|
||||
|
||||
def sub(*args, **kwargs) -> Any: ...
|
||||
|
||||
def truediv(*args, **kwargs) -> Any: ...
|
||||
|
||||
def truth(*args, **kwargs) -> bool: ...
|
||||
|
||||
def xor(*args, **kwargs) -> Any: ...
|
||||
32
builtins/3/_stat.pyi
Normal file
32
builtins/3/_stat.pyi
Normal file
@@ -0,0 +1,32 @@
|
||||
"""Stub file for the '_stat' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def S_IFMT(*args, **kwargs) -> long: ...
|
||||
|
||||
def S_IMODE(*args, **kwargs) -> long: ...
|
||||
|
||||
def S_ISBLK(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISCHR(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISDIR(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISDOOR(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISFIFO(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISLNK(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISPORT(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISREG(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISSOCK(*args, **kwargs) -> bool: ...
|
||||
|
||||
def S_ISWHT(*args, **kwargs) -> bool: ...
|
||||
|
||||
def filemode(*args, **kwargs) -> unicode: ...
|
||||
26
builtins/3/_tracemalloc.pyi
Normal file
26
builtins/3/_tracemalloc.pyi
Normal file
@@ -0,0 +1,26 @@
|
||||
"""Stub file for the '_tracemalloc' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _get_object_traceback(*args, **kwargs) -> Any: ...
|
||||
|
||||
def _get_traces() -> Any:
|
||||
raise MemoryError()
|
||||
|
||||
def clear_traces() -> None: ...
|
||||
|
||||
def get_traceback_limit() -> long: ...
|
||||
|
||||
def get_traced_memory() -> tuple: ...
|
||||
|
||||
def get_tracemalloc_memory() -> Any: ...
|
||||
|
||||
def is_tracing() -> bool: ...
|
||||
|
||||
def start(*args, **kwargs) -> None:
|
||||
raise ValueError()
|
||||
|
||||
def stop() -> None: ...
|
||||
12
builtins/3/_warnings.pyi
Normal file
12
builtins/3/_warnings.pyi
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Stub file for the '_warnings' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _filters_mutated() -> None: ...
|
||||
|
||||
def warn(message, *args, **kwargs) -> None: ...
|
||||
|
||||
def warn_explicit(message, category, filename: str, lineno: int, *args, **kwargs) -> None: ...
|
||||
18
builtins/3/atexit.pyi
Normal file
18
builtins/3/atexit.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Stub file for the 'atexit' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def _clear() -> None: ...
|
||||
|
||||
def _ncallbacks() -> long: ...
|
||||
|
||||
def _run_exitfuncs() -> None: ...
|
||||
|
||||
def register(*args, **kwargs) -> Any:
|
||||
raise MemoryError()
|
||||
raise TypeError()
|
||||
|
||||
def unregister(*args, **kwargs) -> None: ...
|
||||
50
builtins/3/cmath.pyi
Normal file
50
builtins/3/cmath.pyi
Normal file
@@ -0,0 +1,50 @@
|
||||
"""Stub file for the 'cmath' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def acos(*args, **kwargs) -> complex: ...
|
||||
|
||||
def acosh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def asin(*args, **kwargs) -> complex: ...
|
||||
|
||||
def asinh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def atan(*args, **kwargs) -> complex: ...
|
||||
|
||||
def atanh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def cos(*args, **kwargs) -> complex: ...
|
||||
|
||||
def cosh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def exp(*args, **kwargs) -> complex: ...
|
||||
|
||||
def isfinite(a: complex) -> bool: ...
|
||||
|
||||
def isinf(a: complex) -> bool: ...
|
||||
|
||||
def isnan(a: complex) -> bool: ...
|
||||
|
||||
def log(a: complex, *args, **kwargs) -> complex: ...
|
||||
|
||||
def log10(*args, **kwargs) -> complex: ...
|
||||
|
||||
def phase(a: complex) -> float: ...
|
||||
|
||||
def polar(a: complex) -> tuple: ...
|
||||
|
||||
def rect(a: float, b: float) -> complex: ...
|
||||
|
||||
def sin(*args, **kwargs) -> complex: ...
|
||||
|
||||
def sinh(*args, **kwargs) -> complex: ...
|
||||
|
||||
def sqrt(*args, **kwargs) -> complex: ...
|
||||
|
||||
def tan(*args, **kwargs) -> complex: ...
|
||||
|
||||
def tanh(*args, **kwargs) -> complex: ...
|
||||
15
builtins/3/marshal.pyi
Normal file
15
builtins/3/marshal.pyi
Normal file
@@ -0,0 +1,15 @@
|
||||
"""Stub file for the 'marshal' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def dump(a, b, *args, **kwargs) -> Any: ...
|
||||
|
||||
def dumps(a, *args, **kwargs) -> Any: ...
|
||||
|
||||
def load(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
|
||||
def loads(a) -> Any: ...
|
||||
95
builtins/3/math.pyi
Normal file
95
builtins/3/math.pyi
Normal file
@@ -0,0 +1,95 @@
|
||||
"""Stub file for the 'math' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def acos(*args, **kwargs) -> Any: ...
|
||||
|
||||
def acosh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def asin(*args, **kwargs) -> Any: ...
|
||||
|
||||
def asinh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def atan(*args, **kwargs) -> Any: ...
|
||||
|
||||
def atan2(*args, **kwargs) -> float: ...
|
||||
|
||||
def atanh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def ceil(*args, **kwargs) -> Any: ...
|
||||
|
||||
def copysign(*args, **kwargs) -> float: ...
|
||||
|
||||
def cos(*args, **kwargs) -> Any: ...
|
||||
|
||||
def cosh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def degrees(*args, **kwargs) -> float: ...
|
||||
|
||||
def erf(*args, **kwargs) -> float: ...
|
||||
|
||||
def erfc(*args, **kwargs) -> float: ...
|
||||
|
||||
def exp(*args, **kwargs) -> Any: ...
|
||||
|
||||
def expm1(*args, **kwargs) -> Any: ...
|
||||
|
||||
def fabs(*args, **kwargs) -> Any: ...
|
||||
|
||||
def factorial(*args, **kwargs) -> long:
|
||||
raise ValueError()
|
||||
|
||||
def floor(*args, **kwargs) -> Any: ...
|
||||
|
||||
def fmod(*args, **kwargs) -> float: ...
|
||||
|
||||
def frexp(*args, **kwargs) -> tuple: ...
|
||||
|
||||
def fsum(*args, **kwargs) -> float:
|
||||
raise OverflowError()
|
||||
raise ValueError()
|
||||
|
||||
def gamma(*args, **kwargs) -> float: ...
|
||||
|
||||
def hypot(*args, **kwargs) -> float: ...
|
||||
|
||||
def isfinite(*args, **kwargs) -> bool: ...
|
||||
|
||||
def isinf(*args, **kwargs) -> bool: ...
|
||||
|
||||
def isnan(*args, **kwargs) -> bool: ...
|
||||
|
||||
def ldexp(a: float, b) -> float:
|
||||
raise TypeError()
|
||||
|
||||
def lgamma(*args, **kwargs) -> float: ...
|
||||
|
||||
def log(*args, **kwargs) -> float: ...
|
||||
|
||||
def log10(*args, **kwargs) -> float: ...
|
||||
|
||||
def log1p(*args, **kwargs) -> Any: ...
|
||||
|
||||
def log2(*args, **kwargs) -> float: ...
|
||||
|
||||
def modf(*args, **kwargs) -> tuple: ...
|
||||
|
||||
def pow(*args, **kwargs) -> float: ...
|
||||
|
||||
def radians(*args, **kwargs) -> float: ...
|
||||
|
||||
def sin(*args, **kwargs) -> Any: ...
|
||||
|
||||
def sinh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def sqrt(*args, **kwargs) -> Any: ...
|
||||
|
||||
def tan(*args, **kwargs) -> Any: ...
|
||||
|
||||
def tanh(*args, **kwargs) -> Any: ...
|
||||
|
||||
def trunc(*args, **kwargs) -> Any:
|
||||
raise TypeError()
|
||||
94
builtins/3/signal.pyi
Normal file
94
builtins/3/signal.pyi
Normal file
@@ -0,0 +1,94 @@
|
||||
"""Stub file for the 'signal' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
ITIMER_PROF = ... # type: long
|
||||
ITIMER_REAL = ... # type: long
|
||||
ITIMER_VIRTUAL = ... # type: long
|
||||
ItimerError = ... # type: object
|
||||
NSIG = ... # type: long
|
||||
SIGABRT = ... # type: long
|
||||
SIGALRM = ... # type: long
|
||||
SIGBUS = ... # type: long
|
||||
SIGCHLD = ... # type: long
|
||||
SIGCLD = ... # type: long
|
||||
SIGCONT = ... # type: long
|
||||
SIGFPE = ... # type: long
|
||||
SIGHUP = ... # type: long
|
||||
SIGILL = ... # type: long
|
||||
SIGINT = ... # type: long
|
||||
SIGIO = ... # type: long
|
||||
SIGIOT = ... # type: long
|
||||
SIGKILL = ... # type: long
|
||||
SIGPIPE = ... # type: long
|
||||
SIGPOLL = ... # type: long
|
||||
SIGPROF = ... # type: long
|
||||
SIGPWR = ... # type: long
|
||||
SIGQUIT = ... # type: long
|
||||
SIGRTMAX = ... # type: long
|
||||
SIGRTMIN = ... # type: long
|
||||
SIGSEGV = ... # type: long
|
||||
SIGSTOP = ... # type: long
|
||||
SIGSYS = ... # type: long
|
||||
SIGTERM = ... # type: long
|
||||
SIGTRAP = ... # type: long
|
||||
SIGTSTP = ... # type: long
|
||||
SIGTTIN = ... # type: long
|
||||
SIGTTOU = ... # type: long
|
||||
SIGURG = ... # type: long
|
||||
SIGUSR1 = ... # type: long
|
||||
SIGUSR2 = ... # type: long
|
||||
SIGVTALRM = ... # type: long
|
||||
SIGWINCH = ... # type: long
|
||||
SIGXCPU = ... # type: long
|
||||
SIGXFSZ = ... # type: long
|
||||
SIG_DFL = ... # type: long
|
||||
SIG_IGN = ... # type: long
|
||||
|
||||
def alarm(a: int) -> long: ...
|
||||
|
||||
def default_int_handler(*args, **kwargs) -> Any:
|
||||
raise KeyboardInterrupt()
|
||||
|
||||
def getitimer(a: int) -> tuple: ...
|
||||
|
||||
def getsignal(a: int) -> None:
|
||||
raise ValueError()
|
||||
|
||||
def pause() -> None: ...
|
||||
|
||||
def pthread_kill(a: int, b: int) -> None:
|
||||
raise OSError()
|
||||
|
||||
def pthread_sigmask(a: int, b) -> Any:
|
||||
raise OSError()
|
||||
|
||||
def set_wakeup_fd(a: int) -> long:
|
||||
raise ValueError()
|
||||
|
||||
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: ...
|
||||
|
||||
def siginterrupt(a: int, b: int) -> None:
|
||||
raise OSError()
|
||||
raise ValueError()
|
||||
|
||||
def signal(a: int, b) -> None:
|
||||
raise OSError()
|
||||
raise TypeError()
|
||||
raise ValueError()
|
||||
|
||||
def sigpending() -> Any:
|
||||
raise OSError()
|
||||
|
||||
def sigtimedwait(a, b) -> Any:
|
||||
raise OSError()
|
||||
raise ValueError()
|
||||
|
||||
def sigwait(a) -> long:
|
||||
raise OSError()
|
||||
|
||||
def sigwaitinfo(a) -> tuple:
|
||||
raise OSError()
|
||||
50
builtins/3/time.pyi
Normal file
50
builtins/3/time.pyi
Normal file
@@ -0,0 +1,50 @@
|
||||
"""Stub file for the 'time' module."""
|
||||
# This is an autogenerated file. It serves as a starting point
|
||||
# for a more precise manual annotation of this module.
|
||||
# Feel free to edit the source below, but remove this header when you do.
|
||||
|
||||
from typing import Any, List, Tuple, Dict, Generic
|
||||
|
||||
def asctime(*args, **kwargs) -> unicode: ...
|
||||
|
||||
def clock() -> float: ...
|
||||
|
||||
def clock_getres(a: int) -> float:
|
||||
raise IOError()
|
||||
|
||||
def clock_gettime(a: int) -> float:
|
||||
raise IOError()
|
||||
|
||||
def clock_settime(a: int, b) -> None:
|
||||
raise IOError()
|
||||
|
||||
def ctime(*args, **kwargs) -> unicode: ...
|
||||
|
||||
def get_clock_info(a: str) -> Any:
|
||||
raise ValueError()
|
||||
|
||||
def gmtime(*args, **kwargs) -> tuple:
|
||||
raise OSError()
|
||||
|
||||
def localtime(*args, **kwargs) -> tuple: ...
|
||||
|
||||
def mktime(*args, **kwargs) -> float:
|
||||
raise OverflowError()
|
||||
|
||||
def monotonic() -> float: ...
|
||||
|
||||
def perf_counter() -> float: ...
|
||||
|
||||
def process_time() -> float: ...
|
||||
|
||||
def sleep(a: float) -> None:
|
||||
raise ValueError()
|
||||
|
||||
def strftime(a: str, *args, **kwargs) -> unicode:
|
||||
raise MemoryError()
|
||||
|
||||
def strptime(*args, **kwargs) -> Any: ...
|
||||
|
||||
def time() -> float: ...
|
||||
|
||||
def tzset() -> None: ...
|
||||
Reference in New Issue
Block a user