golden hour
/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
2.7 KB
Del
OK
__init__.pyi
5.46 KB
Del
OK
__pycache__
-
Del
OK
_datasource.py
22.1 KB
Del
OK
_iotools.py
30.14 KB
Del
OK
_version.py
4.74 KB
Del
OK
_version.pyi
633 B
Del
OK
arraypad.py
31.06 KB
Del
OK
arraypad.pyi
1.69 KB
Del
OK
arraysetops.py
32.87 KB
Del
OK
arraysetops.pyi
8.14 KB
Del
OK
arrayterator.py
6.9 KB
Del
OK
arrayterator.pyi
1.5 KB
Del
OK
format.py
33.95 KB
Del
OK
format.pyi
748 B
Del
OK
function_base.py
184.67 KB
Del
OK
function_base.pyi
16.2 KB
Del
OK
histograms.py
36.81 KB
Del
OK
histograms.pyi
995 B
Del
OK
index_tricks.py
30.61 KB
Del
OK
index_tricks.pyi
4.15 KB
Del
OK
mixins.py
6.91 KB
Del
OK
mixins.pyi
3.04 KB
Del
OK
nanfunctions.py
64.23 KB
Del
OK
nanfunctions.pyi
606 B
Del
OK
npyio.py
95.04 KB
Del
OK
npyio.pyi
9.5 KB
Del
OK
polynomial.py
43.1 KB
Del
OK
polynomial.pyi
6.79 KB
Del
OK
recfunctions.py
58.03 KB
Del
OK
scimath.py
14.68 KB
Del
OK
scimath.pyi
2.82 KB
Del
OK
setup.py
405 B
Del
OK
shape_base.py
38.03 KB
Del
OK
shape_base.pyi
5.06 KB
Del
OK
stride_tricks.py
17.49 KB
Del
OK
stride_tricks.pyi
1.71 KB
Del
OK
tests
-
Del
OK
twodim_base.py
32.17 KB
Del
OK
twodim_base.pyi
5.24 KB
Del
OK
type_check.py
19.49 KB
Del
OK
type_check.pyi
5.44 KB
Del
OK
ufunclike.py
6.18 KB
Del
OK
ufunclike.pyi
1.26 KB
Del
OK
user_array.py
7.54 KB
Del
OK
utils.py
36.92 KB
Del
OK
utils.pyi
2.3 KB
Del
OK
Edit: utils.pyi
from ast import AST from collections.abc import Callable, Mapping, Sequence from typing import ( Any, overload, TypeVar, Protocol, ) from numpy import ndarray, generic from numpy.core.numerictypes import ( issubclass_ as issubclass_, issubdtype as issubdtype, issubsctype as issubsctype, ) _T_contra = TypeVar("_T_contra", contravariant=True) _FuncType = TypeVar("_FuncType", bound=Callable[..., Any]) # A file-like object opened in `w` mode class _SupportsWrite(Protocol[_T_contra]): def write(self, s: _T_contra, /) -> Any: ... __all__: list[str] class _Deprecate: old_name: None | str new_name: None | str message: None | str def __init__( self, old_name: None | str = ..., new_name: None | str = ..., message: None | str = ..., ) -> None: ... # NOTE: `__call__` can in principle take arbitrary `*args` and `**kwargs`, # even though they aren't used for anything def __call__(self, func: _FuncType) -> _FuncType: ... def get_include() -> str: ... @overload def deprecate( *, old_name: None | str = ..., new_name: None | str = ..., message: None | str = ..., ) -> _Deprecate: ... @overload def deprecate( func: _FuncType, /, old_name: None | str = ..., new_name: None | str = ..., message: None | str = ..., ) -> _FuncType: ... def deprecate_with_doc(msg: None | str) -> _Deprecate: ... # NOTE: In practice `byte_bounds` can (potentially) take any object # implementing the `__array_interface__` protocol. The caveat is # that certain keys, marked as optional in the spec, must be present for # `byte_bounds`. This concerns `"strides"` and `"data"`. def byte_bounds(a: generic | ndarray[Any, Any]) -> tuple[int, int]: ... def who(vardict: None | Mapping[str, ndarray[Any, Any]] = ...) -> None: ... def info( object: object = ..., maxwidth: int = ..., output: None | _SupportsWrite[str] = ..., toplevel: str = ..., ) -> None: ... def source( object: object, output: None | _SupportsWrite[str] = ..., ) -> None: ... def lookfor( what: str, module: None | str | Sequence[str] = ..., import_modules: bool = ..., regenerate: bool = ..., output: None | _SupportsWrite[str] =..., ) -> None: ... def safe_eval(source: str | AST) -> Any: ... def show_runtime() -> None: ...
Save