mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add Python 3 modules, and more Python 2 modules.
Also, sort names alphabetically and add module docstrings.
This commit is contained in:
16
python3/_bisect.py
Normal file
16
python3/_bisect.py
Normal 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
89
python3/_codecs.py
Normal 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
25
python3/_heapq.py
Normal 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
10
python3/_json.py
Normal 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
106
python3/_operator.py
Normal 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
30
python3/_stat.py
Normal 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
24
python3/_tracemalloc.py
Normal 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
10
python3/_warnings.py
Normal 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
16
python3/atexit.py
Normal 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
48
python3/cmath.py
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 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
13
python3/marshal.py
Normal 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
93
python3/math.py
Normal 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
92
python3/signal.py
Normal 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
48
python3/time.py
Normal 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
|
||||
Reference in New Issue
Block a user