Spaces:
Running
Running
from typing import Any, overload, TypeVar, List, Union | |
from numpy import floating, bool_, object_, ndarray | |
from numpy.typing import ( | |
NDArray, | |
_FloatLike_co, | |
_ArrayLikeFloat_co, | |
_ArrayLikeObject_co, | |
) | |
_ArrayType = TypeVar("_ArrayType", bound=ndarray[Any, Any]) | |
__all__: List[str] | |
def fix( # type: ignore[misc] | |
x: _FloatLike_co, | |
out: None = ..., | |
) -> floating[Any]: ... | |
def fix( | |
x: _ArrayLikeFloat_co, | |
out: None = ..., | |
) -> NDArray[floating[Any]]: ... | |
def fix( | |
x: _ArrayLikeObject_co, | |
out: None = ..., | |
) -> NDArray[object_]: ... | |
def fix( | |
x: Union[_ArrayLikeFloat_co, _ArrayLikeObject_co], | |
out: _ArrayType, | |
) -> _ArrayType: ... | |
def isposinf( # type: ignore[misc] | |
x: _FloatLike_co, | |
out: None = ..., | |
) -> bool_: ... | |
def isposinf( | |
x: _ArrayLikeFloat_co, | |
out: None = ..., | |
) -> NDArray[bool_]: ... | |
def isposinf( | |
x: _ArrayLikeFloat_co, | |
out: _ArrayType, | |
) -> _ArrayType: ... | |
def isneginf( # type: ignore[misc] | |
x: _FloatLike_co, | |
out: None = ..., | |
) -> bool_: ... | |
def isneginf( | |
x: _ArrayLikeFloat_co, | |
out: None = ..., | |
) -> NDArray[bool_]: ... | |
def isneginf( | |
x: _ArrayLikeFloat_co, | |
out: _ArrayType, | |
) -> _ArrayType: ... | |