use '-> Any' instead of '-> object'

This commit is contained in:
Matthias Kramm
2015-09-15 08:13:15 -07:00
parent edd35eaf2e
commit 20f28061a2
38 changed files with 285 additions and 285 deletions

View File

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

View File

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

View File

@@ -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()

View File

@@ -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:

View File

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

View File

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

View File

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

View File

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

View File

@@ -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()

View File

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

View File

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

View File

@@ -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()

View File

@@ -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()

View File

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