X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
numpy
/
lib
/
??
..
??
__init__.py
(2.7 KB)
??
__init__.pyi
(5.46 KB)
??
__pycache__
??
_datasource.py
(22.1 KB)
??
_iotools.py
(30.14 KB)
??
_version.py
(4.74 KB)
??
_version.pyi
(633 B)
??
arraypad.py
(31.06 KB)
??
arraypad.pyi
(1.69 KB)
??
arraysetops.py
(32.87 KB)
??
arraysetops.pyi
(8.14 KB)
??
arrayterator.py
(6.9 KB)
??
arrayterator.pyi
(1.5 KB)
??
format.py
(33.95 KB)
??
format.pyi
(748 B)
??
function_base.py
(184.67 KB)
??
function_base.pyi
(16.2 KB)
??
histograms.py
(36.81 KB)
??
histograms.pyi
(995 B)
??
index_tricks.py
(30.61 KB)
??
index_tricks.pyi
(4.15 KB)
??
mixins.py
(6.91 KB)
??
mixins.pyi
(3.04 KB)
??
nanfunctions.py
(64.23 KB)
??
nanfunctions.pyi
(606 B)
??
npyio.py
(95.04 KB)
??
npyio.pyi
(9.5 KB)
??
polynomial.py
(43.1 KB)
??
polynomial.pyi
(6.79 KB)
??
recfunctions.py
(58.03 KB)
??
scimath.py
(14.68 KB)
??
scimath.pyi
(2.82 KB)
??
setup.py
(405 B)
??
shape_base.py
(38.03 KB)
??
shape_base.pyi
(5.06 KB)
??
stride_tricks.py
(17.49 KB)
??
stride_tricks.pyi
(1.71 KB)
??
tests
??
twodim_base.py
(32.17 KB)
??
twodim_base.pyi
(5.24 KB)
??
type_check.py
(19.49 KB)
??
type_check.pyi
(5.44 KB)
??
ufunclike.py
(6.18 KB)
??
ufunclike.pyi
(1.26 KB)
??
user_array.py
(7.54 KB)
??
utils.py
(36.92 KB)
??
utils.pyi
(2.3 KB)
Editing: arraypad.pyi
from typing import ( Literal as L, Any, overload, TypeVar, Protocol, ) from numpy import generic from numpy._typing import ( ArrayLike, NDArray, _ArrayLikeInt, _ArrayLike, ) _SCT = TypeVar("_SCT", bound=generic) class _ModeFunc(Protocol): def __call__( self, vector: NDArray[Any], iaxis_pad_width: tuple[int, int], iaxis: int, kwargs: dict[str, Any], /, ) -> None: ... _ModeKind = L[ "constant", "edge", "linear_ramp", "maximum", "mean", "median", "minimum", "reflect", "symmetric", "wrap", "empty", ] __all__: list[str] # TODO: In practice each keyword argument is exclusive to one or more # specific modes. Consider adding more overloads to express this in the future. # Expand `**kwargs` into explicit keyword-only arguments @overload def pad( array: _ArrayLike[_SCT], pad_width: _ArrayLikeInt, mode: _ModeKind = ..., *, stat_length: None | _ArrayLikeInt = ..., constant_values: ArrayLike = ..., end_values: ArrayLike = ..., reflect_type: L["odd", "even"] = ..., ) -> NDArray[_SCT]: ... @overload def pad( array: ArrayLike, pad_width: _ArrayLikeInt, mode: _ModeKind = ..., *, stat_length: None | _ArrayLikeInt = ..., constant_values: ArrayLike = ..., end_values: ArrayLike = ..., reflect_type: L["odd", "even"] = ..., ) -> NDArray[Any]: ... @overload def pad( array: _ArrayLike[_SCT], pad_width: _ArrayLikeInt, mode: _ModeFunc, **kwargs: Any, ) -> NDArray[_SCT]: ... @overload def pad( array: ArrayLike, pad_width: _ArrayLikeInt, mode: _ModeFunc, **kwargs: Any, ) -> NDArray[Any]: ...
Upload File
Create Folder