rework directory hierarchy

This commit is contained in:
Matthias Kramm
2015-09-17 08:33:18 -07:00
parent 9cbe15e57f
commit 77196ae0f6
47 changed files with 38 additions and 19 deletions

18
builtins/3/_bisect.pyi Normal file
View 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
View 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
View 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
View 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
View 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
View 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: ...

View 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
View 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
View 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
View 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
View 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
View 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
View 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
View 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: ...