You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim_config/typings/numpy/lib/ufunclike.pyi

51 lines
1.2 KiB

"""
This type stub file was generated by pyright.
"""
from typing import Any, TypeVar, overload
from numpy import bool_, floating, ndarray, object_
from numpy._typing import NDArray, _ArrayLikeFloat_co, _ArrayLikeObject_co, _FloatLike_co
_ArrayType = TypeVar("_ArrayType", bound=ndarray[Any, Any])
__all__: list[str]
@overload
def fix(x: _FloatLike_co, out: None = ...) -> floating[Any]:
...
@overload
def fix(x: _ArrayLikeFloat_co, out: None = ...) -> NDArray[floating[Any]]:
...
@overload
def fix(x: _ArrayLikeObject_co, out: None = ...) -> NDArray[object_]:
...
@overload
def fix(x: _ArrayLikeFloat_co | _ArrayLikeObject_co, out: _ArrayType) -> _ArrayType:
...
@overload
def isposinf(x: _FloatLike_co, out: None = ...) -> bool_:
...
@overload
def isposinf(x: _ArrayLikeFloat_co, out: None = ...) -> NDArray[bool_]:
...
@overload
def isposinf(x: _ArrayLikeFloat_co, out: _ArrayType) -> _ArrayType:
...
@overload
def isneginf(x: _FloatLike_co, out: None = ...) -> bool_:
...
@overload
def isneginf(x: _ArrayLikeFloat_co, out: None = ...) -> NDArray[bool_]:
...
@overload
def isneginf(x: _ArrayLikeFloat_co, out: _ArrayType) -> _ArrayType:
...