mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
use '-> Any' instead of '-> object'
This commit is contained in:
42
3/math.pyi
42
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()
|
||||
|
||||
Reference in New Issue
Block a user