From c12e977403c735ec1b224f83ad217f9a9a769aeb Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Wed, 20 May 2015 10:14:02 -0700 Subject: [PATCH] Use '...' instead of 'pass' for function bodies --- README.md | 12 +-- python2/_bisect.py | 12 +-- python2/_codecs.py | 82 +++++++-------- python2/_collections.py | 32 +++--- python2/_functools.py | 4 +- python2/_heapq.py | 4 +- python2/_hotshot.py | 16 +-- python2/_random.py | 4 +- python2/_sre.py | 32 +++--- python2/_struct.py | 16 +-- python2/array.py | 20 ++-- python2/cStringIO.py | 46 ++++----- python2/cmath.py | 42 ++++---- python2/datetime.py | 82 +++++++-------- python2/gc.py | 24 ++--- python2/math.py | 74 +++++++------- python2/operator.py | 220 ++++++++++++++++++++-------------------- python2/signal.py | 8 +- python2/thread.py | 26 ++--- python2/time.py | 12 +-- python2/xxsubtype.py | 14 +-- python2/zipimport.py | 12 +-- python2/zlib.py | 4 +- python3/_bisect.py | 12 +-- python3/_codecs.py | 78 +++++++------- python3/_heapq.py | 4 +- python3/_operator.py | 98 +++++++++--------- python3/_stat.py | 26 ++--- python3/_tracemalloc.py | 14 +-- python3/_warnings.py | 6 +- python3/atexit.py | 8 +- python3/cmath.py | 44 ++++---- python3/marshal.py | 6 +- python3/math.py | 76 +++++++------- python3/signal.py | 8 +- python3/time.py | 20 ++-- 36 files changed, 599 insertions(+), 599 deletions(-) diff --git a/README.md b/README.md index faf8b9be2..32a177574 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,14 @@ __name__ = Undefined(str) __package__ = Undefined(None) class date(object): - def __init__(self, year: int, month: int, day: int): pass + def __init__(self, year: int, month: int, day: int): ... @classmethod - def fromtimestamp(cls, timestamp: int or float) -> date: pass + def fromtimestamp(cls, timestamp: int or float) -> date: ... @classmethod - def fromordinal(cls, ordinal: int) -> date: pass + def fromordinal(cls, ordinal: int) -> date: ... @classmethod - def today(self) -> date: pass - def ctime(self) -> str: pass - def weekday(self) -> int: pass + def today(self) -> date: ... + def ctime(self) -> str: ... + def weekday(self) -> int: ... ``` diff --git a/python2/_bisect.py b/python2/_bisect.py index 479b493b7..a6455b2ec 100644 --- a/python2/_bisect.py +++ b/python2/_bisect.py @@ -5,14 +5,14 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def bisect(a, x, *args, **kwargs) -> int: pass +def bisect(a, x, *args, **kwargs) -> int: ... -def bisect_left(a, x, *args, **kwargs) -> int: pass +def bisect_left(a, x, *args, **kwargs) -> int: ... -def bisect_right(a, x, *args, **kwargs) -> int: pass +def bisect_right(a, x, *args, **kwargs) -> int: ... -def insort(a, x, *args, **kwargs) -> None: pass +def insort(a, x, *args, **kwargs) -> None: ... -def insort_left(a, x, *args, **kwargs) -> None: pass +def insort_left(a, x, *args, **kwargs) -> None: ... -def insort_right(a, x, *args, **kwargs) -> None: pass +def insort_right(a, x, *args, **kwargs) -> None: ... diff --git a/python2/_codecs.py b/python2/_codecs.py index bc8e7c768..27d89b298 100644 --- a/python2/_codecs.py +++ b/python2/_codecs.py @@ -5,84 +5,84 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def ascii_decode(a, *args, **kwargs) -> tuple: pass +def ascii_decode(a, *args, **kwargs) -> tuple: ... -def ascii_encode(a, *args, **kwargs) -> tuple: pass +def ascii_encode(a, *args, **kwargs) -> tuple: ... -def charbuffer_encode(*args, **kwargs) -> tuple: pass +def charbuffer_encode(*args, **kwargs) -> tuple: ... -def charmap_build(a: str) -> object: pass +def charmap_build(a: str) -> object: ... -def charmap_decode(a, *args, **kwargs) -> tuple: pass +def charmap_decode(a, *args, **kwargs) -> tuple: ... -def charmap_encode(a, *args, **kwargs) -> tuple: pass +def charmap_encode(a, *args, **kwargs) -> tuple: ... -def decode(a, *args, **kwargs) -> object: pass +def decode(a, *args, **kwargs) -> object: ... -def encode(a, *args, **kwargs) -> object: pass +def encode(a, *args, **kwargs) -> object: ... -def escape_decode(a, *args, **kwargs) -> tuple: pass +def escape_decode(a, *args, **kwargs) -> tuple: ... -def escape_encode(a: str, *args, **kwargs) -> tuple: pass +def escape_encode(a: str, *args, **kwargs) -> tuple: ... -def latin_1_decode(a, *args, **kwargs) -> tuple: pass +def latin_1_decode(a, *args, **kwargs) -> tuple: ... -def latin_1_encode(a, *args, **kwargs) -> tuple: pass +def latin_1_encode(a, *args, **kwargs) -> tuple: ... -def lookup(a: str) -> object: pass +def lookup(a: str) -> object: ... -def lookup_error(a: str) -> object: pass +def lookup_error(a: str) -> object: ... -def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: pass +def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ... -def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: pass +def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: ... -def readbuffer_encode(a, *args, **kwargs) -> tuple: pass +def readbuffer_encode(a, *args, **kwargs) -> tuple: ... -def register(*args, **kwargs) -> None: pass +def register(*args, **kwargs) -> None: ... -def register_error(a: str, b) -> None: pass +def register_error(a: str, b) -> None: ... -def unicode_escape_decode(a, *args, **kwargs) -> tuple: pass +def unicode_escape_decode(a, *args, **kwargs) -> tuple: ... -def unicode_escape_encode(a, *args, **kwargs) -> tuple: pass +def unicode_escape_encode(a, *args, **kwargs) -> tuple: ... -def unicode_internal_decode(a, *args, **kwargs) -> tuple: pass +def unicode_internal_decode(a, *args, **kwargs) -> tuple: ... -def unicode_internal_encode(a, *args, **kwargs) -> tuple: pass +def unicode_internal_encode(a, *args, **kwargs) -> tuple: ... -def utf_16_be_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_be_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_be_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_be_encode(a, *args, **kwargs) -> tuple: ... -def utf_16_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_encode(a, *args, **kwargs) -> tuple: ... -def utf_16_ex_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_ex_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_le_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_le_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_le_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_le_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_be_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_be_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_be_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_be_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_ex_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_ex_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_le_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_le_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_le_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_le_encode(a, *args, **kwargs) -> tuple: ... -def utf_7_decode(a, *args, **kwargs) -> tuple: pass +def utf_7_decode(a, *args, **kwargs) -> tuple: ... -def utf_7_encode(a, *args, **kwargs) -> tuple: pass +def utf_7_encode(a, *args, **kwargs) -> tuple: ... -def utf_8_decode(a, *args, **kwargs) -> tuple: pass +def utf_8_decode(a, *args, **kwargs) -> tuple: ... -def utf_8_encode(a, *args, **kwargs) -> tuple: pass +def utf_8_encode(a, *args, **kwargs) -> tuple: ... diff --git a/python2/_collections.py b/python2/_collections.py index 154ad6691..b1d47a8e3 100644 --- a/python2/_collections.py +++ b/python2/_collections.py @@ -6,24 +6,24 @@ from typing import List, Tuple, Dict, Undefined, GenericType class defaultdict(object): - def __copy__() -> object: pass + def __copy__() -> object: ... def __missing__(*args, **kwargs) -> object: raise KeyError() - def __reduce__() -> tuple: pass - def copy() -> object: pass + def __reduce__() -> tuple: ... + def copy() -> object: ... class deque(object): - def __copy__() -> object: pass - def __reduce__() -> tuple: pass - def __reversed__() -> object: pass - def __sizeof__() -> long: pass - def append(*args, **kwargs) -> None: pass - def appendleft(*args, **kwargs) -> None: pass - def clear() -> None: pass + def __copy__() -> object: ... + def __reduce__() -> tuple: ... + def __reversed__() -> object: ... + def __sizeof__() -> long: ... + def append(*args, **kwargs) -> None: ... + def appendleft(*args, **kwargs) -> None: ... + def clear() -> None: ... def count(*args, **kwargs) -> int: raise RuntimeError() - def extend(*args, **kwargs) -> None: pass - def extendleft(*args, **kwargs) -> None: pass + def extend(*args, **kwargs) -> None: ... + def extendleft(*args, **kwargs) -> None: ... def pop() -> object: raise IndexError() def popleft() -> object: @@ -31,11 +31,11 @@ class deque(object): def remove(*args, **kwargs) -> None: raise IndexError() raise ValueError() - def reverse() -> None: pass - def rotate(*args, **kwargs) -> None: pass + def reverse() -> None: ... + def rotate(*args, **kwargs) -> None: ... class deque_iterator(object): - def __length_hint__() -> int: pass + def __length_hint__() -> int: ... class deque_reverse_iterator(object): - def __length_hint__() -> int: pass + def __length_hint__() -> int: ... diff --git a/python2/_functools.py b/python2/_functools.py index 9107076a8..1e07c5109 100644 --- a/python2/_functools.py +++ b/python2/_functools.py @@ -10,5 +10,5 @@ def reduce(*args, **kwargs) -> object: class partial(object): - def __reduce__() -> tuple: pass - def __setstate__(a, b, c, d) -> None: pass + def __reduce__() -> tuple: ... + def __setstate__(a, b, c, d) -> None: ... diff --git a/python2/_heapq.py b/python2/_heapq.py index 353205270..ec4d029b6 100644 --- a/python2/_heapq.py +++ b/python2/_heapq.py @@ -22,6 +22,6 @@ def heapreplace(*args, **kwargs) -> object: raise IndexError() raise TypeError() -def nlargest(a: int, b) -> List[object]: pass +def nlargest(a: int, b) -> List[object]: ... -def nsmallest(a: int, b) -> List[object]: pass +def nsmallest(a: int, b) -> List[object]: ... diff --git a/python2/_hotshot.py b/python2/_hotshot.py index 6d6cab049..eca09560d 100644 --- a/python2/_hotshot.py +++ b/python2/_hotshot.py @@ -5,7 +5,7 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def coverage(a: str) -> object: pass +def coverage(a: str) -> object: ... def logreader(a: str) -> LogReaderType: raise IOError() @@ -14,21 +14,21 @@ def logreader(a: str) -> LogReaderType: def profiler(a: str, *args, **kwargs) -> object: raise IOError() -def resolution() -> tuple: pass +def resolution() -> tuple: ... class LogReaderType(object): - def close() -> None: pass + def close() -> None: ... def fileno() -> int: raise ValueError() class ProfilerType(object): - def addinfo(a: str, b: str) -> None: pass - def close() -> None: pass + def addinfo(a: str, b: str) -> None: ... + def close() -> None: ... def fileno() -> int: raise ValueError() - def runcall(*args, **kwargs) -> object: pass + def runcall(*args, **kwargs) -> object: ... def runcode(a, b, *args, **kwargs) -> object: raise TypeError() - def start() -> None: pass - def stop() -> None: pass + def start() -> None: ... + def stop() -> None: ... diff --git a/python2/_random.py b/python2/_random.py index 86b730662..7cf29356e 100644 --- a/python2/_random.py +++ b/python2/_random.py @@ -9,10 +9,10 @@ class Random(object): def getrandbits(a: int) -> object: raise MemoryError() raise ValueError() - def getstate() -> tuple: pass + def getstate() -> tuple: ... def jumpahead(*args, **kwargs) -> None: raise TypeError() - def random() -> float: pass + def random() -> float: ... def seed(*args, **kwargs) -> None: raise MemoryError() def setstate(*args, **kwargs) -> None: diff --git a/python2/_sre.py b/python2/_sre.py index 158bd6ca9..43bdd81a1 100644 --- a/python2/_sre.py +++ b/python2/_sre.py @@ -13,9 +13,9 @@ copyright = Undefined(str) def compile(a, b: int, c, *args, **kwargs) -> SRE_Pattern: raise OverflowError() -def getcodesize() -> int: pass +def getcodesize() -> int: ... -def getlower(a: int, b: int) -> int: pass +def getlower(a: int, b: int) -> int: ... class SRE_Match(object): @@ -25,10 +25,10 @@ class SRE_Match(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 expand(*args, **kwargs) -> object: ... + def group(*args, **kwargs) -> tuple: ... + def groupdict(*args, **kwargs) -> dict: ... + def groups(*args, **kwargs) -> tuple: ... def span(*args, **kwargs) -> tuple: raise IndexError() def start(*args, **kwargs) -> int: @@ -39,15 +39,15 @@ class SRE_Pattern(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[None]: pass - def sub(repl, string, *args, **kwargs) -> tuple: pass - def subn(repl, string, *args, **kwargs) -> tuple: pass + def findall(source, *args, **kwargs) -> List[tuple]: ... + def finditer(*args, **kwargs) -> callable_iterator: ... + def match(pattern, *args, **kwargs) -> object: ... + def scanner(a, *args, **kwargs) -> SRE_Scanner: ... + def search(pattern, *args, **kwargs) -> object: ... + def split(source, *args, **kwargs) -> List[None]: ... + def sub(repl, string, *args, **kwargs) -> tuple: ... + def subn(repl, string, *args, **kwargs) -> tuple: ... class SRE_Scanner(object): - def match() -> object: pass - def search() -> object: pass + def match() -> object: ... + def search() -> object: ... diff --git a/python2/_struct.py b/python2/_struct.py index ec2f9cafb..6eda41a97 100644 --- a/python2/_struct.py +++ b/python2/_struct.py @@ -5,9 +5,9 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def _clearcache() -> None: pass +def _clearcache() -> None: ... -def calcsize(*args, **kwargs) -> int: pass +def calcsize(*args, **kwargs) -> int: ... def pack(*args, **kwargs) -> str: raise TypeError() @@ -15,15 +15,15 @@ def pack(*args, **kwargs) -> str: def pack_into(*args, **kwargs) -> None: raise TypeError() -def unpack(*args, **kwargs) -> tuple: pass +def unpack(*args, **kwargs) -> tuple: ... 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) -> None: pass - def unpack(a) -> tuple: pass - def unpack_from(*args, **kwargs) -> tuple: pass + def __sizeof__() -> long: ... + def pack(*args, **kwargs) -> str: ... + def pack_into(*args, **kwargs) -> None: ... + def unpack(a) -> tuple: ... + def unpack_from(*args, **kwargs) -> tuple: ... diff --git a/python2/array.py b/python2/array.py index 3a194c979..fdf671ca4 100644 --- a/python2/array.py +++ b/python2/array.py @@ -6,17 +6,17 @@ from typing import List, Tuple, Dict, Undefined, GenericType class array(object): - def __copy__() -> object: pass - def __deepcopy__(*args, **kwargs) -> object: pass + def __copy__() -> object: ... + def __deepcopy__(*args, **kwargs) -> object: ... def __reduce__() -> tuple: raise AttributeError() - def __sizeof__() -> long: pass - def append(*args, **kwargs) -> None: pass - def buffer_info() -> tuple: pass + def __sizeof__() -> long: ... + def append(*args, **kwargs) -> None: ... + def buffer_info() -> tuple: ... def byteswap() -> None: raise RuntimeError() - def count(*args, **kwargs) -> int: pass - def extend(*args, **kwargs) -> None: pass + def count(*args, **kwargs) -> int: ... + def extend(*args, **kwargs) -> None: ... def fromfile(a, b: int) -> None: raise EOFError() raise IOError() @@ -33,18 +33,18 @@ class array(object): raise ValueError() def index(*args, **kwargs) -> int: raise ValueError() - def insert(a: int, b) -> None: pass + def insert(a: int, b) -> None: ... def pop(*args, **kwargs) -> object: raise IndexError() def read(*args, **kwargs) -> None: raise DeprecationWarning() def remove(*args, **kwargs) -> None: raise ValueError() - def reverse() -> None: pass + def reverse() -> None: ... def tofile(*args, **kwargs) -> None: raise IOError() raise TypeError() - def tolist() -> list: pass + def tolist() -> list: ... def tostring() -> str: raise MemoryError() def tounicode() -> unicode: diff --git a/python2/cStringIO.py b/python2/cStringIO.py index e7db949ed..8538ed312 100644 --- a/python2/cStringIO.py +++ b/python2/cStringIO.py @@ -9,35 +9,35 @@ InputType = Undefined(StringI) OutputType = Undefined(StringO) cStringIO_CAPI = Undefined(object) -def StringIO(*args, **kwargs) -> object: pass +def StringIO(*args, **kwargs) -> object: ... class StringI(object): - def close() -> None: pass - def flush() -> None: 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() -> None: pass - def seek(a: int, *args, **kwargs) -> None: pass - def tell() -> int: pass + def close() -> None: ... + def flush() -> None: ... + def getvalue(*args, **kwargs) -> str: ... + def isatty() -> bool: ... + def read(*args, **kwargs) -> str: ... + def readline(*args, **kwargs) -> str: ... + def readlines(*args, **kwargs) -> List[str]: ... + def reset() -> None: ... + def seek(a: int, *args, **kwargs) -> None: ... + def tell() -> int: ... def truncate(*args, **kwargs) -> None: raise IOError() class StringO(object): - def close() -> None: pass - def flush() -> None: 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() -> None: pass - def seek(a: int, *args, **kwargs) -> None: pass - def tell() -> int: pass + def close() -> None: ... + def flush() -> None: ... + def getvalue(*args, **kwargs) -> str: ... + def isatty() -> bool: ... + def read(*args, **kwargs) -> str: ... + def readline(*args, **kwargs) -> str: ... + def readlines(*args, **kwargs) -> List[str]: ... + def reset() -> None: ... + def seek(a: int, *args, **kwargs) -> None: ... + def tell() -> int: ... def truncate(*args, **kwargs) -> None: raise IOError() - def write(a) -> None: pass - def writelines(*args, **kwargs) -> None: pass + def write(a) -> None: ... + def writelines(*args, **kwargs) -> None: ... diff --git a/python2/cmath.py b/python2/cmath.py index 9b1079f41..a0966d056 100644 --- a/python2/cmath.py +++ b/python2/cmath.py @@ -5,44 +5,44 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def acos(*args, **kwargs) -> complex: pass +def acos(*args, **kwargs) -> complex: ... -def acosh(*args, **kwargs) -> complex: pass +def acosh(*args, **kwargs) -> complex: ... -def asin(*args, **kwargs) -> complex: pass +def asin(*args, **kwargs) -> complex: ... -def asinh(*args, **kwargs) -> complex: pass +def asinh(*args, **kwargs) -> complex: ... -def atan(*args, **kwargs) -> complex: pass +def atan(*args, **kwargs) -> complex: ... -def atanh(*args, **kwargs) -> complex: pass +def atanh(*args, **kwargs) -> complex: ... -def cos(*args, **kwargs) -> complex: pass +def cos(*args, **kwargs) -> complex: ... -def cosh(*args, **kwargs) -> complex: pass +def cosh(*args, **kwargs) -> complex: ... -def exp(*args, **kwargs) -> complex: pass +def exp(*args, **kwargs) -> complex: ... -def isinf(a: complex) -> bool: pass +def isinf(a: complex) -> bool: ... -def isnan(a: complex) -> bool: pass +def isnan(a: complex) -> bool: ... -def log(a: complex, *args, **kwargs) -> complex: pass +def log(a: complex, *args, **kwargs) -> complex: ... -def log10(*args, **kwargs) -> complex: pass +def log10(*args, **kwargs) -> complex: ... -def phase(a: complex) -> float: pass +def phase(a: complex) -> float: ... -def polar(a: complex) -> tuple: pass +def polar(a: complex) -> tuple: ... -def rect(a: float, b: float) -> complex: pass +def rect(a: float, b: float) -> complex: ... -def sin(*args, **kwargs) -> complex: pass +def sin(*args, **kwargs) -> complex: ... -def sinh(*args, **kwargs) -> complex: pass +def sinh(*args, **kwargs) -> complex: ... -def sqrt(*args, **kwargs) -> complex: pass +def sqrt(*args, **kwargs) -> complex: ... -def tan(*args, **kwargs) -> complex: pass +def tan(*args, **kwargs) -> complex: ... -def tanh(*args, **kwargs) -> complex: pass +def tanh(*args, **kwargs) -> complex: ... diff --git a/python2/datetime.py b/python2/datetime.py index c623aa133..6c0421235 100644 --- a/python2/datetime.py +++ b/python2/datetime.py @@ -12,65 +12,65 @@ resolution = Undefined(object) class date(object): def __format__(a) -> unicode: raise ValueError() - def __reduce__() -> tuple: pass - def ctime() -> str: pass + def __reduce__() -> tuple: ... + def ctime() -> str: ... 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 + def fromtimestamp(a: float) -> object: ... + def isocalendar() -> tuple: ... + def isoformat() -> str: ... + def isoweekday() -> int: ... + def replace(*args, **kwargs) -> object: ... + def strftime(format) -> object: ... + def timetuple() -> object: ... + def today() -> object: ... + def toordinal() -> int: ... + def weekday() -> int: ... class datetime(object): - def __reduce__() -> tuple: pass + def __reduce__() -> tuple: ... 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 combine(date, time) -> object: ... + def ctime() -> str: ... + def date() -> object: ... + def dst() -> object: ... + def fromtimestamp(timestamp: float, *args, **kwargs) -> object: ... + def isoformat(*args, **kwargs) -> str: ... + def now(*args, **kwargs) -> object: ... + def replace(*args, **kwargs) -> object: ... 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 time() -> object: ... + def timetuple() -> object: ... + def timetz() -> object: ... + def tzname() -> object: ... + def utcfromtimestamp(a: float) -> object: ... + def utcnow() -> object: ... + def utcoffset() -> object: ... 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 + def __reduce__() -> tuple: ... + def dst() -> object: ... + def isoformat() -> str: ... + def replace(*args, **kwargs) -> object: ... + def strftime(format) -> object: ... + def tzname() -> object: ... + def utcoffset() -> object: ... class timedelta(object): - def __reduce__() -> tuple: pass - def total_seconds() -> int: pass + def __reduce__() -> tuple: ... + def total_seconds() -> int: ... class tzinfo(object): - def __reduce__() -> tuple: pass - def dst(*args, **kwargs) -> object: pass + def __reduce__() -> tuple: ... + def dst(*args, **kwargs) -> object: ... def fromutc(*args, **kwargs) -> object: raise TypeError() raise ValueError() - def tzname(*args, **kwargs) -> object: pass - def utcoffset(*args, **kwargs) -> object: pass + def tzname(*args, **kwargs) -> object: ... + def utcoffset(*args, **kwargs) -> object: ... diff --git a/python2/gc.py b/python2/gc.py index 76864b55e..9a9e08375 100644 --- a/python2/gc.py +++ b/python2/gc.py @@ -8,26 +8,26 @@ from typing import List, Tuple, Dict, Undefined, GenericType def collect(*args, **kwargs) -> int: raise ValueError() -def disable() -> None: pass +def disable() -> None: ... -def enable() -> None: pass +def enable() -> None: ... -def get_count() -> tuple: pass +def get_count() -> tuple: ... -def get_debug() -> int: pass +def get_debug() -> int: ... -def get_objects() -> list: pass +def get_objects() -> list: ... -def get_referents(*args, **kwargs) -> list: pass +def get_referents(*args, **kwargs) -> list: ... -def get_referrers(*args, **kwargs) -> list: pass +def get_referrers(*args, **kwargs) -> list: ... -def get_threshold() -> tuple: pass +def get_threshold() -> tuple: ... -def is_tracked(*args, **kwargs) -> bool: pass +def is_tracked(*args, **kwargs) -> bool: ... -def isenabled() -> bool: pass +def isenabled() -> bool: ... -def set_debug(a: int) -> None: pass +def set_debug(a: int) -> None: ... -def set_threshold(a: int, *args, **kwargs) -> None: pass +def set_threshold(a: int, *args, **kwargs) -> None: ... diff --git a/python2/math.py b/python2/math.py index ddff48e99..7983cb6d4 100644 --- a/python2/math.py +++ b/python2/math.py @@ -5,86 +5,86 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def acos(*args, **kwargs) -> float: pass +def acos(*args, **kwargs) -> float: ... -def acosh(*args, **kwargs) -> float: pass +def acosh(*args, **kwargs) -> float: ... -def asin(*args, **kwargs) -> float: pass +def asin(*args, **kwargs) -> float: ... -def asinh(*args, **kwargs) -> float: pass +def asinh(*args, **kwargs) -> float: ... -def atan(*args, **kwargs) -> float: pass +def atan(*args, **kwargs) -> float: ... -def atan2(*args, **kwargs) -> float: pass +def atan2(*args, **kwargs) -> float: ... -def atanh(*args, **kwargs) -> float: pass +def atanh(*args, **kwargs) -> float: ... -def ceil(*args, **kwargs) -> float: pass +def ceil(*args, **kwargs) -> float: ... -def copysign(*args, **kwargs) -> float: pass +def copysign(*args, **kwargs) -> float: ... -def cos(*args, **kwargs) -> float: pass +def cos(*args, **kwargs) -> float: ... -def cosh(*args, **kwargs) -> float: pass +def cosh(*args, **kwargs) -> float: ... -def degrees(*args, **kwargs) -> float: pass +def degrees(*args, **kwargs) -> float: ... -def erf(*args, **kwargs) -> float: pass +def erf(*args, **kwargs) -> float: ... -def erfc(*args, **kwargs) -> float: pass +def erfc(*args, **kwargs) -> float: ... -def exp(*args, **kwargs) -> float: pass +def exp(*args, **kwargs) -> float: ... -def expm1(*args, **kwargs) -> float: pass +def expm1(*args, **kwargs) -> float: ... -def fabs(*args, **kwargs) -> float: pass +def fabs(*args, **kwargs) -> float: ... def factorial(*args, **kwargs) -> int: raise ValueError() -def floor(*args, **kwargs) -> float: pass +def floor(*args, **kwargs) -> float: ... -def fmod(*args, **kwargs) -> float: pass +def fmod(*args, **kwargs) -> float: ... -def frexp(*args, **kwargs) -> tuple: pass +def frexp(*args, **kwargs) -> tuple: ... def fsum(*args, **kwargs) -> float: raise OverflowError() raise ValueError() -def gamma(*args, **kwargs) -> float: pass +def gamma(*args, **kwargs) -> float: ... -def hypot(*args, **kwargs) -> float: pass +def hypot(*args, **kwargs) -> float: ... -def isinf(*args, **kwargs) -> bool: pass +def isinf(*args, **kwargs) -> bool: ... -def isnan(*args, **kwargs) -> bool: pass +def isnan(*args, **kwargs) -> bool: ... def ldexp(a: float, b) -> float: raise TypeError() -def lgamma(*args, **kwargs) -> float: pass +def lgamma(*args, **kwargs) -> float: ... -def log(*args, **kwargs) -> float: pass +def log(*args, **kwargs) -> float: ... -def log10(*args, **kwargs) -> float: pass +def log10(*args, **kwargs) -> float: ... -def log1p(*args, **kwargs) -> float: pass +def log1p(*args, **kwargs) -> float: ... -def modf(*args, **kwargs) -> tuple: pass +def modf(*args, **kwargs) -> tuple: ... -def pow(*args, **kwargs) -> float: pass +def pow(*args, **kwargs) -> float: ... -def radians(*args, **kwargs) -> float: pass +def radians(*args, **kwargs) -> float: ... -def sin(*args, **kwargs) -> float: pass +def sin(*args, **kwargs) -> float: ... -def sinh(*args, **kwargs) -> float: pass +def sinh(*args, **kwargs) -> float: ... -def sqrt(*args, **kwargs) -> float: pass +def sqrt(*args, **kwargs) -> float: ... -def tan(*args, **kwargs) -> float: pass +def tan(*args, **kwargs) -> float: ... -def tanh(*args, **kwargs) -> float: pass +def tanh(*args, **kwargs) -> float: ... -def trunc(*args, **kwargs) -> object: pass +def trunc(*args, **kwargs) -> object: ... diff --git a/python2/operator.py b/python2/operator.py index feaba57fe..6f53b842e 100644 --- a/python2/operator.py +++ b/python2/operator.py @@ -5,225 +5,225 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def __abs__(*args, **kwargs) -> object: pass +def __abs__(*args, **kwargs) -> object: ... -def __add__(*args, **kwargs) -> object: pass +def __add__(*args, **kwargs) -> object: ... -def __and__(*args, **kwargs) -> object: pass +def __and__(*args, **kwargs) -> object: ... -def __concat__(*args, **kwargs) -> object: pass +def __concat__(*args, **kwargs) -> object: ... -def __contains__(*args, **kwargs) -> bool: pass +def __contains__(*args, **kwargs) -> bool: ... -def __delitem__(*args, **kwargs) -> None: pass +def __delitem__(*args, **kwargs) -> None: ... -def __delslice__(a, b: int, c: int) -> None: pass +def __delslice__(a, b: int, c: int) -> None: ... -def __div__(*args, **kwargs) -> object: pass +def __div__(*args, **kwargs) -> object: ... -def __eq__(*args, **kwargs) -> object: pass +def __eq__(*args, **kwargs) -> object: ... -def __floordiv__(*args, **kwargs) -> object: pass +def __floordiv__(*args, **kwargs) -> object: ... -def __ge__(*args, **kwargs) -> object: pass +def __ge__(*args, **kwargs) -> object: ... -def __getitem__(*args, **kwargs) -> object: pass +def __getitem__(*args, **kwargs) -> object: ... -def __getslice__(a, b: int, c: int) -> object: pass +def __getslice__(a, b: int, c: int) -> object: ... -def __gt__(*args, **kwargs) -> object: pass +def __gt__(*args, **kwargs) -> object: ... -def __iadd__(*args, **kwargs) -> object: pass +def __iadd__(*args, **kwargs) -> object: ... -def __iand__(*args, **kwargs) -> object: pass +def __iand__(*args, **kwargs) -> object: ... -def __iconcat__(*args, **kwargs) -> object: pass +def __iconcat__(*args, **kwargs) -> object: ... -def __idiv__(*args, **kwargs) -> object: pass +def __idiv__(*args, **kwargs) -> object: ... -def __ifloordiv__(*args, **kwargs) -> object: pass +def __ifloordiv__(*args, **kwargs) -> object: ... -def __ilshift__(*args, **kwargs) -> object: pass +def __ilshift__(*args, **kwargs) -> object: ... -def __imod__(*args, **kwargs) -> object: pass +def __imod__(*args, **kwargs) -> object: ... -def __imul__(*args, **kwargs) -> object: pass +def __imul__(*args, **kwargs) -> object: ... -def __index__(*args, **kwargs) -> object: pass +def __index__(*args, **kwargs) -> object: ... -def __inv__(*args, **kwargs) -> object: pass +def __inv__(*args, **kwargs) -> object: ... -def __invert__(*args, **kwargs) -> object: pass +def __invert__(*args, **kwargs) -> object: ... -def __ior__(*args, **kwargs) -> object: pass +def __ior__(*args, **kwargs) -> object: ... -def __ipow__(*args, **kwargs) -> object: pass +def __ipow__(*args, **kwargs) -> object: ... -def __irepeat__(a, b: int) -> object: pass +def __irepeat__(a, b: int) -> object: ... -def __irshift__(*args, **kwargs) -> object: pass +def __irshift__(*args, **kwargs) -> object: ... -def __isub__(*args, **kwargs) -> object: pass +def __isub__(*args, **kwargs) -> object: ... -def __itruediv__(*args, **kwargs) -> object: pass +def __itruediv__(*args, **kwargs) -> object: ... -def __ixor__(*args, **kwargs) -> object: pass +def __ixor__(*args, **kwargs) -> object: ... -def __le__(*args, **kwargs) -> object: pass +def __le__(*args, **kwargs) -> object: ... -def __lshift__(*args, **kwargs) -> object: pass +def __lshift__(*args, **kwargs) -> object: ... -def __lt__(*args, **kwargs) -> object: pass +def __lt__(*args, **kwargs) -> object: ... -def __mod__(*args, **kwargs) -> object: pass +def __mod__(*args, **kwargs) -> object: ... -def __mul__(*args, **kwargs) -> object: pass +def __mul__(*args, **kwargs) -> object: ... -def __ne__(*args, **kwargs) -> object: pass +def __ne__(*args, **kwargs) -> object: ... -def __neg__(*args, **kwargs) -> object: pass +def __neg__(*args, **kwargs) -> object: ... -def __not__(*args, **kwargs) -> bool: pass +def __not__(*args, **kwargs) -> bool: ... -def __or__(*args, **kwargs) -> object: pass +def __or__(*args, **kwargs) -> object: ... -def __pos__(*args, **kwargs) -> object: pass +def __pos__(*args, **kwargs) -> object: ... -def __pow__(*args, **kwargs) -> object: pass +def __pow__(*args, **kwargs) -> object: ... -def __repeat__(a, b: int) -> object: pass +def __repeat__(a, b: int) -> object: ... -def __rshift__(*args, **kwargs) -> object: pass +def __rshift__(*args, **kwargs) -> object: ... -def __setitem__(*args, **kwargs) -> None: pass +def __setitem__(*args, **kwargs) -> None: ... -def __setslice__(a, b: int, c: int, d) -> None: pass +def __setslice__(a, b: int, c: int, d) -> None: ... -def __sub__(*args, **kwargs) -> object: pass +def __sub__(*args, **kwargs) -> object: ... -def __truediv__(*args, **kwargs) -> object: pass +def __truediv__(*args, **kwargs) -> object: ... -def __xor__(*args, **kwargs) -> object: pass +def __xor__(*args, **kwargs) -> object: ... -def abs(*args, **kwargs) -> object: pass +def abs(*args, **kwargs) -> object: ... -def add(*args, **kwargs) -> object: pass +def add(*args, **kwargs) -> object: ... -def and_(*args, **kwargs) -> object: pass +def and_(*args, **kwargs) -> object: ... -def concat(*args, **kwargs) -> object: pass +def concat(*args, **kwargs) -> object: ... -def contains(*args, **kwargs) -> bool: pass +def contains(*args, **kwargs) -> bool: ... -def countOf(*args, **kwargs) -> int: pass +def countOf(*args, **kwargs) -> int: ... -def delitem(*args, **kwargs) -> None: pass +def delitem(*args, **kwargs) -> None: ... -def delslice(a, b: int, c: int) -> None: pass +def delslice(a, b: int, c: int) -> None: ... -def div(*args, **kwargs) -> object: pass +def div(*args, **kwargs) -> object: ... -def eq(*args, **kwargs) -> object: pass +def eq(*args, **kwargs) -> object: ... -def floordiv(*args, **kwargs) -> object: pass +def floordiv(*args, **kwargs) -> object: ... -def ge(*args, **kwargs) -> object: pass +def ge(*args, **kwargs) -> object: ... -def getitem(*args, **kwargs) -> object: pass +def getitem(*args, **kwargs) -> object: ... -def getslice(a, b: int, c: int) -> object: pass +def getslice(a, b: int, c: int) -> object: ... -def gt(*args, **kwargs) -> object: pass +def gt(*args, **kwargs) -> object: ... -def iadd(*args, **kwargs) -> object: pass +def iadd(*args, **kwargs) -> object: ... -def iand(*args, **kwargs) -> object: pass +def iand(*args, **kwargs) -> object: ... -def iconcat(*args, **kwargs) -> object: pass +def iconcat(*args, **kwargs) -> object: ... -def idiv(*args, **kwargs) -> object: pass +def idiv(*args, **kwargs) -> object: ... -def ifloordiv(*args, **kwargs) -> object: pass +def ifloordiv(*args, **kwargs) -> object: ... -def ilshift(*args, **kwargs) -> object: pass +def ilshift(*args, **kwargs) -> object: ... -def imod(*args, **kwargs) -> object: pass +def imod(*args, **kwargs) -> object: ... -def imul(*args, **kwargs) -> object: pass +def imul(*args, **kwargs) -> object: ... -def index(*args, **kwargs) -> object: pass +def index(*args, **kwargs) -> object: ... -def indexOf(*args, **kwargs) -> int: pass +def indexOf(*args, **kwargs) -> int: ... -def inv(*args, **kwargs) -> object: pass +def inv(*args, **kwargs) -> object: ... -def invert(*args, **kwargs) -> object: pass +def invert(*args, **kwargs) -> object: ... -def ior(*args, **kwargs) -> object: pass +def ior(*args, **kwargs) -> object: ... -def ipow(*args, **kwargs) -> object: pass +def ipow(*args, **kwargs) -> object: ... -def irepeat(a, b: int) -> object: pass +def irepeat(a, b: int) -> object: ... -def irshift(*args, **kwargs) -> object: pass +def irshift(*args, **kwargs) -> object: ... -def isCallable(*args, **kwargs) -> bool: pass +def isCallable(*args, **kwargs) -> bool: ... -def isMappingType(*args, **kwargs) -> bool: pass +def isMappingType(*args, **kwargs) -> bool: ... -def isNumberType(*args, **kwargs) -> bool: pass +def isNumberType(*args, **kwargs) -> bool: ... -def isSequenceType(*args, **kwargs) -> bool: pass +def isSequenceType(*args, **kwargs) -> bool: ... -def is_(*args, **kwargs) -> bool: pass +def is_(*args, **kwargs) -> bool: ... -def is_not(*args, **kwargs) -> bool: pass +def is_not(*args, **kwargs) -> bool: ... -def isub(*args, **kwargs) -> object: pass +def isub(*args, **kwargs) -> object: ... -def itruediv(*args, **kwargs) -> object: pass +def itruediv(*args, **kwargs) -> object: ... -def ixor(*args, **kwargs) -> object: pass +def ixor(*args, **kwargs) -> object: ... -def le(*args, **kwargs) -> object: pass +def le(*args, **kwargs) -> object: ... -def lshift(*args, **kwargs) -> object: pass +def lshift(*args, **kwargs) -> object: ... -def lt(*args, **kwargs) -> object: pass +def lt(*args, **kwargs) -> object: ... -def mod(*args, **kwargs) -> object: pass +def mod(*args, **kwargs) -> object: ... -def mul(*args, **kwargs) -> object: pass +def mul(*args, **kwargs) -> object: ... -def ne(*args, **kwargs) -> object: pass +def ne(*args, **kwargs) -> object: ... -def neg(*args, **kwargs) -> object: pass +def neg(*args, **kwargs) -> object: ... -def not_(*args, **kwargs) -> bool: pass +def not_(*args, **kwargs) -> bool: ... -def or_(*args, **kwargs) -> object: pass +def or_(*args, **kwargs) -> object: ... -def pos(*args, **kwargs) -> object: pass +def pos(*args, **kwargs) -> object: ... -def pow(*args, **kwargs) -> object: pass +def pow(*args, **kwargs) -> object: ... -def repeat(a, b: int) -> object: pass +def repeat(a, b: int) -> object: ... -def rshift(*args, **kwargs) -> object: pass +def rshift(*args, **kwargs) -> object: ... -def sequenceIncludes(*args, **kwargs) -> bool: pass +def sequenceIncludes(*args, **kwargs) -> bool: ... -def setitem(*args, **kwargs) -> None: pass +def setitem(*args, **kwargs) -> None: ... -def setslice(a, b: int, c: int, d) -> None: pass +def setslice(a, b: int, c: int, d) -> None: ... -def sub(*args, **kwargs) -> object: pass +def sub(*args, **kwargs) -> object: ... -def truediv(*args, **kwargs) -> object: pass +def truediv(*args, **kwargs) -> object: ... -def truth(*args, **kwargs) -> bool: pass +def truth(*args, **kwargs) -> bool: ... -def xor(*args, **kwargs) -> object: pass +def xor(*args, **kwargs) -> object: ... class attrgetter(object): diff --git a/python2/signal.py b/python2/signal.py index 0a48aadaf..38ace8630 100644 --- a/python2/signal.py +++ b/python2/signal.py @@ -48,22 +48,22 @@ SIGXFSZ = Undefined(int) SIG_DFL = Undefined(long) SIG_IGN = Undefined(long) -def alarm(a: int) -> int: pass +def alarm(a: int) -> int: ... def default_int_handler(*args, **kwargs) -> object: raise KeyboardInterrupt() -def getitimer(a: int) -> tuple: pass +def getitimer(a: int) -> tuple: ... def getsignal(a: int) -> None: raise ValueError() -def pause() -> None: pass +def pause() -> None: ... def set_wakeup_fd(a: int) -> long: raise ValueError() -def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass +def setitimer(a: int, b: float, *args, **kwargs) -> tuple: ... def siginterrupt(a: int, b: int) -> None: raise RuntimeError() diff --git a/python2/thread.py b/python2/thread.py index 043f4285e..a6957f0c2 100644 --- a/python2/thread.py +++ b/python2/thread.py @@ -8,11 +8,11 @@ from typing import List, Tuple, Dict, Undefined, GenericType LockType = Undefined(lock) error = Undefined(object) -def _count() -> int: pass +def _count() -> int: ... -def allocate() -> lock: pass +def allocate() -> lock: ... -def allocate_lock() -> lock: pass +def allocate_lock() -> lock: ... def exit() -> object: raise SystemExit() @@ -20,9 +20,9 @@ def exit() -> object: def exit_thread() -> object: raise SystemExit() -def get_ident() -> int: pass +def get_ident() -> int: ... -def interrupt_main() -> None: pass +def interrupt_main() -> None: ... def stack_size(*args, **kwargs) -> int: raise ValueError() @@ -43,11 +43,11 @@ class _localdummy(object): pass class lock(object): - def __enter__(*args, **kwargs) -> bool: pass - def __exit__(*args, **kwargs) -> None: 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() -> None: pass - def release_lock() -> None: pass + def __enter__(*args, **kwargs) -> bool: ... + def __exit__(*args, **kwargs) -> None: ... + def acquire(*args, **kwargs) -> bool: ... + def acquire_lock(*args, **kwargs) -> bool: ... + def locked() -> bool: ... + def locked_lock() -> bool: ... + def release() -> None: ... + def release_lock() -> None: ... diff --git a/python2/time.py b/python2/time.py index b3209872b..81262a145 100644 --- a/python2/time.py +++ b/python2/time.py @@ -8,27 +8,27 @@ from typing import List, Tuple, Dict, Undefined, GenericType def asctime(*args, **kwargs) -> str: raise ValueError() -def clock() -> float: pass +def clock() -> float: ... def ctime(*args, **kwargs) -> str: raise ValueError() -def gmtime(*args, **kwargs) -> tuple: pass +def gmtime(*args, **kwargs) -> tuple: ... -def localtime(*args, **kwargs) -> tuple: pass +def localtime(*args, **kwargs) -> tuple: ... def mktime(*args, **kwargs) -> float: raise OverflowError() -def sleep(a: float) -> None: pass +def sleep(a: float) -> None: ... def strftime(a: str, *args, **kwargs) -> str: raise MemoryError() raise ValueError() -def strptime(*args, **kwargs) -> object: pass +def strptime(*args, **kwargs) -> object: ... def time() -> float: raise IOError() -def tzset() -> None: pass +def tzset() -> None: ... diff --git a/python2/xxsubtype.py b/python2/xxsubtype.py index 5b9f8be55..38a9d2485 100644 --- a/python2/xxsubtype.py +++ b/python2/xxsubtype.py @@ -5,15 +5,15 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def bench(a, b: str, *args, **kwargs) -> float: pass +def bench(a, b: str, *args, **kwargs) -> float: ... class spamdict(object): - def getstate() -> int: pass - def setstate(a: int) -> None: pass + def getstate() -> int: ... + def setstate(a: int) -> None: ... class spamlist(object): - def classmeth(*args, **kwargs) -> tuple: pass - def getstate() -> int: pass - def setstate(a: int) -> None: pass - def staticmeth(*args, **kwargs) -> tuple: pass + def classmeth(*args, **kwargs) -> tuple: ... + def getstate() -> int: ... + def setstate(a: int) -> None: ... + def staticmeth(*args, **kwargs) -> tuple: ... diff --git a/python2/zipimport.py b/python2/zipimport.py index 9db82ae63..eb90f0061 100644 --- a/python2/zipimport.py +++ b/python2/zipimport.py @@ -6,11 +6,11 @@ from typing import List, Tuple, Dict, Undefined, GenericType class zipimporter(object): - def find_module(a: str, *args, **kwargs) -> None: pass - def get_code(a: str) -> object: pass + def find_module(a: str, *args, **kwargs) -> None: ... + def get_code(a: str) -> object: ... 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 + def get_filename(a: str) -> str: ... + def get_source(a: str) -> object: ... + def is_package(a: str) -> bool: ... + def load_module(a: str) -> object: ... diff --git a/python2/zlib.py b/python2/zlib.py index fbc6168f3..83e84509a 100644 --- a/python2/zlib.py +++ b/python2/zlib.py @@ -5,7 +5,7 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def adler32(a, *args, **kwargs) -> int: pass +def adler32(a, *args, **kwargs) -> int: ... def compress(a, *args, **kwargs) -> str: raise MemoryError() @@ -14,7 +14,7 @@ def compressobj(*args, **kwargs) -> object: raise MemoryError() raise ValueError() -def crc32(a, *args, **kwargs) -> int: pass +def crc32(a, *args, **kwargs) -> int: ... def decompress(a, *args, **kwargs) -> str: raise MemoryError() diff --git a/python3/_bisect.py b/python3/_bisect.py index 42a38e860..916e1175d 100644 --- a/python3/_bisect.py +++ b/python3/_bisect.py @@ -5,14 +5,14 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def bisect(a, x, *args, **kwargs) -> long: pass +def bisect(a, x, *args, **kwargs) -> long: ... -def bisect_left(a, x, *args, **kwargs) -> long: pass +def bisect_left(a, x, *args, **kwargs) -> long: ... -def bisect_right(a, x, *args, **kwargs) -> long: pass +def bisect_right(a, x, *args, **kwargs) -> long: ... -def insort(a, x, *args, **kwargs) -> None: pass +def insort(a, x, *args, **kwargs) -> None: ... -def insort_left(a, x, *args, **kwargs) -> None: pass +def insort_left(a, x, *args, **kwargs) -> None: ... -def insort_right(a, x, *args, **kwargs) -> None: pass +def insort_right(a, x, *args, **kwargs) -> None: ... diff --git a/python3/_codecs.py b/python3/_codecs.py index c12a509ca..0d5f5774f 100644 --- a/python3/_codecs.py +++ b/python3/_codecs.py @@ -5,87 +5,87 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def _forget_codec(a: str) -> None: pass +def _forget_codec(a: str) -> None: ... -def ascii_decode(a, *args, **kwargs) -> tuple: pass +def ascii_decode(a, *args, **kwargs) -> tuple: ... -def ascii_encode(a, *args, **kwargs) -> tuple: pass +def ascii_encode(a, *args, **kwargs) -> tuple: ... -def charmap_build(a: str) -> object: pass +def charmap_build(a: str) -> object: ... -def charmap_decode(a, *args, **kwargs) -> tuple: pass +def charmap_decode(a, *args, **kwargs) -> tuple: ... -def charmap_encode(a, *args, **kwargs) -> tuple: pass +def charmap_encode(a, *args, **kwargs) -> tuple: ... -def decode(a, *args, **kwargs) -> object: pass +def decode(a, *args, **kwargs) -> object: ... -def encode(a, *args, **kwargs) -> object: pass +def encode(a, *args, **kwargs) -> object: ... -def escape_decode(a, *args, **kwargs) -> tuple: pass +def escape_decode(a, *args, **kwargs) -> tuple: ... def escape_encode(a, *args, **kwargs) -> tuple: raise OverflowError() -def latin_1_decode(a, *args, **kwargs) -> tuple: pass +def latin_1_decode(a, *args, **kwargs) -> tuple: ... -def latin_1_encode(a, *args, **kwargs) -> tuple: pass +def latin_1_encode(a, *args, **kwargs) -> tuple: ... -def lookup(a: str) -> object: pass +def lookup(a: str) -> object: ... -def lookup_error(a: str) -> object: pass +def lookup_error(a: str) -> object: ... -def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: pass +def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ... -def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: pass +def raw_unicode_escape_encode(a, *args, **kwargs) -> tuple: ... -def readbuffer_encode(a, *args, **kwargs) -> tuple: pass +def readbuffer_encode(a, *args, **kwargs) -> tuple: ... -def register(*args, **kwargs) -> None: pass +def register(*args, **kwargs) -> None: ... -def register_error(a: str, b) -> None: pass +def register_error(a: str, b) -> None: ... -def unicode_escape_decode(a, *args, **kwargs) -> tuple: pass +def unicode_escape_decode(a, *args, **kwargs) -> tuple: ... -def unicode_escape_encode(a, *args, **kwargs) -> tuple: pass +def unicode_escape_encode(a, *args, **kwargs) -> tuple: ... -def unicode_internal_decode(a, *args, **kwargs) -> tuple: pass +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: pass +def utf_16_be_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_be_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_be_encode(a, *args, **kwargs) -> tuple: ... -def utf_16_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_encode(a, *args, **kwargs) -> tuple: ... -def utf_16_ex_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_ex_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_le_decode(a, *args, **kwargs) -> tuple: pass +def utf_16_le_decode(a, *args, **kwargs) -> tuple: ... -def utf_16_le_encode(a, *args, **kwargs) -> tuple: pass +def utf_16_le_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_be_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_be_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_be_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_be_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_encode(a, *args, **kwargs) -> tuple: ... -def utf_32_ex_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_ex_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_le_decode(a, *args, **kwargs) -> tuple: pass +def utf_32_le_decode(a, *args, **kwargs) -> tuple: ... -def utf_32_le_encode(a, *args, **kwargs) -> tuple: pass +def utf_32_le_encode(a, *args, **kwargs) -> tuple: ... -def utf_7_decode(a, *args, **kwargs) -> tuple: pass +def utf_7_decode(a, *args, **kwargs) -> tuple: ... -def utf_7_encode(a, *args, **kwargs) -> tuple: pass +def utf_7_encode(a, *args, **kwargs) -> tuple: ... -def utf_8_decode(a, *args, **kwargs) -> tuple: pass +def utf_8_decode(a, *args, **kwargs) -> tuple: ... -def utf_8_encode(a, *args, **kwargs) -> tuple: pass +def utf_8_encode(a, *args, **kwargs) -> tuple: ... diff --git a/python3/_heapq.py b/python3/_heapq.py index 353205270..ec4d029b6 100644 --- a/python3/_heapq.py +++ b/python3/_heapq.py @@ -22,6 +22,6 @@ def heapreplace(*args, **kwargs) -> object: raise IndexError() raise TypeError() -def nlargest(a: int, b) -> List[object]: pass +def nlargest(a: int, b) -> List[object]: ... -def nsmallest(a: int, b) -> List[object]: pass +def nsmallest(a: int, b) -> List[object]: ... diff --git a/python3/_operator.py b/python3/_operator.py index d74dd2f4a..7fc850e5c 100644 --- a/python3/_operator.py +++ b/python3/_operator.py @@ -9,100 +9,100 @@ def _compare_digest(a, b) -> bool: raise BufferError() raise TypeError() -def abs(*args, **kwargs) -> object: pass +def abs(*args, **kwargs) -> object: ... -def add(*args, **kwargs) -> object: pass +def add(*args, **kwargs) -> object: ... -def and_(*args, **kwargs) -> object: pass +def and_(*args, **kwargs) -> object: ... -def concat(*args, **kwargs) -> object: pass +def concat(*args, **kwargs) -> object: ... -def contains(*args, **kwargs) -> bool: pass +def contains(*args, **kwargs) -> bool: ... -def countOf(*args, **kwargs) -> long: pass +def countOf(*args, **kwargs) -> long: ... -def delitem(*args, **kwargs) -> None: pass +def delitem(*args, **kwargs) -> None: ... -def eq(*args, **kwargs) -> object: pass +def eq(*args, **kwargs) -> object: ... -def floordiv(*args, **kwargs) -> object: pass +def floordiv(*args, **kwargs) -> object: ... -def ge(*args, **kwargs) -> object: pass +def ge(*args, **kwargs) -> object: ... -def getitem(*args, **kwargs) -> object: pass +def getitem(*args, **kwargs) -> object: ... -def gt(*args, **kwargs) -> object: pass +def gt(*args, **kwargs) -> object: ... -def iadd(*args, **kwargs) -> object: pass +def iadd(*args, **kwargs) -> object: ... -def iand(*args, **kwargs) -> object: pass +def iand(*args, **kwargs) -> object: ... -def iconcat(*args, **kwargs) -> object: pass +def iconcat(*args, **kwargs) -> object: ... -def ifloordiv(*args, **kwargs) -> object: pass +def ifloordiv(*args, **kwargs) -> object: ... -def ilshift(*args, **kwargs) -> object: pass +def ilshift(*args, **kwargs) -> object: ... -def imod(*args, **kwargs) -> object: pass +def imod(*args, **kwargs) -> object: ... -def imul(*args, **kwargs) -> object: pass +def imul(*args, **kwargs) -> object: ... -def index(*args, **kwargs) -> object: pass +def index(*args, **kwargs) -> object: ... -def indexOf(*args, **kwargs) -> long: pass +def indexOf(*args, **kwargs) -> long: ... -def inv(*args, **kwargs) -> object: pass +def inv(*args, **kwargs) -> object: ... -def invert(*args, **kwargs) -> object: pass +def invert(*args, **kwargs) -> object: ... -def ior(*args, **kwargs) -> object: pass +def ior(*args, **kwargs) -> object: ... -def ipow(*args, **kwargs) -> object: pass +def ipow(*args, **kwargs) -> object: ... -def irshift(*args, **kwargs) -> object: pass +def irshift(*args, **kwargs) -> object: ... -def is_(*args, **kwargs) -> bool: pass +def is_(*args, **kwargs) -> bool: ... -def is_not(*args, **kwargs) -> bool: pass +def is_not(*args, **kwargs) -> bool: ... -def isub(*args, **kwargs) -> object: pass +def isub(*args, **kwargs) -> object: ... -def itruediv(*args, **kwargs) -> object: pass +def itruediv(*args, **kwargs) -> object: ... -def ixor(*args, **kwargs) -> object: pass +def ixor(*args, **kwargs) -> object: ... -def le(*args, **kwargs) -> object: pass +def le(*args, **kwargs) -> object: ... -def length_hint(a, *args, **kwargs) -> long: pass +def length_hint(a, *args, **kwargs) -> long: ... -def lshift(*args, **kwargs) -> object: pass +def lshift(*args, **kwargs) -> object: ... -def lt(*args, **kwargs) -> object: pass +def lt(*args, **kwargs) -> object: ... -def mod(*args, **kwargs) -> object: pass +def mod(*args, **kwargs) -> object: ... -def mul(*args, **kwargs) -> object: pass +def mul(*args, **kwargs) -> object: ... -def ne(*args, **kwargs) -> object: pass +def ne(*args, **kwargs) -> object: ... -def neg(*args, **kwargs) -> object: pass +def neg(*args, **kwargs) -> object: ... -def not_(*args, **kwargs) -> bool: pass +def not_(*args, **kwargs) -> bool: ... -def or_(*args, **kwargs) -> object: pass +def or_(*args, **kwargs) -> object: ... -def pos(*args, **kwargs) -> object: pass +def pos(*args, **kwargs) -> object: ... -def pow(*args, **kwargs) -> object: pass +def pow(*args, **kwargs) -> object: ... -def rshift(*args, **kwargs) -> object: pass +def rshift(*args, **kwargs) -> object: ... -def setitem(*args, **kwargs) -> None: pass +def setitem(*args, **kwargs) -> None: ... -def sub(*args, **kwargs) -> object: pass +def sub(*args, **kwargs) -> object: ... -def truediv(*args, **kwargs) -> object: pass +def truediv(*args, **kwargs) -> object: ... -def truth(*args, **kwargs) -> bool: pass +def truth(*args, **kwargs) -> bool: ... -def xor(*args, **kwargs) -> object: pass +def xor(*args, **kwargs) -> object: ... diff --git a/python3/_stat.py b/python3/_stat.py index 02cb9386a..ca2fbb7f9 100644 --- a/python3/_stat.py +++ b/python3/_stat.py @@ -5,28 +5,28 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def S_IFMT(*args, **kwargs) -> long: pass +def S_IFMT(*args, **kwargs) -> long: ... -def S_IMODE(*args, **kwargs) -> long: pass +def S_IMODE(*args, **kwargs) -> long: ... -def S_ISBLK(*args, **kwargs) -> bool: pass +def S_ISBLK(*args, **kwargs) -> bool: ... -def S_ISCHR(*args, **kwargs) -> bool: pass +def S_ISCHR(*args, **kwargs) -> bool: ... -def S_ISDIR(*args, **kwargs) -> bool: pass +def S_ISDIR(*args, **kwargs) -> bool: ... -def S_ISDOOR(*args, **kwargs) -> bool: pass +def S_ISDOOR(*args, **kwargs) -> bool: ... -def S_ISFIFO(*args, **kwargs) -> bool: pass +def S_ISFIFO(*args, **kwargs) -> bool: ... -def S_ISLNK(*args, **kwargs) -> bool: pass +def S_ISLNK(*args, **kwargs) -> bool: ... -def S_ISPORT(*args, **kwargs) -> bool: pass +def S_ISPORT(*args, **kwargs) -> bool: ... -def S_ISREG(*args, **kwargs) -> bool: pass +def S_ISREG(*args, **kwargs) -> bool: ... -def S_ISSOCK(*args, **kwargs) -> bool: pass +def S_ISSOCK(*args, **kwargs) -> bool: ... -def S_ISWHT(*args, **kwargs) -> bool: pass +def S_ISWHT(*args, **kwargs) -> bool: ... -def filemode(*args, **kwargs) -> unicode: pass +def filemode(*args, **kwargs) -> unicode: ... diff --git a/python3/_tracemalloc.py b/python3/_tracemalloc.py index ae5bf26ba..c9642165e 100644 --- a/python3/_tracemalloc.py +++ b/python3/_tracemalloc.py @@ -5,22 +5,22 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def _get_object_traceback(*args, **kwargs) -> object: pass +def _get_object_traceback(*args, **kwargs) -> object: ... def _get_traces() -> object: raise MemoryError() -def clear_traces() -> None: pass +def clear_traces() -> None: ... -def get_traceback_limit() -> long: pass +def get_traceback_limit() -> long: ... -def get_traced_memory() -> tuple: pass +def get_traced_memory() -> tuple: ... -def get_tracemalloc_memory() -> object: pass +def get_tracemalloc_memory() -> object: ... -def is_tracing() -> bool: pass +def is_tracing() -> bool: ... def start(*args, **kwargs) -> None: raise ValueError() -def stop() -> None: pass +def stop() -> None: ... diff --git a/python3/_warnings.py b/python3/_warnings.py index 811d1daaf..2811fa7b7 100644 --- a/python3/_warnings.py +++ b/python3/_warnings.py @@ -5,8 +5,8 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def _filters_mutated() -> None: pass +def _filters_mutated() -> None: ... -def warn(message, *args, **kwargs) -> None: pass +def warn(message, *args, **kwargs) -> None: ... -def warn_explicit(message, category, filename: str, lineno: int, *args, **kwargs) -> None: pass +def warn_explicit(message, category, filename: str, lineno: int, *args, **kwargs) -> None: ... diff --git a/python3/atexit.py b/python3/atexit.py index a13dcf268..8ac754bdf 100644 --- a/python3/atexit.py +++ b/python3/atexit.py @@ -5,14 +5,14 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def _clear() -> None: pass +def _clear() -> None: ... -def _ncallbacks() -> long: pass +def _ncallbacks() -> long: ... -def _run_exitfuncs() -> None: pass +def _run_exitfuncs() -> None: ... def register(*args, **kwargs) -> object: raise MemoryError() raise TypeError() -def unregister(*args, **kwargs) -> None: pass +def unregister(*args, **kwargs) -> None: ... diff --git a/python3/cmath.py b/python3/cmath.py index 575111865..8de81206c 100644 --- a/python3/cmath.py +++ b/python3/cmath.py @@ -5,46 +5,46 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def acos(*args, **kwargs) -> complex: pass +def acos(*args, **kwargs) -> complex: ... -def acosh(*args, **kwargs) -> complex: pass +def acosh(*args, **kwargs) -> complex: ... -def asin(*args, **kwargs) -> complex: pass +def asin(*args, **kwargs) -> complex: ... -def asinh(*args, **kwargs) -> complex: pass +def asinh(*args, **kwargs) -> complex: ... -def atan(*args, **kwargs) -> complex: pass +def atan(*args, **kwargs) -> complex: ... -def atanh(*args, **kwargs) -> complex: pass +def atanh(*args, **kwargs) -> complex: ... -def cos(*args, **kwargs) -> complex: pass +def cos(*args, **kwargs) -> complex: ... -def cosh(*args, **kwargs) -> complex: pass +def cosh(*args, **kwargs) -> complex: ... -def exp(*args, **kwargs) -> complex: pass +def exp(*args, **kwargs) -> complex: ... -def isfinite(a: complex) -> bool: pass +def isfinite(a: complex) -> bool: ... -def isinf(a: complex) -> bool: pass +def isinf(a: complex) -> bool: ... -def isnan(a: complex) -> bool: pass +def isnan(a: complex) -> bool: ... -def log(a: complex, *args, **kwargs) -> complex: pass +def log(a: complex, *args, **kwargs) -> complex: ... -def log10(*args, **kwargs) -> complex: pass +def log10(*args, **kwargs) -> complex: ... -def phase(a: complex) -> float: pass +def phase(a: complex) -> float: ... -def polar(a: complex) -> tuple: pass +def polar(a: complex) -> tuple: ... -def rect(a: float, b: float) -> complex: pass +def rect(a: float, b: float) -> complex: ... -def sin(*args, **kwargs) -> complex: pass +def sin(*args, **kwargs) -> complex: ... -def sinh(*args, **kwargs) -> complex: pass +def sinh(*args, **kwargs) -> complex: ... -def sqrt(*args, **kwargs) -> complex: pass +def sqrt(*args, **kwargs) -> complex: ... -def tan(*args, **kwargs) -> complex: pass +def tan(*args, **kwargs) -> complex: ... -def tanh(*args, **kwargs) -> complex: pass +def tanh(*args, **kwargs) -> complex: ... diff --git a/python3/marshal.py b/python3/marshal.py index e86aa8b45..569fe223d 100644 --- a/python3/marshal.py +++ b/python3/marshal.py @@ -5,11 +5,11 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def dump(a, b, *args, **kwargs) -> object: pass +def dump(a, b, *args, **kwargs) -> object: ... -def dumps(a, *args, **kwargs) -> object: pass +def dumps(a, *args, **kwargs) -> object: ... def load(*args, **kwargs) -> object: raise TypeError() -def loads(a) -> object: pass +def loads(a) -> object: ... diff --git a/python3/math.py b/python3/math.py index f45edacbe..a86c522f4 100644 --- a/python3/math.py +++ b/python3/math.py @@ -5,91 +5,91 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def acos(*args, **kwargs) -> object: pass +def acos(*args, **kwargs) -> object: ... -def acosh(*args, **kwargs) -> object: pass +def acosh(*args, **kwargs) -> object: ... -def asin(*args, **kwargs) -> object: pass +def asin(*args, **kwargs) -> object: ... -def asinh(*args, **kwargs) -> object: pass +def asinh(*args, **kwargs) -> object: ... -def atan(*args, **kwargs) -> object: pass +def atan(*args, **kwargs) -> object: ... -def atan2(*args, **kwargs) -> float: pass +def atan2(*args, **kwargs) -> float: ... -def atanh(*args, **kwargs) -> object: pass +def atanh(*args, **kwargs) -> object: ... -def ceil(*args, **kwargs) -> object: pass +def ceil(*args, **kwargs) -> object: ... -def copysign(*args, **kwargs) -> float: pass +def copysign(*args, **kwargs) -> float: ... -def cos(*args, **kwargs) -> object: pass +def cos(*args, **kwargs) -> object: ... -def cosh(*args, **kwargs) -> object: pass +def cosh(*args, **kwargs) -> object: ... -def degrees(*args, **kwargs) -> float: pass +def degrees(*args, **kwargs) -> float: ... -def erf(*args, **kwargs) -> float: pass +def erf(*args, **kwargs) -> float: ... -def erfc(*args, **kwargs) -> float: pass +def erfc(*args, **kwargs) -> float: ... -def exp(*args, **kwargs) -> object: pass +def exp(*args, **kwargs) -> object: ... -def expm1(*args, **kwargs) -> object: pass +def expm1(*args, **kwargs) -> object: ... -def fabs(*args, **kwargs) -> object: pass +def fabs(*args, **kwargs) -> object: ... def factorial(*args, **kwargs) -> long: raise ValueError() -def floor(*args, **kwargs) -> object: pass +def floor(*args, **kwargs) -> object: ... -def fmod(*args, **kwargs) -> float: pass +def fmod(*args, **kwargs) -> float: ... -def frexp(*args, **kwargs) -> tuple: pass +def frexp(*args, **kwargs) -> tuple: ... def fsum(*args, **kwargs) -> float: raise OverflowError() raise ValueError() -def gamma(*args, **kwargs) -> float: pass +def gamma(*args, **kwargs) -> float: ... -def hypot(*args, **kwargs) -> float: pass +def hypot(*args, **kwargs) -> float: ... -def isfinite(*args, **kwargs) -> bool: pass +def isfinite(*args, **kwargs) -> bool: ... -def isinf(*args, **kwargs) -> bool: pass +def isinf(*args, **kwargs) -> bool: ... -def isnan(*args, **kwargs) -> bool: pass +def isnan(*args, **kwargs) -> bool: ... def ldexp(a: float, b) -> float: raise TypeError() -def lgamma(*args, **kwargs) -> float: pass +def lgamma(*args, **kwargs) -> float: ... -def log(*args, **kwargs) -> float: pass +def log(*args, **kwargs) -> float: ... -def log10(*args, **kwargs) -> float: pass +def log10(*args, **kwargs) -> float: ... -def log1p(*args, **kwargs) -> object: pass +def log1p(*args, **kwargs) -> object: ... -def log2(*args, **kwargs) -> float: pass +def log2(*args, **kwargs) -> float: ... -def modf(*args, **kwargs) -> tuple: pass +def modf(*args, **kwargs) -> tuple: ... -def pow(*args, **kwargs) -> float: pass +def pow(*args, **kwargs) -> float: ... -def radians(*args, **kwargs) -> float: pass +def radians(*args, **kwargs) -> float: ... -def sin(*args, **kwargs) -> object: pass +def sin(*args, **kwargs) -> object: ... -def sinh(*args, **kwargs) -> object: pass +def sinh(*args, **kwargs) -> object: ... -def sqrt(*args, **kwargs) -> object: pass +def sqrt(*args, **kwargs) -> object: ... -def tan(*args, **kwargs) -> object: pass +def tan(*args, **kwargs) -> object: ... -def tanh(*args, **kwargs) -> object: pass +def tanh(*args, **kwargs) -> object: ... def trunc(*args, **kwargs) -> object: raise TypeError() diff --git a/python3/signal.py b/python3/signal.py index ed9b9e3aa..81919d0f8 100644 --- a/python3/signal.py +++ b/python3/signal.py @@ -48,17 +48,17 @@ SIGXFSZ = Undefined(long) SIG_DFL = Undefined(long) SIG_IGN = Undefined(long) -def alarm(a: int) -> long: pass +def alarm(a: int) -> long: ... def default_int_handler(*args, **kwargs) -> object: raise KeyboardInterrupt() -def getitimer(a: int) -> tuple: pass +def getitimer(a: int) -> tuple: ... def getsignal(a: int) -> None: raise ValueError() -def pause() -> None: pass +def pause() -> None: ... def pthread_kill(a: int, b: int) -> None: raise OSError() @@ -69,7 +69,7 @@ def pthread_sigmask(a: int, b) -> object: def set_wakeup_fd(a: int) -> long: raise ValueError() -def setitimer(a: int, b: float, *args, **kwargs) -> tuple: pass +def setitimer(a: int, b: float, *args, **kwargs) -> tuple: ... def siginterrupt(a: int, b: int) -> None: raise OSError() diff --git a/python3/time.py b/python3/time.py index 03056e388..f7ab12865 100644 --- a/python3/time.py +++ b/python3/time.py @@ -5,9 +5,9 @@ from typing import List, Tuple, Dict, Undefined, GenericType -def asctime(*args, **kwargs) -> unicode: pass +def asctime(*args, **kwargs) -> unicode: ... -def clock() -> float: pass +def clock() -> float: ... def clock_getres(a: int) -> float: raise IOError() @@ -18,7 +18,7 @@ def clock_gettime(a: int) -> float: def clock_settime(a: int, b) -> None: raise IOError() -def ctime(*args, **kwargs) -> unicode: pass +def ctime(*args, **kwargs) -> unicode: ... def get_clock_info(a: str) -> object: raise ValueError() @@ -26,16 +26,16 @@ def get_clock_info(a: str) -> object: def gmtime(*args, **kwargs) -> tuple: raise OSError() -def localtime(*args, **kwargs) -> tuple: pass +def localtime(*args, **kwargs) -> tuple: ... def mktime(*args, **kwargs) -> float: raise OverflowError() -def monotonic() -> float: pass +def monotonic() -> float: ... -def perf_counter() -> float: pass +def perf_counter() -> float: ... -def process_time() -> float: pass +def process_time() -> float: ... def sleep(a: float) -> None: raise ValueError() @@ -43,8 +43,8 @@ def sleep(a: float) -> None: def strftime(a: str, *args, **kwargs) -> unicode: raise MemoryError() -def strptime(*args, **kwargs) -> object: pass +def strptime(*args, **kwargs) -> object: ... -def time() -> float: pass +def time() -> float: ... -def tzset() -> None: pass +def tzset() -> None: ...