Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
_utils_impl.pyi23 linesDownload Raw Back to lib
1from _typeshed import SupportsWrite
2from typing import LiteralString
3from typing_extensions import TypeVar
4
5import numpy as np
6
7__all__ = ["get_include", "info", "show_runtime"]
8
9_ScalarOrArrayT = TypeVar("_ScalarOrArrayT", bound=np.generic | np.ndarray)
10_DTypeT = TypeVar("_DTypeT", bound=np.dtype)
11
12###
13
14def get_include() -> LiteralString: ...
15def show_runtime() -> None: ...
16def info(
17    object: object = None, maxwidth: int = 76, output: SupportsWrite[str] | None = None, toplevel: str = "numpy"
18) -> None: ...
19def drop_metadata(dtype: _DTypeT, /) -> _DTypeT: ...
20
21# used internally by `lib._function_base_impl._median`
22def _median_nancheck(data: np.ndarray, result: _ScalarOrArrayT, axis: int) -> _ScalarOrArrayT: ...
23 
codekingpro/portable-devtools · Team Ai