From 20f28061a242ab0016e8b77190fac3568a3f0950 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 15 Sep 2015 08:13:15 -0700 Subject: [PATCH] use '-> Any' instead of '-> object' --- 2.7/_bisect.pyi | 2 +- 2.7/_codecs.pyi | 12 +-- 2.7/_collections.pyi | 16 ++-- 2.7/_functools.pyi | 4 +- 2.7/_heapq.pyi | 8 +- 2.7/_hotshot.pyi | 10 +-- 2.7/_json.pyi | 2 +- 2.7/_random.pyi | 4 +- 2.7/_sre.pyi | 20 ++--- 2.7/_struct.pyi | 2 +- 2.7/array.pyi | 8 +- 2.7/cStringIO.pyi | 4 +- 2.7/cmath.pyi | 2 +- 2.7/datetime.pyi | 64 ++++++++-------- 2.7/gc.pyi | 2 +- 2.7/math.pyi | 4 +- 2.7/operator.pyi | 178 +++++++++++++++++++++---------------------- 2.7/signal.pyi | 4 +- 2.7/strop.pyi | 6 +- 2.7/thread.pyi | 6 +- 2.7/time.pyi | 4 +- 2.7/xxsubtype.pyi | 2 +- 2.7/zipimport.pyi | 8 +- 2.7/zlib.pyi | 6 +- 3/_bisect.pyi | 2 +- 3/_codecs.pyi | 12 +-- 3/_heapq.pyi | 8 +- 3/_json.pyi | 4 +- 3/_operator.pyi | 80 +++++++++---------- 3/_stat.pyi | 2 +- 3/_tracemalloc.pyi | 8 +- 3/_warnings.pyi | 2 +- 3/atexit.pyi | 4 +- 3/cmath.pyi | 2 +- 3/marshal.pyi | 10 +-- 3/math.pyi | 42 +++++----- 3/signal.pyi | 10 +-- 3/time.pyi | 6 +- 38 files changed, 285 insertions(+), 285 deletions(-) diff --git a/2.7/_bisect.pyi b/2.7/_bisect.pyi index 4a18158ab..72e0c0655 100644 --- a/2.7/_bisect.pyi +++ b/2.7/_bisect.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def bisect(a, x, *args, **kwargs) -> int: ... diff --git a/2.7/_codecs.pyi b/2.7/_codecs.pyi index 80b45f12d..07b2b612c 100644 --- a/2.7/_codecs.pyi +++ b/2.7/_codecs.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def ascii_decode(a, *args, **kwargs) -> tuple: ... @@ -11,15 +11,15 @@ def ascii_encode(a, *args, **kwargs) -> tuple: ... def charbuffer_encode(*args, **kwargs) -> tuple: ... -def charmap_build(a: str) -> object: ... +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) -> object: ... +def decode(a, *args, **kwargs) -> Any: ... -def encode(a, *args, **kwargs) -> object: ... +def encode(a, *args, **kwargs) -> Any: ... def escape_decode(a, *args, **kwargs) -> tuple: ... @@ -29,9 +29,9 @@ def latin_1_decode(a, *args, **kwargs) -> tuple: ... def latin_1_encode(a, *args, **kwargs) -> tuple: ... -def lookup(a: str) -> object: ... +def lookup(a: str) -> Any: ... -def lookup_error(a: str) -> object: ... +def lookup_error(a: str) -> Any: ... def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ... diff --git a/2.7/_collections.pyi b/2.7/_collections.pyi index 75bd1a76a..9afd934fa 100644 --- a/2.7/_collections.pyi +++ b/2.7/_collections.pyi @@ -3,19 +3,19 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType class defaultdict(object): - def __copy__() -> object: ... - def __missing__(*args, **kwargs) -> object: + def __copy__() -> Any: ... + def __missing__(*args, **kwargs) -> Any: raise KeyError() def __reduce__() -> tuple: ... - def copy() -> object: ... + def copy() -> Any: ... class deque(object): - def __copy__() -> object: ... + def __copy__() -> Any: ... def __reduce__() -> tuple: ... - def __reversed__() -> object: ... + def __reversed__() -> Any: ... def __sizeof__() -> long: ... def append(*args, **kwargs) -> None: ... def appendleft(*args, **kwargs) -> None: ... @@ -24,9 +24,9 @@ class deque(object): raise RuntimeError() def extend(*args, **kwargs) -> None: ... def extendleft(*args, **kwargs) -> None: ... - def pop() -> object: + def pop() -> Any: raise IndexError() - def popleft() -> object: + def popleft() -> Any: raise IndexError() def remove(*args, **kwargs) -> None: raise IndexError() diff --git a/2.7/_functools.pyi b/2.7/_functools.pyi index 9b026b31e..9d94efbbc 100644 --- a/2.7/_functools.pyi +++ b/2.7/_functools.pyi @@ -3,9 +3,9 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def reduce(*args, **kwargs) -> object: +def reduce(*args, **kwargs) -> Any: raise TypeError() diff --git a/2.7/_heapq.pyi b/2.7/_heapq.pyi index a975f1278..0ff4e79bb 100644 --- a/2.7/_heapq.pyi +++ b/2.7/_heapq.pyi @@ -3,22 +3,22 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def heapify(*args, **kwargs) -> None: raise TypeError() -def heappop(*args, **kwargs) -> object: +def heappop(*args, **kwargs) -> Any: raise IndexError() raise TypeError() def heappush(*args, **kwargs) -> None: raise TypeError() -def heappushpop(*args, **kwargs) -> object: +def heappushpop(*args, **kwargs) -> Any: raise TypeError() -def heapreplace(*args, **kwargs) -> object: +def heapreplace(*args, **kwargs) -> Any: raise IndexError() raise TypeError() diff --git a/2.7/_hotshot.pyi b/2.7/_hotshot.pyi index adeecf2a8..714fe4d37 100644 --- a/2.7/_hotshot.pyi +++ b/2.7/_hotshot.pyi @@ -3,15 +3,15 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def coverage(a: str) -> object: ... +def coverage(a: str) -> Any: ... def logreader(a: str) -> LogReaderType: raise IOError() raise RuntimeError() -def profiler(a: str, *args, **kwargs) -> object: +def profiler(a: str, *args, **kwargs) -> Any: raise IOError() def resolution() -> tuple: ... @@ -27,8 +27,8 @@ class ProfilerType(object): def close() -> None: ... def fileno() -> int: raise ValueError() - def runcall(*args, **kwargs) -> object: ... - def runcode(a, b, *args, **kwargs) -> object: + def runcall(*args, **kwargs) -> Any: ... + def runcode(a, b, *args, **kwargs) -> Any: raise TypeError() def start() -> None: ... def stop() -> None: ... diff --git a/2.7/_json.pyi b/2.7/_json.pyi index c007bca9a..6ffdf72a9 100644 --- a/2.7/_json.pyi +++ b/2.7/_json.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def encode_basestring_ascii(*args, **kwargs) -> str: raise TypeError() diff --git a/2.7/_random.pyi b/2.7/_random.pyi index 3892c7415..7cb63a1e8 100644 --- a/2.7/_random.pyi +++ b/2.7/_random.pyi @@ -3,10 +3,10 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType class Random(object): - def getrandbits(a: int) -> object: + def getrandbits(a: int) -> Any: raise MemoryError() raise ValueError() def getstate() -> tuple: ... diff --git a/2.7/_sre.pyi b/2.7/_sre.pyi index 07521d459..1cfec2385 100644 --- a/2.7/_sre.pyi +++ b/2.7/_sre.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType CODESIZE = ... # type: int MAGIC = ... # type: int @@ -19,13 +19,13 @@ def getlower(a: int, b: int) -> int: ... class SRE_Match(object): - def __copy__() -> object: + def __copy__() -> Any: raise TypeError() - def __deepcopy__(*args, **kwargs) -> object: + def __deepcopy__(*args, **kwargs) -> Any: raise TypeError() def end(*args, **kwargs) -> int: raise IndexError() - def expand(*args, **kwargs) -> object: ... + def expand(*args, **kwargs) -> Any: ... def group(*args, **kwargs) -> tuple: ... def groupdict(*args, **kwargs) -> dict: ... def groups(*args, **kwargs) -> tuple: ... @@ -35,19 +35,19 @@ class SRE_Match(object): raise IndexError() class SRE_Pattern(object): - def __copy__() -> object: + def __copy__() -> Any: raise TypeError() - def __deepcopy__(*args, **kwargs) -> object: + def __deepcopy__(*args, **kwargs) -> Any: raise TypeError() def findall(source, *args, **kwargs) -> List[tuple]: ... def finditer(*args, **kwargs) -> callable_iterator: ... - def match(pattern, *args, **kwargs) -> object: ... + def match(pattern, *args, **kwargs) -> Any: ... def scanner(a, *args, **kwargs) -> SRE_Scanner: ... - def search(pattern, *args, **kwargs) -> object: ... + def search(pattern, *args, **kwargs) -> Any: ... 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: ... - def search() -> object: ... + def match() -> Any: ... + def search() -> Any: ... diff --git a/2.7/_struct.pyi b/2.7/_struct.pyi index 3ee50221e..b3faa336a 100644 --- a/2.7/_struct.pyi +++ b/2.7/_struct.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def _clearcache() -> None: ... diff --git a/2.7/array.pyi b/2.7/array.pyi index 26b24122c..2e856572f 100644 --- a/2.7/array.pyi +++ b/2.7/array.pyi @@ -3,11 +3,11 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType class array(object): - def __copy__() -> object: ... - def __deepcopy__(*args, **kwargs) -> object: ... + def __copy__() -> Any: ... + def __deepcopy__(*args, **kwargs) -> Any: ... def __reduce__() -> tuple: raise AttributeError() def __sizeof__() -> long: ... @@ -34,7 +34,7 @@ class array(object): def index(*args, **kwargs) -> int: raise ValueError() def insert(a: int, b) -> None: ... - def pop(*args, **kwargs) -> object: + def pop(*args, **kwargs) -> Any: raise IndexError() def read(*args, **kwargs) -> None: raise DeprecationWarning() diff --git a/2.7/cStringIO.pyi b/2.7/cStringIO.pyi index 815453bf2..aa0c95a98 100644 --- a/2.7/cStringIO.pyi +++ b/2.7/cStringIO.pyi @@ -3,13 +3,13 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType InputType = ... # type: StringI OutputType = ... # type: StringO cStringIO_CAPI = ... # type: object -def StringIO(*args, **kwargs) -> object: ... +def StringIO(*args, **kwargs) -> Any: ... class StringI(object): diff --git a/2.7/cmath.pyi b/2.7/cmath.pyi index 5eacac574..ee52f0dc6 100644 --- a/2.7/cmath.pyi +++ b/2.7/cmath.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def acos(*args, **kwargs) -> complex: ... diff --git a/2.7/datetime.pyi b/2.7/datetime.pyi index b76e6e6de..54d81cf37 100644 --- a/2.7/datetime.pyi +++ b/2.7/datetime.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType max = ... # type: object min = ... # type: object @@ -14,53 +14,53 @@ class date(object): raise ValueError() def __reduce__() -> tuple: ... def ctime() -> str: ... - def fromordinal(a: int) -> object: + def fromordinal(a: int) -> Any: raise ValueError() - def fromtimestamp(a: float) -> object: ... + def fromtimestamp(a: float) -> Any: ... 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 replace(*args, **kwargs) -> Any: ... + def strftime(format) -> Any: ... + def timetuple() -> Any: ... + def today() -> Any: ... def toordinal() -> int: ... def weekday() -> int: ... class datetime(object): def __reduce__() -> tuple: ... - def astimezone(tz) -> object: + def astimezone(tz) -> Any: raise ValueError() - def combine(date, time) -> object: ... + def combine(date, time) -> Any: ... def ctime() -> str: ... - def date() -> object: ... - def dst() -> object: ... - def fromtimestamp(timestamp: float, *args, **kwargs) -> object: ... + def date() -> Any: ... + def dst() -> Any: ... + def fromtimestamp(timestamp: float, *args, **kwargs) -> Any: ... def isoformat(*args, **kwargs) -> str: ... - def now(*args, **kwargs) -> object: ... - def replace(*args, **kwargs) -> object: ... - def strptime(a: str, b: str) -> object: + def now(*args, **kwargs) -> Any: ... + def replace(*args, **kwargs) -> Any: ... + def strptime(a: str, b: str) -> Any: raise ValueError() - 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: + def time() -> Any: ... + def timetuple() -> Any: ... + def timetz() -> Any: ... + def tzname() -> Any: ... + def utcfromtimestamp(a: float) -> Any: ... + def utcnow() -> Any: ... + def utcoffset() -> Any: ... + def utctimetuple() -> Any: raise OverflowError() class time(object): def __format__(a) -> unicode: raise ValueError() def __reduce__() -> tuple: ... - def dst() -> object: ... + def dst() -> Any: ... def isoformat() -> str: ... - def replace(*args, **kwargs) -> object: ... - def strftime(format) -> object: ... - def tzname() -> object: ... - def utcoffset() -> object: ... + def replace(*args, **kwargs) -> Any: ... + def strftime(format) -> Any: ... + def tzname() -> Any: ... + def utcoffset() -> Any: ... class timedelta(object): def __reduce__() -> tuple: ... @@ -68,9 +68,9 @@ class timedelta(object): class tzinfo(object): def __reduce__() -> tuple: ... - def dst(*args, **kwargs) -> object: ... - def fromutc(*args, **kwargs) -> object: + def dst(*args, **kwargs) -> Any: ... + def fromutc(*args, **kwargs) -> Any: raise TypeError() raise ValueError() - def tzname(*args, **kwargs) -> object: ... - def utcoffset(*args, **kwargs) -> object: ... + def tzname(*args, **kwargs) -> Any: ... + def utcoffset(*args, **kwargs) -> Any: ... diff --git a/2.7/gc.pyi b/2.7/gc.pyi index 823845081..1204781ff 100644 --- a/2.7/gc.pyi +++ b/2.7/gc.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def collect(*args, **kwargs) -> int: raise ValueError() diff --git a/2.7/math.pyi b/2.7/math.pyi index 8bba54540..4c096d67a 100644 --- a/2.7/math.pyi +++ b/2.7/math.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def acos(*args, **kwargs) -> float: ... @@ -87,4 +87,4 @@ def tan(*args, **kwargs) -> float: ... def tanh(*args, **kwargs) -> float: ... -def trunc(*args, **kwargs) -> object: ... +def trunc(*args, **kwargs) -> Any: ... diff --git a/2.7/operator.pyi b/2.7/operator.pyi index 145db8cc9..e27bd1cb7 100644 --- a/2.7/operator.pyi +++ b/2.7/operator.pyi @@ -3,15 +3,15 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def __abs__(*args, **kwargs) -> object: ... +def __abs__(*args, **kwargs) -> Any: ... -def __add__(*args, **kwargs) -> object: ... +def __add__(*args, **kwargs) -> Any: ... -def __and__(*args, **kwargs) -> object: ... +def __and__(*args, **kwargs) -> Any: ... -def __concat__(*args, **kwargs) -> object: ... +def __concat__(*args, **kwargs) -> Any: ... def __contains__(*args, **kwargs) -> bool: ... @@ -19,99 +19,99 @@ def __delitem__(*args, **kwargs) -> None: ... def __delslice__(a, b: int, c: int) -> None: ... -def __div__(*args, **kwargs) -> object: ... +def __div__(*args, **kwargs) -> Any: ... -def __eq__(*args, **kwargs) -> object: ... +def __eq__(*args, **kwargs) -> Any: ... -def __floordiv__(*args, **kwargs) -> object: ... +def __floordiv__(*args, **kwargs) -> Any: ... -def __ge__(*args, **kwargs) -> object: ... +def __ge__(*args, **kwargs) -> Any: ... -def __getitem__(*args, **kwargs) -> object: ... +def __getitem__(*args, **kwargs) -> Any: ... -def __getslice__(a, b: int, c: int) -> object: ... +def __getslice__(a, b: int, c: int) -> Any: ... -def __gt__(*args, **kwargs) -> object: ... +def __gt__(*args, **kwargs) -> Any: ... -def __iadd__(*args, **kwargs) -> object: ... +def __iadd__(*args, **kwargs) -> Any: ... -def __iand__(*args, **kwargs) -> object: ... +def __iand__(*args, **kwargs) -> Any: ... -def __iconcat__(*args, **kwargs) -> object: ... +def __iconcat__(*args, **kwargs) -> Any: ... -def __idiv__(*args, **kwargs) -> object: ... +def __idiv__(*args, **kwargs) -> Any: ... -def __ifloordiv__(*args, **kwargs) -> object: ... +def __ifloordiv__(*args, **kwargs) -> Any: ... -def __ilshift__(*args, **kwargs) -> object: ... +def __ilshift__(*args, **kwargs) -> Any: ... -def __imod__(*args, **kwargs) -> object: ... +def __imod__(*args, **kwargs) -> Any: ... -def __imul__(*args, **kwargs) -> object: ... +def __imul__(*args, **kwargs) -> Any: ... -def __index__(*args, **kwargs) -> object: ... +def __index__(*args, **kwargs) -> Any: ... -def __inv__(*args, **kwargs) -> object: ... +def __inv__(*args, **kwargs) -> Any: ... -def __invert__(*args, **kwargs) -> object: ... +def __invert__(*args, **kwargs) -> Any: ... -def __ior__(*args, **kwargs) -> object: ... +def __ior__(*args, **kwargs) -> Any: ... -def __ipow__(*args, **kwargs) -> object: ... +def __ipow__(*args, **kwargs) -> Any: ... -def __irepeat__(a, b: int) -> object: ... +def __irepeat__(a, b: int) -> Any: ... -def __irshift__(*args, **kwargs) -> object: ... +def __irshift__(*args, **kwargs) -> Any: ... -def __isub__(*args, **kwargs) -> object: ... +def __isub__(*args, **kwargs) -> Any: ... -def __itruediv__(*args, **kwargs) -> object: ... +def __itruediv__(*args, **kwargs) -> Any: ... -def __ixor__(*args, **kwargs) -> object: ... +def __ixor__(*args, **kwargs) -> Any: ... -def __le__(*args, **kwargs) -> object: ... +def __le__(*args, **kwargs) -> Any: ... -def __lshift__(*args, **kwargs) -> object: ... +def __lshift__(*args, **kwargs) -> Any: ... -def __lt__(*args, **kwargs) -> object: ... +def __lt__(*args, **kwargs) -> Any: ... -def __mod__(*args, **kwargs) -> object: ... +def __mod__(*args, **kwargs) -> Any: ... -def __mul__(*args, **kwargs) -> object: ... +def __mul__(*args, **kwargs) -> Any: ... -def __ne__(*args, **kwargs) -> object: ... +def __ne__(*args, **kwargs) -> Any: ... -def __neg__(*args, **kwargs) -> object: ... +def __neg__(*args, **kwargs) -> Any: ... def __not__(*args, **kwargs) -> bool: ... -def __or__(*args, **kwargs) -> object: ... +def __or__(*args, **kwargs) -> Any: ... -def __pos__(*args, **kwargs) -> object: ... +def __pos__(*args, **kwargs) -> Any: ... -def __pow__(*args, **kwargs) -> object: ... +def __pow__(*args, **kwargs) -> Any: ... -def __repeat__(a, b: int) -> object: ... +def __repeat__(a, b: int) -> Any: ... -def __rshift__(*args, **kwargs) -> object: ... +def __rshift__(*args, **kwargs) -> Any: ... def __setitem__(*args, **kwargs) -> None: ... def __setslice__(a, b: int, c: int, d) -> None: ... -def __sub__(*args, **kwargs) -> object: ... +def __sub__(*args, **kwargs) -> Any: ... -def __truediv__(*args, **kwargs) -> object: ... +def __truediv__(*args, **kwargs) -> Any: ... -def __xor__(*args, **kwargs) -> object: ... +def __xor__(*args, **kwargs) -> Any: ... -def abs(*args, **kwargs) -> object: ... +def abs(*args, **kwargs) -> Any: ... -def add(*args, **kwargs) -> object: ... +def add(*args, **kwargs) -> Any: ... -def and_(*args, **kwargs) -> object: ... +def and_(*args, **kwargs) -> Any: ... -def concat(*args, **kwargs) -> object: ... +def concat(*args, **kwargs) -> Any: ... def contains(*args, **kwargs) -> bool: ... @@ -121,51 +121,51 @@ def delitem(*args, **kwargs) -> None: ... def delslice(a, b: int, c: int) -> None: ... -def div(*args, **kwargs) -> object: ... +def div(*args, **kwargs) -> Any: ... -def eq(*args, **kwargs) -> object: ... +def eq(*args, **kwargs) -> Any: ... -def floordiv(*args, **kwargs) -> object: ... +def floordiv(*args, **kwargs) -> Any: ... -def ge(*args, **kwargs) -> object: ... +def ge(*args, **kwargs) -> Any: ... -def getitem(*args, **kwargs) -> object: ... +def getitem(*args, **kwargs) -> Any: ... -def getslice(a, b: int, c: int) -> object: ... +def getslice(a, b: int, c: int) -> Any: ... -def gt(*args, **kwargs) -> object: ... +def gt(*args, **kwargs) -> Any: ... -def iadd(*args, **kwargs) -> object: ... +def iadd(*args, **kwargs) -> Any: ... -def iand(*args, **kwargs) -> object: ... +def iand(*args, **kwargs) -> Any: ... -def iconcat(*args, **kwargs) -> object: ... +def iconcat(*args, **kwargs) -> Any: ... -def idiv(*args, **kwargs) -> object: ... +def idiv(*args, **kwargs) -> Any: ... -def ifloordiv(*args, **kwargs) -> object: ... +def ifloordiv(*args, **kwargs) -> Any: ... -def ilshift(*args, **kwargs) -> object: ... +def ilshift(*args, **kwargs) -> Any: ... -def imod(*args, **kwargs) -> object: ... +def imod(*args, **kwargs) -> Any: ... -def imul(*args, **kwargs) -> object: ... +def imul(*args, **kwargs) -> Any: ... -def index(*args, **kwargs) -> object: ... +def index(*args, **kwargs) -> Any: ... def indexOf(*args, **kwargs) -> int: ... -def inv(*args, **kwargs) -> object: ... +def inv(*args, **kwargs) -> Any: ... -def invert(*args, **kwargs) -> object: ... +def invert(*args, **kwargs) -> Any: ... -def ior(*args, **kwargs) -> object: ... +def ior(*args, **kwargs) -> Any: ... -def ipow(*args, **kwargs) -> object: ... +def ipow(*args, **kwargs) -> Any: ... -def irepeat(a, b: int) -> object: ... +def irepeat(a, b: int) -> Any: ... -def irshift(*args, **kwargs) -> object: ... +def irshift(*args, **kwargs) -> Any: ... def isCallable(*args, **kwargs) -> bool: ... @@ -179,37 +179,37 @@ def is_(*args, **kwargs) -> bool: ... def is_not(*args, **kwargs) -> bool: ... -def isub(*args, **kwargs) -> object: ... +def isub(*args, **kwargs) -> Any: ... -def itruediv(*args, **kwargs) -> object: ... +def itruediv(*args, **kwargs) -> Any: ... -def ixor(*args, **kwargs) -> object: ... +def ixor(*args, **kwargs) -> Any: ... -def le(*args, **kwargs) -> object: ... +def le(*args, **kwargs) -> Any: ... -def lshift(*args, **kwargs) -> object: ... +def lshift(*args, **kwargs) -> Any: ... -def lt(*args, **kwargs) -> object: ... +def lt(*args, **kwargs) -> Any: ... -def mod(*args, **kwargs) -> object: ... +def mod(*args, **kwargs) -> Any: ... -def mul(*args, **kwargs) -> object: ... +def mul(*args, **kwargs) -> Any: ... -def ne(*args, **kwargs) -> object: ... +def ne(*args, **kwargs) -> Any: ... -def neg(*args, **kwargs) -> object: ... +def neg(*args, **kwargs) -> Any: ... def not_(*args, **kwargs) -> bool: ... -def or_(*args, **kwargs) -> object: ... +def or_(*args, **kwargs) -> Any: ... -def pos(*args, **kwargs) -> object: ... +def pos(*args, **kwargs) -> Any: ... -def pow(*args, **kwargs) -> object: ... +def pow(*args, **kwargs) -> Any: ... -def repeat(a, b: int) -> object: ... +def repeat(a, b: int) -> Any: ... -def rshift(*args, **kwargs) -> object: ... +def rshift(*args, **kwargs) -> Any: ... def sequenceIncludes(*args, **kwargs) -> bool: ... @@ -217,13 +217,13 @@ def setitem(*args, **kwargs) -> None: ... def setslice(a, b: int, c: int, d) -> None: ... -def sub(*args, **kwargs) -> object: ... +def sub(*args, **kwargs) -> Any: ... -def truediv(*args, **kwargs) -> object: ... +def truediv(*args, **kwargs) -> Any: ... def truth(*args, **kwargs) -> bool: ... -def xor(*args, **kwargs) -> object: ... +def xor(*args, **kwargs) -> Any: ... class attrgetter(object): diff --git a/2.7/signal.pyi b/2.7/signal.pyi index 3b226808a..335c0675a 100644 --- a/2.7/signal.pyi +++ b/2.7/signal.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType ITIMER_PROF = ... # type: long ITIMER_REAL = ... # type: long @@ -50,7 +50,7 @@ SIG_IGN = ... # type: long def alarm(a: int) -> int: ... -def default_int_handler(*args, **kwargs) -> object: +def default_int_handler(*args, **kwargs) -> Any: raise KeyboardInterrupt() def getitimer(a: int) -> tuple: ... diff --git a/2.7/strop.pyi b/2.7/strop.pyi index 6b072a94f..ef9ec938e 100644 --- a/2.7/strop.pyi +++ b/2.7/strop.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def atof(a: str) -> float: raise DeprecationWarning() @@ -31,12 +31,12 @@ def expandtabs(a, *args, **kwargs) -> str: def find(*args, **kwargs) -> int: raise DeprecationWarning() -def join(*args, **kwargs) -> object: +def join(*args, **kwargs) -> Any: raise DeprecationWarning() raise OverflowError() raise TypeError() -def joinfields(*args, **kwargs) -> object: +def joinfields(*args, **kwargs) -> Any: raise DeprecationWarning() raise OverflowError() raise TypeError() diff --git a/2.7/thread.pyi b/2.7/thread.pyi index 07f54d8c9..bddfbc1b9 100644 --- a/2.7/thread.pyi +++ b/2.7/thread.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType LockType = ... # type: lock error = ... # type: object @@ -14,10 +14,10 @@ def allocate() -> lock: ... def allocate_lock() -> lock: ... -def exit() -> object: +def exit() -> Any: raise SystemExit() -def exit_thread() -> object: +def exit_thread() -> Any: raise SystemExit() def get_ident() -> int: ... diff --git a/2.7/time.pyi b/2.7/time.pyi index 16e1d466b..d414961be 100644 --- a/2.7/time.pyi +++ b/2.7/time.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def asctime(*args, **kwargs) -> str: raise ValueError() @@ -26,7 +26,7 @@ def strftime(a: str, *args, **kwargs) -> str: raise MemoryError() raise ValueError() -def strptime(*args, **kwargs) -> object: ... +def strptime(*args, **kwargs) -> Any: ... def time() -> float: raise IOError() diff --git a/2.7/xxsubtype.pyi b/2.7/xxsubtype.pyi index 41852e74d..fa348faf4 100644 --- a/2.7/xxsubtype.pyi +++ b/2.7/xxsubtype.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def bench(a, b: str, *args, **kwargs) -> float: ... diff --git a/2.7/zipimport.pyi b/2.7/zipimport.pyi index e6bca8e99..324c4fe1d 100644 --- a/2.7/zipimport.pyi +++ b/2.7/zipimport.pyi @@ -3,14 +3,14 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType class zipimporter(object): def find_module(a: str, *args, **kwargs) -> None: ... - def get_code(a: str) -> object: ... + def get_code(a: str) -> Any: ... def get_data(a: str) -> str: raise IOError() def get_filename(a: str) -> str: ... - def get_source(a: str) -> object: ... + def get_source(a: str) -> Any: ... def is_package(a: str) -> bool: ... - def load_module(a: str) -> object: ... + def load_module(a: str) -> Any: ... diff --git a/2.7/zlib.pyi b/2.7/zlib.pyi index a89772047..832654824 100644 --- a/2.7/zlib.pyi +++ b/2.7/zlib.pyi @@ -3,14 +3,14 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def adler32(a, *args, **kwargs) -> int: ... def compress(a, *args, **kwargs) -> str: raise MemoryError() -def compressobj(*args, **kwargs) -> object: +def compressobj(*args, **kwargs) -> Any: raise MemoryError() raise ValueError() @@ -19,7 +19,7 @@ def crc32(a, *args, **kwargs) -> int: ... def decompress(a, *args, **kwargs) -> str: raise MemoryError() -def decompressobj(*args, **kwargs) -> object: +def decompressobj(*args, **kwargs) -> Any: raise MemoryError() raise ValueError() diff --git a/3/_bisect.pyi b/3/_bisect.pyi index ce6577953..966cbaa94 100644 --- a/3/_bisect.pyi +++ b/3/_bisect.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def bisect(a, x, *args, **kwargs) -> long: ... diff --git a/3/_codecs.pyi b/3/_codecs.pyi index 18106a7da..268070302 100644 --- a/3/_codecs.pyi +++ b/3/_codecs.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def _forget_codec(a: str) -> None: ... @@ -11,15 +11,15 @@ def ascii_decode(a, *args, **kwargs) -> tuple: ... def ascii_encode(a, *args, **kwargs) -> tuple: ... -def charmap_build(a: str) -> object: ... +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) -> object: ... +def decode(a, *args, **kwargs) -> Any: ... -def encode(a, *args, **kwargs) -> object: ... +def encode(a, *args, **kwargs) -> Any: ... def escape_decode(a, *args, **kwargs) -> tuple: ... @@ -30,9 +30,9 @@ def latin_1_decode(a, *args, **kwargs) -> tuple: ... def latin_1_encode(a, *args, **kwargs) -> tuple: ... -def lookup(a: str) -> object: ... +def lookup(a: str) -> Any: ... -def lookup_error(a: str) -> object: ... +def lookup_error(a: str) -> Any: ... def raw_unicode_escape_decode(a, *args, **kwargs) -> tuple: ... diff --git a/3/_heapq.pyi b/3/_heapq.pyi index a975f1278..0ff4e79bb 100644 --- a/3/_heapq.pyi +++ b/3/_heapq.pyi @@ -3,22 +3,22 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def heapify(*args, **kwargs) -> None: raise TypeError() -def heappop(*args, **kwargs) -> object: +def heappop(*args, **kwargs) -> Any: raise IndexError() raise TypeError() def heappush(*args, **kwargs) -> None: raise TypeError() -def heappushpop(*args, **kwargs) -> object: +def heappushpop(*args, **kwargs) -> Any: raise TypeError() -def heapreplace(*args, **kwargs) -> object: +def heapreplace(*args, **kwargs) -> Any: raise IndexError() raise TypeError() diff --git a/3/_json.pyi b/3/_json.pyi index 2593a331d..af44c474d 100644 --- a/3/_json.pyi +++ b/3/_json.pyi @@ -3,9 +3,9 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def encode_basestring_ascii(*args, **kwargs) -> object: +def encode_basestring_ascii(*args, **kwargs) -> Any: raise TypeError() def scanstring(a, b: int, *args, **kwargs) -> tuple: diff --git a/3/_operator.pyi b/3/_operator.pyi index 695a149f1..ca4a3bc0b 100644 --- a/3/_operator.pyi +++ b/3/_operator.pyi @@ -3,19 +3,19 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def _compare_digest(a, b) -> bool: raise BufferError() raise TypeError() -def abs(*args, **kwargs) -> object: ... +def abs(*args, **kwargs) -> Any: ... -def add(*args, **kwargs) -> object: ... +def add(*args, **kwargs) -> Any: ... -def and_(*args, **kwargs) -> object: ... +def and_(*args, **kwargs) -> Any: ... -def concat(*args, **kwargs) -> object: ... +def concat(*args, **kwargs) -> Any: ... def contains(*args, **kwargs) -> bool: ... @@ -23,86 +23,86 @@ def countOf(*args, **kwargs) -> long: ... def delitem(*args, **kwargs) -> None: ... -def eq(*args, **kwargs) -> object: ... +def eq(*args, **kwargs) -> Any: ... -def floordiv(*args, **kwargs) -> object: ... +def floordiv(*args, **kwargs) -> Any: ... -def ge(*args, **kwargs) -> object: ... +def ge(*args, **kwargs) -> Any: ... -def getitem(*args, **kwargs) -> object: ... +def getitem(*args, **kwargs) -> Any: ... -def gt(*args, **kwargs) -> object: ... +def gt(*args, **kwargs) -> Any: ... -def iadd(*args, **kwargs) -> object: ... +def iadd(*args, **kwargs) -> Any: ... -def iand(*args, **kwargs) -> object: ... +def iand(*args, **kwargs) -> Any: ... -def iconcat(*args, **kwargs) -> object: ... +def iconcat(*args, **kwargs) -> Any: ... -def ifloordiv(*args, **kwargs) -> object: ... +def ifloordiv(*args, **kwargs) -> Any: ... -def ilshift(*args, **kwargs) -> object: ... +def ilshift(*args, **kwargs) -> Any: ... -def imod(*args, **kwargs) -> object: ... +def imod(*args, **kwargs) -> Any: ... -def imul(*args, **kwargs) -> object: ... +def imul(*args, **kwargs) -> Any: ... -def index(*args, **kwargs) -> object: ... +def index(*args, **kwargs) -> Any: ... def indexOf(*args, **kwargs) -> long: ... -def inv(*args, **kwargs) -> object: ... +def inv(*args, **kwargs) -> Any: ... -def invert(*args, **kwargs) -> object: ... +def invert(*args, **kwargs) -> Any: ... -def ior(*args, **kwargs) -> object: ... +def ior(*args, **kwargs) -> Any: ... -def ipow(*args, **kwargs) -> object: ... +def ipow(*args, **kwargs) -> Any: ... -def irshift(*args, **kwargs) -> object: ... +def irshift(*args, **kwargs) -> Any: ... def is_(*args, **kwargs) -> bool: ... def is_not(*args, **kwargs) -> bool: ... -def isub(*args, **kwargs) -> object: ... +def isub(*args, **kwargs) -> Any: ... -def itruediv(*args, **kwargs) -> object: ... +def itruediv(*args, **kwargs) -> Any: ... -def ixor(*args, **kwargs) -> object: ... +def ixor(*args, **kwargs) -> Any: ... -def le(*args, **kwargs) -> object: ... +def le(*args, **kwargs) -> Any: ... def length_hint(a, *args, **kwargs) -> long: ... -def lshift(*args, **kwargs) -> object: ... +def lshift(*args, **kwargs) -> Any: ... -def lt(*args, **kwargs) -> object: ... +def lt(*args, **kwargs) -> Any: ... -def mod(*args, **kwargs) -> object: ... +def mod(*args, **kwargs) -> Any: ... -def mul(*args, **kwargs) -> object: ... +def mul(*args, **kwargs) -> Any: ... -def ne(*args, **kwargs) -> object: ... +def ne(*args, **kwargs) -> Any: ... -def neg(*args, **kwargs) -> object: ... +def neg(*args, **kwargs) -> Any: ... def not_(*args, **kwargs) -> bool: ... -def or_(*args, **kwargs) -> object: ... +def or_(*args, **kwargs) -> Any: ... -def pos(*args, **kwargs) -> object: ... +def pos(*args, **kwargs) -> Any: ... -def pow(*args, **kwargs) -> object: ... +def pow(*args, **kwargs) -> Any: ... -def rshift(*args, **kwargs) -> object: ... +def rshift(*args, **kwargs) -> Any: ... def setitem(*args, **kwargs) -> None: ... -def sub(*args, **kwargs) -> object: ... +def sub(*args, **kwargs) -> Any: ... -def truediv(*args, **kwargs) -> object: ... +def truediv(*args, **kwargs) -> Any: ... def truth(*args, **kwargs) -> bool: ... -def xor(*args, **kwargs) -> object: ... +def xor(*args, **kwargs) -> Any: ... diff --git a/3/_stat.pyi b/3/_stat.pyi index f861a2889..59290d488 100644 --- a/3/_stat.pyi +++ b/3/_stat.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def S_IFMT(*args, **kwargs) -> long: ... diff --git a/3/_tracemalloc.pyi b/3/_tracemalloc.pyi index e323719e6..db2976eaf 100644 --- a/3/_tracemalloc.pyi +++ b/3/_tracemalloc.pyi @@ -3,11 +3,11 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def _get_object_traceback(*args, **kwargs) -> object: ... +def _get_object_traceback(*args, **kwargs) -> Any: ... -def _get_traces() -> object: +def _get_traces() -> Any: raise MemoryError() def clear_traces() -> None: ... @@ -16,7 +16,7 @@ def get_traceback_limit() -> long: ... def get_traced_memory() -> tuple: ... -def get_tracemalloc_memory() -> object: ... +def get_tracemalloc_memory() -> Any: ... def is_tracing() -> bool: ... diff --git a/3/_warnings.pyi b/3/_warnings.pyi index d558e68ae..58e64d8c4 100644 --- a/3/_warnings.pyi +++ b/3/_warnings.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def _filters_mutated() -> None: ... diff --git a/3/atexit.pyi b/3/atexit.pyi index f690dcc93..5496624a4 100644 --- a/3/atexit.pyi +++ b/3/atexit.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def _clear() -> None: ... @@ -11,7 +11,7 @@ def _ncallbacks() -> long: ... def _run_exitfuncs() -> None: ... -def register(*args, **kwargs) -> object: +def register(*args, **kwargs) -> Any: raise MemoryError() raise TypeError() diff --git a/3/cmath.pyi b/3/cmath.pyi index 0319ee61f..880fc1c54 100644 --- a/3/cmath.pyi +++ b/3/cmath.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def acos(*args, **kwargs) -> complex: ... diff --git a/3/marshal.pyi b/3/marshal.pyi index 9d2bdfe1f..9a989a3fa 100644 --- a/3/marshal.pyi +++ b/3/marshal.pyi @@ -3,13 +3,13 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def dump(a, b, *args, **kwargs) -> object: ... +def dump(a, b, *args, **kwargs) -> Any: ... -def dumps(a, *args, **kwargs) -> object: ... +def dumps(a, *args, **kwargs) -> Any: ... -def load(*args, **kwargs) -> object: +def load(*args, **kwargs) -> Any: raise TypeError() -def loads(a) -> object: ... +def loads(a) -> Any: ... diff --git a/3/math.pyi b/3/math.pyi index 21da14ae5..85948e6dc 100644 --- a/3/math.pyi +++ b/3/math.pyi @@ -3,29 +3,29 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType -def acos(*args, **kwargs) -> object: ... +def acos(*args, **kwargs) -> Any: ... -def acosh(*args, **kwargs) -> object: ... +def acosh(*args, **kwargs) -> Any: ... -def asin(*args, **kwargs) -> object: ... +def asin(*args, **kwargs) -> Any: ... -def asinh(*args, **kwargs) -> object: ... +def asinh(*args, **kwargs) -> Any: ... -def atan(*args, **kwargs) -> object: ... +def atan(*args, **kwargs) -> Any: ... def atan2(*args, **kwargs) -> float: ... -def atanh(*args, **kwargs) -> object: ... +def atanh(*args, **kwargs) -> Any: ... -def ceil(*args, **kwargs) -> object: ... +def ceil(*args, **kwargs) -> Any: ... def copysign(*args, **kwargs) -> float: ... -def cos(*args, **kwargs) -> object: ... +def cos(*args, **kwargs) -> Any: ... -def cosh(*args, **kwargs) -> object: ... +def cosh(*args, **kwargs) -> Any: ... def degrees(*args, **kwargs) -> float: ... @@ -33,16 +33,16 @@ def erf(*args, **kwargs) -> float: ... def erfc(*args, **kwargs) -> float: ... -def exp(*args, **kwargs) -> object: ... +def exp(*args, **kwargs) -> Any: ... -def expm1(*args, **kwargs) -> object: ... +def expm1(*args, **kwargs) -> Any: ... -def fabs(*args, **kwargs) -> object: ... +def fabs(*args, **kwargs) -> Any: ... def factorial(*args, **kwargs) -> long: raise ValueError() -def floor(*args, **kwargs) -> object: ... +def floor(*args, **kwargs) -> Any: ... def fmod(*args, **kwargs) -> float: ... @@ -71,7 +71,7 @@ def log(*args, **kwargs) -> float: ... def log10(*args, **kwargs) -> float: ... -def log1p(*args, **kwargs) -> object: ... +def log1p(*args, **kwargs) -> Any: ... def log2(*args, **kwargs) -> float: ... @@ -81,15 +81,15 @@ def pow(*args, **kwargs) -> float: ... def radians(*args, **kwargs) -> float: ... -def sin(*args, **kwargs) -> object: ... +def sin(*args, **kwargs) -> Any: ... -def sinh(*args, **kwargs) -> object: ... +def sinh(*args, **kwargs) -> Any: ... -def sqrt(*args, **kwargs) -> object: ... +def sqrt(*args, **kwargs) -> Any: ... -def tan(*args, **kwargs) -> object: ... +def tan(*args, **kwargs) -> Any: ... -def tanh(*args, **kwargs) -> object: ... +def tanh(*args, **kwargs) -> Any: ... -def trunc(*args, **kwargs) -> object: +def trunc(*args, **kwargs) -> Any: raise TypeError() diff --git a/3/signal.pyi b/3/signal.pyi index 9e80401b9..3d908320a 100644 --- a/3/signal.pyi +++ b/3/signal.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType ITIMER_PROF = ... # type: long ITIMER_REAL = ... # type: long @@ -50,7 +50,7 @@ SIG_IGN = ... # type: long def alarm(a: int) -> long: ... -def default_int_handler(*args, **kwargs) -> object: +def default_int_handler(*args, **kwargs) -> Any: raise KeyboardInterrupt() def getitimer(a: int) -> tuple: ... @@ -63,7 +63,7 @@ def pause() -> None: ... def pthread_kill(a: int, b: int) -> None: raise OSError() -def pthread_sigmask(a: int, b) -> object: +def pthread_sigmask(a: int, b) -> Any: raise OSError() def set_wakeup_fd(a: int) -> long: @@ -80,10 +80,10 @@ def signal(a: int, b) -> None: raise TypeError() raise ValueError() -def sigpending() -> object: +def sigpending() -> Any: raise OSError() -def sigtimedwait(a, b) -> object: +def sigtimedwait(a, b) -> Any: raise OSError() raise ValueError() diff --git a/3/time.pyi b/3/time.pyi index bc5e6a211..3b1244b24 100644 --- a/3/time.pyi +++ b/3/time.pyi @@ -3,7 +3,7 @@ # 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 List, Tuple, Dict, GenericType +from typing import Any, List, Tuple, Dict, GenericType def asctime(*args, **kwargs) -> unicode: ... @@ -20,7 +20,7 @@ def clock_settime(a: int, b) -> None: def ctime(*args, **kwargs) -> unicode: ... -def get_clock_info(a: str) -> object: +def get_clock_info(a: str) -> Any: raise ValueError() def gmtime(*args, **kwargs) -> tuple: @@ -43,7 +43,7 @@ def sleep(a: float) -> None: def strftime(a: str, *args, **kwargs) -> unicode: raise MemoryError() -def strptime(*args, **kwargs) -> object: ... +def strptime(*args, **kwargs) -> Any: ... def time() -> float: ...