Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
_array_utils_impl.pyi11 linesDownload Raw Back to lib
1import numpy as np
2from numpy._core.numeric import normalize_axis_index, normalize_axis_tuple
3
4__all__ = ["byte_bounds", "normalize_axis_tuple", "normalize_axis_index"]
5
6# NOTE: In practice `byte_bounds` can (potentially) take any object
7# implementing the `__array_interface__` protocol. The caveat is
8# that certain keys, marked as optional in the spec, must be present for
9#  `byte_bounds`. This concerns `"strides"` and `"data"`.
10def byte_bounds(a: np.generic | np.ndarray) -> tuple[int, int]: ...
11 
codekingpro/portable-devtools · Team Ai