_array_utils_impl.pyi 502 B

12345678910
  1. import numpy as np
  2. from numpy._core.numeric import normalize_axis_index, normalize_axis_tuple
  3. __all__ = ["byte_bounds", "normalize_axis_tuple", "normalize_axis_index"]
  4. # NOTE: In practice `byte_bounds` can (potentially) take any object
  5. # implementing the `__array_interface__` protocol. The caveat is
  6. # that certain keys, marked as optional in the spec, must be present for
  7. # `byte_bounds`. This concerns `"strides"` and `"data"`.
  8. def byte_bounds(a: np.generic | np.ndarray) -> tuple[int, int]: ...