Add Python 3 modules, and more Python 2 modules.

Also, sort names alphabetically and add module docstrings.
This commit is contained in:
Matthias Kramm
2015-03-24 15:33:39 -07:00
parent 231d854ef3
commit c2c162a723
39 changed files with 1452 additions and 507 deletions

View File

@@ -1,10 +1,11 @@
"""Stub file for the '_bisect' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def bisect_left(a, x, *args, **kwargs) -> int: pass
def bisect(a, x, *args, **kwargs) -> int: pass
def insort_right(a, x, *args, **kwargs) -> NoneType: pass
def bisect_left(a, x, *args, **kwargs) -> int: pass
def bisect_right(a, x, *args, **kwargs) -> int: pass
@@ -12,4 +13,4 @@ def insort(a, x, *args, **kwargs) -> NoneType: pass
def insort_left(a, x, *args, **kwargs) -> NoneType: pass
def bisect(a, x, *args, **kwargs) -> int: pass
def insort_right(a, x, *args, **kwargs) -> NoneType: pass

86
python2/_codecs.py Normal file
View File

@@ -0,0 +1,86 @@
"""Stub file for the '_codecs' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def ascii_decode(a, *args, **kwargs) -> tuple: pass
def ascii_encode(a, *args, **kwargs) -> tuple: pass
def charbuffer_encode(*args, **kwargs) -> tuple: pass
def charmap_build(a: str) -> object: pass
def charmap_decode(a, *args, **kwargs) -> tuple: pass
def charmap_encode(a, *args, **kwargs) -> tuple: pass
def decode(a, *args, **kwargs) -> object: pass
def encode(a, *args, **kwargs) -> object: pass
def escape_decode(a, *args, **kwargs) -> tuple: pass
def escape_encode(a: str, *args, **kwargs) -> tuple: pass
def latin_1_decode(a, *args, **kwargs) -> tuple: pass
def latin_1_encode(a, *args, **kwargs) -> tuple: pass
def lookup(a: str) -> object: pass
def lookup_error(a: str) -> object: pass
def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: pass
def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: pass
def readbuffer_encode(a, *args, **kwargs) -> tuple: pass
def register(*args, **kwargs) -> NoneType: pass
def register_error(a: str, b) -> NoneType: pass
def unicode_escape_decode(a, *args, **kwargs) -> tuple: pass
def unicode_escape_encode(a, *args, **kwargs) -> tuple: pass
def unicode_internal_decode(a, *args, **kwargs) -> tuple: pass
def unicode_internal_encode(a, *args, **kwargs) -> tuple: pass
def utf_16_be_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_be_encode(a, *args, **kwargs) -> tuple: pass
def utf_16_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_encode(a, *args, **kwargs) -> tuple: pass
def utf_16_ex_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_le_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_le_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_be_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_be_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_ex_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_le_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_le_encode(a, *args, **kwargs) -> tuple: pass
def utf_7_decode(a, *args, **kwargs) -> tuple: pass
def utf_7_encode(a, *args, **kwargs) -> tuple: pass
def utf_8_decode(a, *args, **kwargs) -> tuple: pass
def utf_8_encode(a, *args, **kwargs) -> tuple: pass

39
python2/_collections.py Normal file
View File

@@ -0,0 +1,39 @@
"""Stub file for the '_collections' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
class defaultdict(object):
def __copy__() -> object: pass
def __missing__(*args, **kwargs) -> object:
raise KeyError()
def __reduce__() -> tuple: pass
def copy() -> object: pass
class deque(object):
def __copy__() -> object: pass
def __reduce__() -> tuple: pass
def __reversed__() -> object: pass
def __sizeof__() -> long: pass
def append(*args, **kwargs) -> NoneType: pass
def appendleft(*args, **kwargs) -> NoneType: pass
def clear() -> NoneType: pass
def count(*args, **kwargs) -> int:
raise RuntimeError()
def extend(*args, **kwargs) -> NoneType: pass
def extendleft(*args, **kwargs) -> NoneType: pass
def pop() -> object:
raise IndexError()
def popleft() -> object:
raise IndexError()
def remove(*args, **kwargs) -> NoneType:
raise ValueError()
raise IndexError()
def reverse() -> NoneType: pass
def rotate(*args, **kwargs) -> NoneType: pass
class deque_iterator(object):
def __length_hint__() -> int: pass
class deque_reverse_iterator(object):
def __length_hint__() -> int: pass

View File

@@ -1,3 +1,4 @@
"""Stub file for the '_functools' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.

View File

@@ -1,24 +1,25 @@
"""Stub file for the '_heapq' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def heappushpop(*args, **kwargs) -> object:
def heapify(*args, **kwargs) -> NoneType:
raise TypeError()
def heappop(*args, **kwargs) -> object:
raise TypeError()
raise IndexError()
raise TypeError()
def nlargest(a: int, b) -> List[object]: pass
def heapreplace(*args, **kwargs) -> object:
raise IndexError()
raise TypeError()
def heapify(*args, **kwargs) -> NoneType:
raise TypeError()
def heappush(*args, **kwargs) -> NoneType:
raise TypeError()
def heappushpop(*args, **kwargs) -> object:
raise TypeError()
def heapreplace(*args, **kwargs) -> object:
raise TypeError()
raise IndexError()
def nlargest(a: int, b) -> List[object]: pass
def nsmallest(a: int, b) -> List[object]: pass

View File

@@ -1,15 +1,16 @@
"""Stub file for the '_hotshot' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def profiler(a: str, *args, **kwargs) -> object:
raise IOError()
def coverage(a: str) -> object: pass
def logreader(a: str) -> LogReaderType:
raise IOError()
raise RuntimeError()
raise IOError()
def profiler(a: str, *args, **kwargs) -> object:
raise IOError()
def resolution() -> tuple: pass

17
python2/_json.py Normal file
View File

@@ -0,0 +1,17 @@
"""Stub file for the '_json' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def encode_basestring_ascii(*args, **kwargs) -> str:
raise TypeError()
def scanstring(a, b, *args, **kwargs) -> tuple:
raise TypeError()
class Encoder(object):
pass
class Scanner(object):
pass

18
python2/_random.py Normal file
View File

@@ -0,0 +1,18 @@
"""Stub file for the '_random' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
class Random(object):
def getrandbits(a: int) -> object:
raise ValueError()
raise MemoryError()
def getstate() -> tuple: pass
def jumpahead(*args, **kwargs) -> NoneType:
raise TypeError()
def random() -> float: pass
def seed(*args, **kwargs) -> NoneType:
raise MemoryError()
def setstate(*args, **kwargs) -> NoneType:
raise TypeError()
raise ValueError()

View File

@@ -1,49 +1,50 @@
"""Stub file for the '_sre' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
CODESIZE = Undefined(int)
MAGIC = Undefined(int)
MAXREPEAT = Undefined(long)
CODESIZE = Undefined(int)
copyright = Undefined(str)
def getlower(a: int, b: int) -> int: pass
def compile(a, b: int, c, *args, **kwargs) -> SRE_Pattern:
raise OverflowError()
def getcodesize() -> int: pass
def getlower(a: int, b: int) -> int: pass
class SRE_Match(object):
def group(*args, **kwargs) -> tuple: pass
def start(*args, **kwargs) -> int:
raise IndexError()
def __copy__() -> object:
raise TypeError()
def __deepcopy__(*args, **kwargs) -> object:
raise TypeError()
def end(*args, **kwargs) -> int:
raise IndexError()
def expand(*args, **kwargs) -> object: pass
def group(*args, **kwargs) -> tuple: pass
def groupdict(*args, **kwargs) -> dict: pass
def groups(*args, **kwargs) -> tuple: pass
def span(*args, **kwargs) -> tuple:
raise IndexError()
def groups(*args, **kwargs) -> tuple: pass
def groupdict(*args, **kwargs) -> dict: pass
def expand(*args, **kwargs) -> object: pass
def __copy__() -> object:
raise TypeError()
def __deepcopy__(*args, **kwargs) -> object:
raise TypeError()
def start(*args, **kwargs) -> int:
raise IndexError()
class SRE_Pattern(object):
def match(pattern, *args, **kwargs) -> object: pass
def search(pattern, *args, **kwargs) -> object: pass
def sub(repl, string, *args, **kwargs) -> tuple: pass
def subn(repl, string, *args, **kwargs) -> tuple: pass
def split(source, *args, **kwargs) -> List[NoneType]: pass
def findall(source, *args, **kwargs) -> List[tuple]: pass
def finditer(*args, **kwargs) -> callable_iterator: pass
def scanner(a, *args, **kwargs) -> SRE_Scanner: pass
def __copy__() -> object:
raise TypeError()
def __deepcopy__(*args, **kwargs) -> object:
raise TypeError()
def findall(source, *args, **kwargs) -> List[tuple]: pass
def finditer(*args, **kwargs) -> callable_iterator: pass
def match(pattern, *args, **kwargs) -> object: pass
def scanner(a, *args, **kwargs) -> SRE_Scanner: pass
def search(pattern, *args, **kwargs) -> object: pass
def split(source, *args, **kwargs) -> List[NoneType]: pass
def sub(repl, string, *args, **kwargs) -> tuple: pass
def subn(repl, string, *args, **kwargs) -> tuple: pass
class SRE_Scanner(object):
def match() -> object: pass

27
python2/_struct.py Normal file
View File

@@ -0,0 +1,27 @@
"""Stub file for the '_struct' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _clearcache() -> NoneType: pass
def calcsize(*args, **kwargs) -> int: pass
def pack(*args, **kwargs) -> str:
raise TypeError()
def pack_into(*args, **kwargs) -> NoneType:
raise TypeError()
def unpack(*args, **kwargs) -> tuple: pass
def unpack_from(*args, **kwargs) -> tuple:
raise TypeError()
class Struct(object):
def __sizeof__() -> long: pass
def pack(*args, **kwargs) -> str: pass
def pack_into(*args, **kwargs) -> NoneType: pass
def unpack(a) -> tuple: pass
def unpack_from(*args, **kwargs) -> tuple: pass

View File

@@ -1,30 +1,34 @@
"""Stub file for the 'array' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
class array(object):
def __copy__() -> object: pass
def __deepcopy__(*args, **kwargs) -> object: pass
def __reduce__() -> tuple:
raise AttributeError()
def __sizeof__() -> long: pass
def append(*args, **kwargs) -> NoneType: pass
def buffer_info() -> tuple: pass
def byteswap() -> NoneType:
raise RuntimeError()
def __copy__() -> object: pass
def count(*args, **kwargs) -> int: pass
def __deepcopy__(*args, **kwargs) -> object: pass
def extend(*args, **kwargs) -> NoneType: pass
def fromfile(a, b: int) -> NoneType:
raise EOFError()
raise TypeError()
raise IOError()
raise MemoryError()
raise TypeError()
raise EOFError()
def fromlist(*args, **kwargs) -> NoneType:
raise MemoryError()
raise TypeError()
def fromstring(a: Nothing) -> NoneType:
raise MemoryError()
def fromstring(a) -> NoneType:
raise ValueError()
raise MemoryError()
def fromunicode(a: str) -> NoneType:
raise MemoryError()
raise ValueError()
raise MemoryError()
def index(*args, **kwargs) -> int:
raise ValueError()
def insert(a: int, b) -> NoneType: pass
@@ -32,14 +36,12 @@ class array(object):
raise IndexError()
def read(*args, **kwargs) -> NoneType:
raise DeprecationWarning()
def __reduce__() -> tuple:
raise AttributeError()
def remove(*args, **kwargs) -> NoneType:
raise ValueError()
def reverse() -> NoneType: pass
def tofile(*args, **kwargs) -> NoneType:
raise IOError()
raise TypeError()
raise IOError()
def tolist() -> list: pass
def tostring() -> str:
raise MemoryError()
@@ -47,7 +49,6 @@ class array(object):
raise ValueError()
def write(*args, **kwargs) -> NoneType:
raise DeprecationWarning()
def __sizeof__() -> long: pass
class arrayiterator(object):
pass

41
python2/cStringIO.py Normal file
View File

@@ -0,0 +1,41 @@
"""Stub file for the 'cStringIO' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
InputType = Undefined(StringI)
OutputType = Undefined(StringO)
cStringIO_CAPI = Undefined(object)
def StringIO(*args, **kwargs) -> object: pass
class StringI(object):
def close() -> NoneType: pass
def flush() -> NoneType: pass
def getvalue(*args, **kwargs) -> str: pass
def isatty() -> bool: pass
def read(*args, **kwargs) -> str: pass
def readline(*args, **kwargs) -> str: pass
def readlines(*args, **kwargs) -> List[str]: pass
def reset() -> NoneType: pass
def seek(a: int, *args, **kwargs) -> NoneType: pass
def tell() -> int: pass
def truncate(*args, **kwargs) -> NoneType:
raise IOError()
class StringO(object):
def close() -> NoneType: pass
def flush() -> NoneType: pass
def getvalue(*args, **kwargs) -> str: pass
def isatty() -> bool: pass
def read(*args, **kwargs) -> str: pass
def readline(*args, **kwargs) -> str: pass
def readlines(*args, **kwargs) -> List[str]: pass
def reset() -> NoneType: pass
def seek(a: int, *args, **kwargs) -> NoneType: pass
def tell() -> int: pass
def truncate(*args, **kwargs) -> NoneType:
raise IOError()
def write(a) -> NoneType: pass
def writelines(*args, **kwargs) -> NoneType: pass

View File

@@ -1,18 +1,15 @@
"""Stub file for the 'cmath' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def polar(a: complex) -> tuple: pass
def acos(*args, **kwargs) -> complex: pass
def acosh(*args, **kwargs) -> complex: pass
def isnan(a: complex) -> bool: pass
def asin(*args, **kwargs) -> complex: pass
def sqrt(*args, **kwargs) -> complex: pass
def rect(a: float, b: float) -> complex: pass
def asinh(*args, **kwargs) -> complex: pass
def atan(*args, **kwargs) -> complex: pass
@@ -20,11 +17,13 @@ def atanh(*args, **kwargs) -> complex: pass
def cos(*args, **kwargs) -> complex: pass
def tanh(*args, **kwargs) -> complex: pass
def cosh(*args, **kwargs) -> complex: pass
def sinh(*args, **kwargs) -> complex: pass
def exp(*args, **kwargs) -> complex: pass
def isinf(a: complex) -> bool: pass
def isnan(a: complex) -> bool: pass
def log(a: complex, *args, **kwargs) -> complex: pass
@@ -32,14 +31,16 @@ def log10(*args, **kwargs) -> complex: pass
def phase(a: complex) -> float: pass
def isinf(a: complex) -> bool: pass
def polar(a: complex) -> tuple: pass
def exp(*args, **kwargs) -> complex: pass
def tan(*args, **kwargs) -> complex: pass
def rect(a: float, b: float) -> complex: pass
def sin(*args, **kwargs) -> complex: pass
def asin(*args, **kwargs) -> complex: pass
def sinh(*args, **kwargs) -> complex: pass
def asinh(*args, **kwargs) -> complex: pass
def sqrt(*args, **kwargs) -> complex: pass
def tan(*args, **kwargs) -> complex: pass
def tanh(*args, **kwargs) -> complex: pass

View File

@@ -1,73 +1,74 @@
"""Stub file for the 'datetime' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
min = Undefined(object)
max = Undefined(object)
min = Undefined(object)
resolution = Undefined(object)
class date(object):
def __format__(a) -> unicode:
raise ValueError()
def __reduce__() -> tuple: pass
def ctime() -> str: pass
def fromordinal(a: int) -> object:
raise ValueError()
def fromtimestamp(a: float) -> object: pass
def isocalendar() -> tuple: pass
def isoformat() -> str: pass
def isoweekday() -> int: pass
def replace(*args, **kwargs) -> object: pass
def strftime(format) -> object: pass
def timetuple() -> object: pass
def today() -> object: pass
def toordinal() -> int: pass
def weekday() -> int: pass
class datetime(object):
def __reduce__() -> tuple: pass
def astimezone(tz) -> object:
raise ValueError()
def combine(date, time) -> object: pass
def ctime() -> str: pass
def date() -> object: pass
def dst() -> object: pass
def fromtimestamp(timestamp: float, *args, **kwargs) -> object: pass
def isoformat(*args, **kwargs) -> str: pass
def now(*args, **kwargs) -> object: pass
def replace(*args, **kwargs) -> object: pass
def strptime(a: str, b: str) -> object:
raise ValueError()
def time() -> object: pass
def timetuple() -> object: pass
def timetz() -> object: pass
def tzname() -> object: pass
def utcfromtimestamp(a: float) -> object: pass
def utcnow() -> object: pass
def utcoffset() -> object: pass
def utctimetuple() -> object:
raise OverflowError()
class time(object):
def __format__(a) -> unicode:
raise ValueError()
def __reduce__() -> tuple: pass
def dst() -> object: pass
def isoformat() -> str: pass
def replace(*args, **kwargs) -> object: pass
def strftime(format) -> object: pass
def tzname() -> object: pass
def utcoffset() -> object: pass
class timedelta(object):
def __reduce__() -> tuple: pass
def total_seconds() -> int: pass
class tzinfo(object):
def tzname(*args, **kwargs) -> object: pass
def utcoffset(*args, **kwargs) -> object: pass
def __reduce__() -> tuple: pass
def dst(*args, **kwargs) -> object: pass
def fromutc(*args, **kwargs) -> object:
raise TypeError()
raise ValueError()
def __reduce__() -> tuple: pass
class time(object):
def isoformat() -> str: pass
def strftime(format: Nothing) -> object: pass
def __format__(a) -> unicode:
raise ValueError()
def utcoffset() -> object: pass
def tzname() -> object: pass
def dst() -> object: pass
def replace(*args, **kwargs) -> object: pass
def __reduce__() -> tuple: pass
class timedelta(object):
def total_seconds() -> int: pass
def __reduce__() -> tuple: pass
class datetime(object):
def now(*args, **kwargs) -> object: pass
def utcnow() -> object: pass
def fromtimestamp(timestamp: float, *args, **kwargs) -> object: pass
def utcfromtimestamp(a: float) -> object: pass
def strptime(a: str, b: str) -> object:
raise ValueError()
def combine(date, time) -> object: pass
def date() -> object: pass
def time() -> object: pass
def timetz() -> object: pass
def ctime() -> str: pass
def timetuple() -> object: pass
def utctimetuple() -> object:
raise OverflowError()
def isoformat(*args, **kwargs) -> str: pass
def utcoffset() -> object: pass
def tzname() -> object: pass
def dst() -> object: pass
def replace(*args, **kwargs) -> object: pass
def astimezone(tz) -> object:
raise ValueError()
def __reduce__() -> tuple: pass
class date(object):
def fromtimestamp(a: float) -> object: pass
def fromordinal(a: int) -> object:
raise ValueError()
def today() -> object: pass
def ctime() -> str: pass
def strftime(format: Nothing) -> object: pass
def __format__(a) -> unicode:
raise ValueError()
def timetuple() -> object: pass
def isocalendar() -> tuple: pass
def isoformat() -> str: pass
def isoweekday() -> int: pass
def toordinal() -> int: pass
def weekday() -> int: pass
def replace(*args, **kwargs) -> object: pass
def __reduce__() -> tuple: pass
def tzname(*args, **kwargs) -> object: pass
def utcoffset(*args, **kwargs) -> object: pass

View File

@@ -1,30 +1,31 @@
"""Stub file for the 'gc' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def set_debug(a: int) -> NoneType: pass
def get_threshold() -> tuple: pass
def collect(*args, **kwargs) -> int:
raise ValueError()
def is_tracked(*args, **kwargs) -> bool: pass
def get_referents(*args, **kwargs) -> list: pass
def isenabled() -> bool: pass
def set_threshold(a: int, *args, **kwargs) -> NoneType: pass
def get_debug() -> int: pass
def disable() -> NoneType: pass
def get_count() -> tuple: pass
def enable() -> NoneType: pass
def get_count() -> tuple: pass
def get_debug() -> int: pass
def get_objects() -> list: pass
def get_referents(*args, **kwargs) -> list: pass
def get_referrers(*args, **kwargs) -> list: pass
def get_threshold() -> tuple: pass
def is_tracked(*args, **kwargs) -> bool: pass
def isenabled() -> bool: pass
def set_debug(a: int) -> NoneType: pass
def set_threshold(a: int, *args, **kwargs) -> NoneType: pass

View File

@@ -1,87 +1,88 @@
"""Stub file for the 'math' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def acos(*args, **kwargs) -> float: pass
def ldexp(a: float, b) -> float:
raise TypeError()
def acosh(*args, **kwargs) -> float: pass
def asin(*args, **kwargs) -> float: pass
def asinh(*args, **kwargs) -> float: pass
def atan(*args, **kwargs) -> float: pass
def atan2(*args, **kwargs) -> float: pass
def atanh(*args, **kwargs) -> float: pass
def ceil(*args, **kwargs) -> float: pass
def copysign(*args, **kwargs) -> float: pass
def cos(*args, **kwargs) -> float: pass
def cosh(*args, **kwargs) -> float: pass
def degrees(*args, **kwargs) -> float: pass
def erf(*args, **kwargs) -> float: pass
def erfc(*args, **kwargs) -> float: pass
def exp(*args, **kwargs) -> float: pass
def expm1(*args, **kwargs) -> float: pass
def fabs(*args, **kwargs) -> float: pass
def factorial(*args, **kwargs) -> int:
raise ValueError()
def floor(*args, **kwargs) -> float: pass
def trunc(*args, **kwargs) -> object: pass
def fmod(*args, **kwargs) -> float: pass
def frexp(*args, **kwargs) -> tuple: pass
def fsum(*args, **kwargs) -> float:
raise OverflowError()
raise ValueError()
def fmod(*args, **kwargs) -> float: pass
def atan2(*args, **kwargs) -> float: pass
def erf(*args, **kwargs) -> float: pass
def sqrt(*args, **kwargs) -> float: pass
def tan(*args, **kwargs) -> float: pass
def pow(*args, **kwargs) -> float: pass
def copysign(*args, **kwargs) -> float: pass
def log1p(*args, **kwargs) -> float: pass
def expm1(*args, **kwargs) -> float: pass
def exp(*args, **kwargs) -> float: pass
def radians(*args, **kwargs) -> float: pass
def degrees(*args, **kwargs) -> float: pass
def asinh(*args, **kwargs) -> float: pass
def isnan(*args, **kwargs) -> bool: pass
def lgamma(*args, **kwargs) -> float: pass
def atan(*args, **kwargs) -> float: pass
def atanh(*args, **kwargs) -> float: pass
def gamma(*args, **kwargs) -> float: pass
def hypot(*args, **kwargs) -> float: pass
def ceil(*args, **kwargs) -> float: pass
def erfc(*args, **kwargs) -> float: pass
def isinf(*args, **kwargs) -> bool: pass
def fabs(*args, **kwargs) -> float: pass
def isnan(*args, **kwargs) -> bool: pass
def sinh(*args, **kwargs) -> float: pass
def ldexp(a: float, b) -> float:
raise TypeError()
def tanh(*args, **kwargs) -> float: pass
def asin(*args, **kwargs) -> float: pass
def cosh(*args, **kwargs) -> float: pass
def acosh(*args, **kwargs) -> float: pass
def modf(*args, **kwargs) -> tuple: pass
def frexp(*args, **kwargs) -> tuple: pass
def cos(*args, **kwargs) -> float: pass
def sin(*args, **kwargs) -> float: pass
def lgamma(*args, **kwargs) -> float: pass
def log(*args, **kwargs) -> float: pass
def log10(*args, **kwargs) -> float: pass
def factorial(*args, **kwargs) -> int:
raise ValueError()
def log1p(*args, **kwargs) -> float: pass
def gamma(*args, **kwargs) -> float: pass
def modf(*args, **kwargs) -> tuple: pass
def pow(*args, **kwargs) -> float: pass
def radians(*args, **kwargs) -> float: pass
def sin(*args, **kwargs) -> float: pass
def sinh(*args, **kwargs) -> float: pass
def sqrt(*args, **kwargs) -> float: pass
def tan(*args, **kwargs) -> float: pass
def tanh(*args, **kwargs) -> float: pass
def trunc(*args, **kwargs) -> object: pass

View File

@@ -1,233 +1,234 @@
"""Stub file for the 'operator' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def __xor__(*args, **kwargs) -> object: pass
def iconcat(*args, **kwargs) -> object: pass
def __ifloordiv__(*args, **kwargs) -> object: pass
def __iand__(*args, **kwargs) -> object: pass
def __mul__(*args, **kwargs) -> object: pass
def __delitem__(*args, **kwargs) -> NoneType: pass
def delslice(a, b: int, c: int) -> NoneType: pass
def sub(*args, **kwargs) -> object: pass
def iadd(*args, **kwargs) -> object: pass
def floordiv(*args, **kwargs) -> object: pass
def pos(*args, **kwargs) -> object: pass
def abs(*args, **kwargs) -> object: pass
def is_(*args, **kwargs) -> bool: pass
def ifloordiv(*args, **kwargs) -> object: pass
def __inv__(*args, **kwargs) -> object: pass
def __gt__(*args, **kwargs) -> object: pass
def __abs__(*args, **kwargs) -> object: pass
def __add__(*args, **kwargs) -> object: pass
def le(*args, **kwargs) -> object: pass
def __setitem__(*args, **kwargs) -> NoneType: pass
def imod(*args, **kwargs) -> object: pass
def lt(*args, **kwargs) -> object: pass
def __and__(*args, **kwargs) -> object: pass
def __getitem__(*args, **kwargs) -> object: pass
def __concat__(*args, **kwargs) -> object: pass
def __le__(*args, **kwargs) -> object: pass
def __contains__(*args, **kwargs) -> bool: pass
def getitem(*args, **kwargs) -> object: pass
def __iadd__(*args, **kwargs) -> object: pass
def __not__(*args, **kwargs) -> bool: pass
def __itruediv__(*args, **kwargs) -> object: pass
def __index__(*args, **kwargs) -> object: pass
def iand(*args, **kwargs) -> object: pass
def irshift(*args, **kwargs) -> object: pass
def __truediv__(*args, **kwargs) -> object: pass
def __delitem__(*args, **kwargs) -> NoneType: pass
def __delslice__(a, b: int, c: int) -> NoneType: pass
def setslice(a, b: int, c: int, d) -> NoneType: pass
def __div__(*args, **kwargs) -> object: pass
def neg(*args, **kwargs) -> object: pass
def __eq__(*args, **kwargs) -> object: pass
def __invert__(*args, **kwargs) -> object: pass
def __floordiv__(*args, **kwargs) -> object: pass
def __neg__(*args, **kwargs) -> object: pass
def __ge__(*args, **kwargs) -> object: pass
def truediv(*args, **kwargs) -> object: pass
def __getitem__(*args, **kwargs) -> object: pass
def pow(*args, **kwargs) -> object: pass
def __getslice__(a, b: int, c: int) -> object: pass
def __sub__(*args, **kwargs) -> object: pass
def __gt__(*args, **kwargs) -> object: pass
def and_(*args, **kwargs) -> object: pass
def __iadd__(*args, **kwargs) -> object: pass
def __pos__(*args, **kwargs) -> object: pass
def __iand__(*args, **kwargs) -> object: pass
def __ipow__(*args, **kwargs) -> object: pass
def __iconcat__(*args, **kwargs) -> object: pass
def repeat(a, b: int) -> object: pass
def __idiv__(*args, **kwargs) -> object: pass
def __setslice__(a, b: int, c: int, d) -> NoneType: pass
def __ifloordiv__(*args, **kwargs) -> object: pass
def isSequenceType(*args, **kwargs) -> bool: pass
def __ilshift__(*args, **kwargs) -> object: pass
def ne(*args, **kwargs) -> object: pass
def __imod__(*args, **kwargs) -> object: pass
def __imul__(*args, **kwargs) -> object: pass
def __index__(*args, **kwargs) -> object: pass
def __inv__(*args, **kwargs) -> object: pass
def __invert__(*args, **kwargs) -> object: pass
def __ior__(*args, **kwargs) -> object: pass
def __ipow__(*args, **kwargs) -> object: pass
def __irepeat__(a, b: int) -> object: pass
def __irshift__(*args, **kwargs) -> object: pass
def __isub__(*args, **kwargs) -> object: pass
def __itruediv__(*args, **kwargs) -> object: pass
def __ixor__(*args, **kwargs) -> object: pass
def __le__(*args, **kwargs) -> object: pass
def __lshift__(*args, **kwargs) -> object: pass
def __lt__(*args, **kwargs) -> object: pass
def __mod__(*args, **kwargs) -> object: pass
def __mul__(*args, **kwargs) -> object: pass
def __ne__(*args, **kwargs) -> object: pass
def __neg__(*args, **kwargs) -> object: pass
def __not__(*args, **kwargs) -> bool: pass
def __or__(*args, **kwargs) -> object: pass
def __pos__(*args, **kwargs) -> object: pass
def __pow__(*args, **kwargs) -> object: pass
def __repeat__(a, b: int) -> object: pass
def __rshift__(*args, **kwargs) -> object: pass
def __setitem__(*args, **kwargs) -> NoneType: pass
def __setslice__(a, b: int, c: int, d) -> NoneType: pass
def __sub__(*args, **kwargs) -> object: pass
def __truediv__(*args, **kwargs) -> object: pass
def __xor__(*args, **kwargs) -> object: pass
def abs(*args, **kwargs) -> object: pass
def add(*args, **kwargs) -> object: pass
def and_(*args, **kwargs) -> object: pass
def concat(*args, **kwargs) -> object: pass
def contains(*args, **kwargs) -> bool: pass
def countOf(*args, **kwargs) -> int: pass
def delitem(*args, **kwargs) -> NoneType: pass
def delslice(a, b: int, c: int) -> NoneType: pass
def div(*args, **kwargs) -> object: pass
def eq(*args, **kwargs) -> object: pass
def floordiv(*args, **kwargs) -> object: pass
def ge(*args, **kwargs) -> object: pass
def getitem(*args, **kwargs) -> object: pass
def getslice(a, b: int, c: int) -> object: pass
def gt(*args, **kwargs) -> object: pass
def iadd(*args, **kwargs) -> object: pass
def iand(*args, **kwargs) -> object: pass
def iconcat(*args, **kwargs) -> object: pass
def idiv(*args, **kwargs) -> object: pass
def ifloordiv(*args, **kwargs) -> object: pass
def ilshift(*args, **kwargs) -> object: pass
def imod(*args, **kwargs) -> object: pass
def imul(*args, **kwargs) -> object: pass
def index(*args, **kwargs) -> object: pass
def indexOf(*args, **kwargs) -> int: pass
def inv(*args, **kwargs) -> object: pass
def invert(*args, **kwargs) -> object: pass
def ior(*args, **kwargs) -> object: pass
def ipow(*args, **kwargs) -> object: pass
def irepeat(a, b: int) -> object: pass
def irshift(*args, **kwargs) -> object: pass
def isCallable(*args, **kwargs) -> bool: pass
def isMappingType(*args, **kwargs) -> bool: pass
def isNumberType(*args, **kwargs) -> bool: pass
def isSequenceType(*args, **kwargs) -> bool: pass
def is_(*args, **kwargs) -> bool: pass
def is_not(*args, **kwargs) -> bool: pass
def isub(*args, **kwargs) -> object: pass
def eq(*args, **kwargs) -> object: pass
def __ne__(*args, **kwargs) -> object: pass
def __pow__(*args, **kwargs) -> object: pass
def __eq__(*args, **kwargs) -> object: pass
def lshift(*args, **kwargs) -> object: pass
def concat(*args, **kwargs) -> object: pass
def __or__(*args, **kwargs) -> object: pass
def div(*args, **kwargs) -> object: pass
def __isub__(*args, **kwargs) -> object: pass
def setitem(*args, **kwargs) -> NoneType: pass
def index(*args, **kwargs) -> object: pass
def __contains__(*args, **kwargs) -> bool: pass
def or_(*args, **kwargs) -> object: pass
def __getslice__(a, b: int, c: int) -> object: pass
def rshift(*args, **kwargs) -> object: pass
def ipow(*args, **kwargs) -> object: pass
def ilshift(*args, **kwargs) -> object: pass
def ior(*args, **kwargs) -> object: pass
def itruediv(*args, **kwargs) -> object: pass
def ixor(*args, **kwargs) -> object: pass
def delitem(*args, **kwargs) -> NoneType: pass
def le(*args, **kwargs) -> object: pass
def irepeat(a, b: int) -> object: pass
def lshift(*args, **kwargs) -> object: pass
def __ilshift__(*args, **kwargs) -> object: pass
def xor(*args, **kwargs) -> object: pass
def countOf(*args, **kwargs) -> int: pass
def __lt__(*args, **kwargs) -> object: pass
def __rshift__(*args, **kwargs) -> object: pass
def __iconcat__(*args, **kwargs) -> object: pass
def __floordiv__(*args, **kwargs) -> object: pass
def __irepeat__(a, b: int) -> object: pass
def contains(*args, **kwargs) -> bool: pass
def __div__(*args, **kwargs) -> object: pass
def __imod__(*args, **kwargs) -> object: pass
def __concat__(*args, **kwargs) -> object: pass
def gt(*args, **kwargs) -> object: pass
def __mod__(*args, **kwargs) -> object: pass
def inv(*args, **kwargs) -> object: pass
def __ixor__(*args, **kwargs) -> object: pass
def ge(*args, **kwargs) -> object: pass
def __lshift__(*args, **kwargs) -> object: pass
def __repeat__(a, b: int) -> object: pass
def invert(*args, **kwargs) -> object: pass
def __idiv__(*args, **kwargs) -> object: pass
def __abs__(*args, **kwargs) -> object: pass
def __ge__(*args, **kwargs) -> object: pass
def mul(*args, **kwargs) -> object: pass
def sequenceIncludes(*args, **kwargs) -> bool: pass
def isNumberType(*args, **kwargs) -> bool: pass
def itruediv(*args, **kwargs) -> object: pass
def truth(*args, **kwargs) -> bool: pass
def add(*args, **kwargs) -> object: pass
def indexOf(*args, **kwargs) -> int: pass
def __irshift__(*args, **kwargs) -> object: pass
def imul(*args, **kwargs) -> object: pass
def getslice(a, b: int, c: int) -> object: pass
def not_(*args, **kwargs) -> bool: pass
def isMappingType(*args, **kwargs) -> bool: pass
def idiv(*args, **kwargs) -> object: pass
def lt(*args, **kwargs) -> object: pass
def mod(*args, **kwargs) -> object: pass
def isCallable(*args, **kwargs) -> bool: pass
def mul(*args, **kwargs) -> object: pass
def ne(*args, **kwargs) -> object: pass
def neg(*args, **kwargs) -> object: pass
def not_(*args, **kwargs) -> bool: pass
def or_(*args, **kwargs) -> object: pass
def pos(*args, **kwargs) -> object: pass
def pow(*args, **kwargs) -> object: pass
def repeat(a, b: int) -> object: pass
def rshift(*args, **kwargs) -> object: pass
def sequenceIncludes(*args, **kwargs) -> bool: pass
def setitem(*args, **kwargs) -> NoneType: pass
def setslice(a, b: int, c: int, d) -> NoneType: pass
def sub(*args, **kwargs) -> object: pass
def truediv(*args, **kwargs) -> object: pass
def truth(*args, **kwargs) -> bool: pass
def xor(*args, **kwargs) -> object: pass
class itemgetter(object):
pass
class attrgetter(object):
pass
class itemgetter(object):
pass
class methodcaller(object):
pass

View File

@@ -1,72 +1,73 @@
"""Stub file for the 'signal' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
SIGTTIN = Undefined(int)
SIGTSTP = Undefined(int)
SIGPIPE = Undefined(int)
SIGXCPU = Undefined(int)
SIGIOT = Undefined(int)
SIGALRM = Undefined(int)
SIGRTMAX = Undefined(int)
SIGPWR = Undefined(int)
SIGTTOU = Undefined(int)
SIGSEGV = Undefined(int)
SIGRTMIN = Undefined(int)
SIGKILL = Undefined(int)
SIGBUS = Undefined(int)
SIGVTALRM = Undefined(int)
SIGCHLD = Undefined(int)
SIGABRT = Undefined(int)
SIGSTOP = Undefined(int)
SIGPOLL = Undefined(int)
SIGHUP = Undefined(int)
SIG_DFL = Undefined(long)
SIGSYS = Undefined(int)
SIGPROF = Undefined(int)
NSIG = Undefined(int)
SIGTERM = Undefined(int)
SIGINT = Undefined(int)
ITIMER_PROF = Undefined(long)
SIG_IGN = Undefined(long)
SIGURG = Undefined(int)
SIGIO = Undefined(int)
SIGILL = Undefined(int)
SIGQUIT = Undefined(int)
ITIMER_REAL = Undefined(long)
ITIMER_VIRTUAL = Undefined(long)
SIGTRAP = Undefined(int)
SIGUSR2 = Undefined(int)
SIGUSR1 = Undefined(int)
ItimerError = Undefined(object)
SIGWINCH = Undefined(int)
SIGXFSZ = Undefined(int)
NSIG = Undefined(int)
SIGABRT = Undefined(int)
SIGALRM = Undefined(int)
SIGBUS = Undefined(int)
SIGCHLD = Undefined(int)
SIGCLD = Undefined(int)
SIGCONT = Undefined(int)
SIGFPE = Undefined(int)
ITIMER_REAL = Undefined(long)
SIGCLD = Undefined(int)
SIGHUP = Undefined(int)
SIGILL = Undefined(int)
SIGINT = Undefined(int)
SIGIO = Undefined(int)
SIGIOT = Undefined(int)
SIGKILL = Undefined(int)
SIGPIPE = Undefined(int)
SIGPOLL = Undefined(int)
SIGPROF = Undefined(int)
SIGPWR = Undefined(int)
SIGQUIT = Undefined(int)
SIGRTMAX = Undefined(int)
SIGRTMIN = Undefined(int)
SIGSEGV = Undefined(int)
SIGSTOP = Undefined(int)
SIGSYS = Undefined(int)
SIGTERM = Undefined(int)
SIGTRAP = Undefined(int)
SIGTSTP = Undefined(int)
SIGTTIN = Undefined(int)
SIGTTOU = Undefined(int)
SIGURG = Undefined(int)
SIGUSR1 = Undefined(int)
SIGUSR2 = Undefined(int)
SIGVTALRM = Undefined(int)
SIGWINCH = Undefined(int)
SIGXCPU = Undefined(int)
SIGXFSZ = Undefined(int)
SIG_DFL = Undefined(long)
SIG_IGN = Undefined(long)
def alarm(a: int) -> int: pass
def default_int_handler(*args, **kwargs) -> object:
raise KeyboardInterrupt()
def getitimer(a: int) -> tuple: pass
def signal(a: int, b) -> NoneType:
raise RuntimeError()
raise ValueError()
raise TypeError()
def getsignal(a: int) -> NoneType:
raise ValueError()
def pause() -> NoneType: pass
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass
def alarm(a: int) -> int: pass
def set_wakeup_fd(a: int) -> long:
raise ValueError()
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass
def siginterrupt(a: int, b: int) -> NoneType:
raise ValueError()
raise RuntimeError()
def signal(a: int, b) -> NoneType:
raise TypeError()
raise RuntimeError()
raise ValueError()
def default_int_handler(*args, **kwargs) -> object:
raise KeyboardInterrupt()

View File

@@ -1,19 +1,43 @@
"""Stub file for the 'strop' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def atoi(a: str, *args, **kwargs) -> int:
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 split(*args, **kwargs) -> List[str]:
raise ValueError()
def count(*args, **kwargs) -> int:
raise DeprecationWarning()
def expandtabs(a, *args, **kwargs) -> str:
raise OverflowError()
raise DeprecationWarning()
raise ValueError()
def find(*args, **kwargs) -> int:
raise DeprecationWarning()
def join(*args, **kwargs) -> object:
raise OverflowError()
raise DeprecationWarning()
raise TypeError()
def joinfields(*args, **kwargs) -> object:
raise OverflowError()
raise TypeError()
raise DeprecationWarning()
raise TypeError()
def lower(*args, **kwargs) -> str:
raise DeprecationWarning()
@@ -21,60 +45,37 @@ def lower(*args, **kwargs) -> str:
def lstrip(*args, **kwargs) -> str:
raise DeprecationWarning()
def atol(a: str, *args, **kwargs) -> long:
def maketrans(*args, **kwargs) -> str:
raise ValueError()
raise DeprecationWarning()
def upper(*args, **kwargs) -> str:
def replace(*args, **kwargs) -> str:
raise DeprecationWarning()
def expandtabs(a: Nothing, *args, **kwargs) -> str:
raise OverflowError()
raise ValueError()
raise MemoryError()
def rfind(*args, **kwargs) -> int:
raise DeprecationWarning()
def translate(*args, **kwargs) -> str:
def rstrip(*args, **kwargs) -> str:
raise DeprecationWarning()
def split(*args, **kwargs) -> List[str]:
raise DeprecationWarning()
raise ValueError()
raise DeprecationWarning()
def capitalize(*args, **kwargs) -> str:
def splitfields(*args, **kwargs) -> List[str]:
raise DeprecationWarning()
raise ValueError()
def find(*args, **kwargs) -> int:
raise DeprecationWarning()
def join(*args, **kwargs) -> object:
raise OverflowError()
raise TypeError()
raise DeprecationWarning()
def count(*args, **kwargs) -> int:
def strip(*args, **kwargs) -> str:
raise DeprecationWarning()
def swapcase(*args, **kwargs) -> str:
raise DeprecationWarning()
def maketrans(*args, **kwargs) -> str:
def translate(*args, **kwargs) -> str:
raise DeprecationWarning()
raise ValueError()
def rstrip(*args, **kwargs) -> str:
raise DeprecationWarning()
def strip(*args, **kwargs) -> str:
raise DeprecationWarning()
def atof(a: str) -> float:
raise ValueError()
raise DeprecationWarning()
def splitfields(*args, **kwargs) -> List[str]:
raise ValueError()
raise DeprecationWarning()
def replace(*args, **kwargs) -> str:
raise MemoryError()
raise ValueError()
raise DeprecationWarning()
def rfind(*args, **kwargs) -> int:
def upper(*args, **kwargs) -> str:
raise DeprecationWarning()

51
python2/thread.py Normal file
View File

@@ -0,0 +1,51 @@
"""Stub file for the 'thread' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
LockType = Undefined(lock)
error = Undefined(object)
def _count() -> int: pass
def allocate() -> lock: pass
def allocate_lock() -> lock: pass
def exit() -> object:
raise SystemExit()
def exit_thread() -> object:
raise SystemExit()
def get_ident() -> int: pass
def interrupt_main() -> NoneType: pass
def stack_size(*args, **kwargs) -> int:
raise ValueError()
def start_new(*args, **kwargs) -> int:
raise TypeError()
raise MemoryError()
def start_new_thread(*args, **kwargs) -> int:
raise TypeError()
raise MemoryError()
class _local(object):
pass
class _localdummy(object):
pass
class lock(object):
def __enter__(*args, **kwargs) -> bool: pass
def __exit__(*args, **kwargs) -> NoneType: pass
def acquire(*args, **kwargs) -> bool: pass
def acquire_lock(*args, **kwargs) -> bool: pass
def locked() -> bool: pass
def locked_lock() -> bool: pass
def release() -> NoneType: pass
def release_lock() -> NoneType: pass

View File

@@ -1,31 +1,32 @@
"""Stub file for the 'time' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def ctime(*args, **kwargs) -> str:
raise ValueError()
def strptime(*args, **kwargs) -> object: pass
def strftime(a: str, *args, **kwargs) -> str:
raise MemoryError()
raise ValueError()
def tzset() -> NoneType: pass
def time() -> float:
raise IOError()
def mktime(*args, **kwargs) -> float:
raise OverflowError()
def sleep(a: float) -> NoneType: pass
def gmtime(*args, **kwargs) -> tuple: pass
def asctime(*args, **kwargs) -> str:
raise ValueError()
def clock() -> float: pass
def ctime(*args, **kwargs) -> str:
raise ValueError()
def gmtime(*args, **kwargs) -> tuple: pass
def localtime(*args, **kwargs) -> tuple: pass
def mktime(*args, **kwargs) -> float:
raise OverflowError()
def sleep(a: float) -> NoneType: pass
def strftime(a: str, *args, **kwargs) -> str:
raise ValueError()
raise MemoryError()
def strptime(*args, **kwargs) -> object: pass
def time() -> float:
raise IOError()
def tzset() -> NoneType: pass

17
python2/xxsubtype.py Normal file
View File

@@ -0,0 +1,17 @@
"""Stub file for the 'xxsubtype' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def bench(a, b: str, *args, **kwargs) -> float: pass
class spamdict(object):
def getstate() -> int: pass
def setstate(a: int) -> NoneType: pass
class spamlist(object):
def classmeth(*args, **kwargs) -> tuple: pass
def getstate() -> int: pass
def setstate(a: int) -> NoneType: pass
def staticmeth(*args, **kwargs) -> tuple: pass

14
python2/zipimport.py Normal file
View File

@@ -0,0 +1,14 @@
"""Stub file for the 'zipimport' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
class zipimporter(object):
def find_module(a: str, *args, **kwargs) -> NoneType: pass
def get_code(a: str) -> object: pass
def get_data(a: str) -> str:
raise IOError()
def get_filename(a: str) -> str: pass
def get_source(a: str) -> object: pass
def is_package(a: str) -> bool: pass
def load_module(a: str) -> object: pass

View File

@@ -1,28 +1,29 @@
"""Stub file for the 'zlib' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def compress(a: Nothing, *args, **kwargs) -> str:
raise MemoryError()
def adler32(a, *args, **kwargs) -> int: pass
def crc32(a: Nothing, *args, **kwargs) -> int: pass
def compress(a, *args, **kwargs) -> str:
raise MemoryError()
def compressobj(*args, **kwargs) -> object:
raise MemoryError()
raise ValueError()
raise MemoryError()
def adler32(a: Nothing, *args, **kwargs) -> int: pass
def crc32(a, *args, **kwargs) -> int: pass
def decompress(a, *args, **kwargs) -> str:
raise MemoryError()
def decompressobj(*args, **kwargs) -> object:
raise MemoryError()
raise ValueError()
def decompress(a: Nothing, *args, **kwargs) -> str:
raise MemoryError()
class Decompress(object):
pass
class Compress(object):
pass
class Decompress(object):
pass

View File

16
python3/_bisect.py Normal file
View File

@@ -0,0 +1,16 @@
"""Stub file for the '_bisect' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def bisect(a, x, *args, **kwargs) -> long: pass
def bisect_left(a, x, *args, **kwargs) -> long: pass
def bisect_right(a, x, *args, **kwargs) -> long: pass
def insort(a, x, *args, **kwargs) -> NoneType: pass
def insort_left(a, x, *args, **kwargs) -> NoneType: pass
def insort_right(a, x, *args, **kwargs) -> NoneType: pass

89
python3/_codecs.py Normal file
View File

@@ -0,0 +1,89 @@
"""Stub file for the '_codecs' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _forget_codec(a: str) -> NoneType: pass
def ascii_decode(a, *args, **kwargs) -> tuple: pass
def ascii_encode(a, *args, **kwargs) -> tuple: pass
def charmap_build(a: str) -> object: pass
def charmap_decode(a, *args, **kwargs) -> tuple: pass
def charmap_encode(a, *args, **kwargs) -> tuple: pass
def decode(a, *args, **kwargs) -> object: pass
def encode(a, *args, **kwargs) -> object: pass
def escape_decode(a, *args, **kwargs) -> tuple: pass
def escape_encode(a, *args, **kwargs) -> tuple:
raise OverflowError()
def latin_1_decode(a, *args, **kwargs) -> tuple: pass
def latin_1_encode(a, *args, **kwargs) -> tuple: pass
def lookup(a: str) -> object: pass
def lookup_error(a: str) -> object: pass
def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: pass
def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: pass
def readbuffer_encode(a, *args, **kwargs) -> tuple: pass
def register(*args, **kwargs) -> NoneType: pass
def register_error(a: str, b) -> NoneType: pass
def unicode_escape_decode(a, *args, **kwargs) -> tuple: pass
def unicode_escape_encode(a, *args, **kwargs) -> tuple: pass
def unicode_internal_decode(a, *args, **kwargs) -> tuple: pass
def unicode_internal_encode(a, *args, **kwargs) -> tuple:
raise DeprecationWarning()
raise MemoryError()
def utf_16_be_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_be_encode(a, *args, **kwargs) -> tuple: pass
def utf_16_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_encode(a, *args, **kwargs) -> tuple: pass
def utf_16_ex_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_le_decode(a, *args, **kwargs) -> tuple: pass
def utf_16_le_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_be_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_be_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_encode(a, *args, **kwargs) -> tuple: pass
def utf_32_ex_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_le_decode(a, *args, **kwargs) -> tuple: pass
def utf_32_le_encode(a, *args, **kwargs) -> tuple: pass
def utf_7_decode(a, *args, **kwargs) -> tuple: pass
def utf_7_encode(a, *args, **kwargs) -> tuple: pass
def utf_8_decode(a, *args, **kwargs) -> tuple: pass
def utf_8_encode(a, *args, **kwargs) -> tuple: pass

25
python3/_heapq.py Normal file
View File

@@ -0,0 +1,25 @@
"""Stub file for the '_heapq' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def heapify(*args, **kwargs) -> NoneType:
raise TypeError()
def heappop(*args, **kwargs) -> object:
raise TypeError()
raise IndexError()
def heappush(*args, **kwargs) -> NoneType:
raise TypeError()
def heappushpop(*args, **kwargs) -> object:
raise TypeError()
def heapreplace(*args, **kwargs) -> object:
raise TypeError()
raise IndexError()
def nlargest(a: int, b) -> List[object]: pass
def nsmallest(a: int, b) -> List[object]: pass

10
python3/_json.py Normal file
View File

@@ -0,0 +1,10 @@
"""Stub file for the '_json' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def encode_basestring_ascii(*args, **kwargs) -> object:
raise TypeError()
def scanstring(a, b: int, *args, **kwargs) -> tuple:
raise TypeError()

106
python3/_operator.py Normal file
View File

@@ -0,0 +1,106 @@
"""Stub file for the '_operator' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _compare_digest(a, b) -> bool:
raise TypeError()
raise BufferError()
def abs(*args, **kwargs) -> object: pass
def add(*args, **kwargs) -> object: pass
def and_(*args, **kwargs) -> object: pass
def concat(*args, **kwargs) -> object: pass
def contains(*args, **kwargs) -> bool: pass
def countOf(*args, **kwargs) -> long: pass
def delitem(*args, **kwargs) -> NoneType: pass
def eq(*args, **kwargs) -> object: pass
def floordiv(*args, **kwargs) -> object: pass
def ge(*args, **kwargs) -> object: pass
def getitem(*args, **kwargs) -> object: pass
def gt(*args, **kwargs) -> object: pass
def iadd(*args, **kwargs) -> object: pass
def iand(*args, **kwargs) -> object: pass
def iconcat(*args, **kwargs) -> object: pass
def ifloordiv(*args, **kwargs) -> object: pass
def ilshift(*args, **kwargs) -> object: pass
def imod(*args, **kwargs) -> object: pass
def imul(*args, **kwargs) -> object: pass
def index(*args, **kwargs) -> object: pass
def indexOf(*args, **kwargs) -> long: pass
def inv(*args, **kwargs) -> object: pass
def invert(*args, **kwargs) -> object: pass
def ior(*args, **kwargs) -> object: pass
def ipow(*args, **kwargs) -> object: pass
def irshift(*args, **kwargs) -> object: pass
def is_(*args, **kwargs) -> bool: pass
def is_not(*args, **kwargs) -> bool: pass
def isub(*args, **kwargs) -> object: pass
def itruediv(*args, **kwargs) -> object: pass
def ixor(*args, **kwargs) -> object: pass
def le(*args, **kwargs) -> object: pass
def length_hint(a, *args, **kwargs) -> long: pass
def lshift(*args, **kwargs) -> object: pass
def lt(*args, **kwargs) -> object: pass
def mod(*args, **kwargs) -> object: pass
def mul(*args, **kwargs) -> object: pass
def ne(*args, **kwargs) -> object: pass
def neg(*args, **kwargs) -> object: pass
def not_(*args, **kwargs) -> bool: pass
def or_(*args, **kwargs) -> object: pass
def pos(*args, **kwargs) -> object: pass
def pow(*args, **kwargs) -> object: pass
def rshift(*args, **kwargs) -> object: pass
def setitem(*args, **kwargs) -> NoneType: pass
def sub(*args, **kwargs) -> object: pass
def truediv(*args, **kwargs) -> object: pass
def truth(*args, **kwargs) -> bool: pass
def xor(*args, **kwargs) -> object: pass

30
python3/_stat.py Normal file
View File

@@ -0,0 +1,30 @@
"""Stub file for the '_stat' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def S_IFMT(*args, **kwargs) -> long: pass
def S_IMODE(*args, **kwargs) -> long: pass
def S_ISBLK(*args, **kwargs) -> bool: pass
def S_ISCHR(*args, **kwargs) -> bool: pass
def S_ISDIR(*args, **kwargs) -> bool: pass
def S_ISDOOR(*args, **kwargs) -> bool: pass
def S_ISFIFO(*args, **kwargs) -> bool: pass
def S_ISLNK(*args, **kwargs) -> bool: pass
def S_ISPORT(*args, **kwargs) -> bool: pass
def S_ISREG(*args, **kwargs) -> bool: pass
def S_ISSOCK(*args, **kwargs) -> bool: pass
def S_ISWHT(*args, **kwargs) -> bool: pass
def filemode(*args, **kwargs) -> unicode: pass

24
python3/_tracemalloc.py Normal file
View File

@@ -0,0 +1,24 @@
"""Stub file for the '_tracemalloc' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _get_object_traceback(*args, **kwargs) -> object: pass
def _get_traces() -> object:
raise MemoryError()
def clear_traces() -> NoneType: pass
def get_traceback_limit() -> long: pass
def get_traced_memory() -> tuple: pass
def get_tracemalloc_memory() -> object: pass
def is_tracing() -> bool: pass
def start(*args, **kwargs) -> NoneType:
raise ValueError()
def stop() -> NoneType: pass

10
python3/_warnings.py Normal file
View File

@@ -0,0 +1,10 @@
"""Stub file for the '_warnings' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _filters_mutated() -> NoneType: pass
def warn(message, *args, **kwargs) -> NoneType: pass
def warn_explicit(message, category, filename: str, lineno: int, *args, **kwargs) -> NoneType: pass

16
python3/atexit.py Normal file
View File

@@ -0,0 +1,16 @@
"""Stub file for the 'atexit' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def _clear() -> NoneType: pass
def _ncallbacks() -> long: pass
def _run_exitfuncs() -> NoneType: pass
def register(*args, **kwargs) -> object:
raise TypeError()
raise MemoryError()
def unregister(*args, **kwargs) -> NoneType: pass

48
python3/cmath.py Normal file
View 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 percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def acos(*args, **kwargs) -> complex: pass
def acosh(*args, **kwargs) -> complex: pass
def asin(*args, **kwargs) -> complex: pass
def asinh(*args, **kwargs) -> complex: pass
def atan(*args, **kwargs) -> complex: pass
def atanh(*args, **kwargs) -> complex: pass
def cos(*args, **kwargs) -> complex: pass
def cosh(*args, **kwargs) -> complex: pass
def exp(*args, **kwargs) -> complex: pass
def isfinite(a: complex) -> bool: pass
def isinf(a: complex) -> bool: pass
def isnan(a: complex) -> bool: pass
def log(a: complex, *args, **kwargs) -> complex: pass
def log10(*args, **kwargs) -> complex: pass
def phase(a: complex) -> float: pass
def polar(a: complex) -> tuple: pass
def rect(a: float, b: float) -> complex: pass
def sin(*args, **kwargs) -> complex: pass
def sinh(*args, **kwargs) -> complex: pass
def sqrt(*args, **kwargs) -> complex: pass
def tan(*args, **kwargs) -> complex: pass
def tanh(*args, **kwargs) -> complex: pass

13
python3/marshal.py Normal file
View File

@@ -0,0 +1,13 @@
"""Stub file for the 'marshal' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def dump(a, b, *args, **kwargs) -> object: pass
def dumps(a, *args, **kwargs) -> object: pass
def load(*args, **kwargs) -> object:
raise TypeError()
def loads(a) -> object: pass

93
python3/math.py Normal file
View File

@@ -0,0 +1,93 @@
"""Stub file for the 'math' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def acos(*args, **kwargs) -> object: pass
def acosh(*args, **kwargs) -> object: pass
def asin(*args, **kwargs) -> object: pass
def asinh(*args, **kwargs) -> object: pass
def atan(*args, **kwargs) -> object: pass
def atan2(*args, **kwargs) -> float: pass
def atanh(*args, **kwargs) -> object: pass
def ceil(*args, **kwargs) -> object: pass
def copysign(*args, **kwargs) -> float: pass
def cos(*args, **kwargs) -> object: pass
def cosh(*args, **kwargs) -> object: pass
def degrees(*args, **kwargs) -> float: pass
def erf(*args, **kwargs) -> float: pass
def erfc(*args, **kwargs) -> float: pass
def exp(*args, **kwargs) -> object: pass
def expm1(*args, **kwargs) -> object: pass
def fabs(*args, **kwargs) -> object: pass
def factorial(*args, **kwargs) -> long:
raise ValueError()
def floor(*args, **kwargs) -> object: pass
def fmod(*args, **kwargs) -> float: pass
def frexp(*args, **kwargs) -> tuple: pass
def fsum(*args, **kwargs) -> float:
raise OverflowError()
raise ValueError()
def gamma(*args, **kwargs) -> float: pass
def hypot(*args, **kwargs) -> float: pass
def isfinite(*args, **kwargs) -> bool: pass
def isinf(*args, **kwargs) -> bool: pass
def isnan(*args, **kwargs) -> bool: pass
def ldexp(a: float, b) -> float:
raise TypeError()
def lgamma(*args, **kwargs) -> float: pass
def log(*args, **kwargs) -> float: pass
def log10(*args, **kwargs) -> float: pass
def log1p(*args, **kwargs) -> object: pass
def log2(*args, **kwargs) -> float: pass
def modf(*args, **kwargs) -> tuple: pass
def pow(*args, **kwargs) -> float: pass
def radians(*args, **kwargs) -> float: pass
def sin(*args, **kwargs) -> object: pass
def sinh(*args, **kwargs) -> object: pass
def sqrt(*args, **kwargs) -> object: pass
def tan(*args, **kwargs) -> object: pass
def tanh(*args, **kwargs) -> object: pass
def trunc(*args, **kwargs) -> object:
raise TypeError()

92
python3/signal.py Normal file
View File

@@ -0,0 +1,92 @@
"""Stub file for the 'signal' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
ITIMER_PROF = Undefined(long)
ITIMER_REAL = Undefined(long)
ITIMER_VIRTUAL = Undefined(long)
ItimerError = Undefined(object)
NSIG = Undefined(long)
SIGABRT = Undefined(long)
SIGALRM = Undefined(long)
SIGBUS = Undefined(long)
SIGCHLD = Undefined(long)
SIGCLD = Undefined(long)
SIGCONT = Undefined(long)
SIGFPE = Undefined(long)
SIGHUP = Undefined(long)
SIGILL = Undefined(long)
SIGINT = Undefined(long)
SIGIO = Undefined(long)
SIGIOT = Undefined(long)
SIGKILL = Undefined(long)
SIGPIPE = Undefined(long)
SIGPOLL = Undefined(long)
SIGPROF = Undefined(long)
SIGPWR = Undefined(long)
SIGQUIT = Undefined(long)
SIGRTMAX = Undefined(long)
SIGRTMIN = Undefined(long)
SIGSEGV = Undefined(long)
SIGSTOP = Undefined(long)
SIGSYS = Undefined(long)
SIGTERM = Undefined(long)
SIGTRAP = Undefined(long)
SIGTSTP = Undefined(long)
SIGTTIN = Undefined(long)
SIGTTOU = Undefined(long)
SIGURG = Undefined(long)
SIGUSR1 = Undefined(long)
SIGUSR2 = Undefined(long)
SIGVTALRM = Undefined(long)
SIGWINCH = Undefined(long)
SIGXCPU = Undefined(long)
SIGXFSZ = Undefined(long)
SIG_DFL = Undefined(long)
SIG_IGN = Undefined(long)
def alarm(a: int) -> long: pass
def default_int_handler(*args, **kwargs) -> object:
raise KeyboardInterrupt()
def getitimer(a: int) -> tuple: pass
def getsignal(a: int) -> NoneType:
raise ValueError()
def pause() -> NoneType: pass
def pthread_kill(a: int, b: int) -> NoneType:
raise OSError()
def pthread_sigmask(a: int, b) -> object:
raise OSError()
def set_wakeup_fd(a: int) -> long:
raise ValueError()
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass
def siginterrupt(a: int, b: int) -> NoneType:
raise ValueError()
raise OSError()
def signal(a: int, b) -> NoneType:
raise TypeError()
raise ValueError()
raise OSError()
def sigpending() -> object:
raise OSError()
def sigtimedwait(a, b) -> object:
raise ValueError()
raise OSError()
def sigwait(a) -> long:
raise OSError()
def sigwaitinfo(a) -> tuple:
raise OSError()

48
python3/time.py Normal file
View File

@@ -0,0 +1,48 @@
"""Stub file for the 'time' module."""
# This is an autogenerated file. It serves as a starting point
# for a more percise manual annotation of this module.
# Feel free to edit the source below, but remove this header when you do.
def asctime(*args, **kwargs) -> unicode: pass
def clock() -> float: pass
def clock_getres(a: int) -> float:
raise IOError()
def clock_gettime(a: int) -> float:
raise IOError()
def clock_settime(a: int, b) -> NoneType:
raise IOError()
def ctime(*args, **kwargs) -> unicode: pass
def get_clock_info(a: str) -> object:
raise ValueError()
def gmtime(*args, **kwargs) -> tuple:
raise OSError()
def localtime(*args, **kwargs) -> tuple: pass
def mktime(*args, **kwargs) -> float:
raise OverflowError()
def monotonic() -> float: pass
def perf_counter() -> float: pass
def process_time() -> float: pass
def sleep(a: float) -> NoneType:
raise ValueError()
def strftime(a: str, *args, **kwargs) -> unicode:
raise MemoryError()
def strptime(*args, **kwargs) -> object: pass
def time() -> float: pass
def tzset() -> NoneType: pass