overrides.pyi 397 B

1234567891011
  1. from collections.abc import Callable, Hashable
  2. from typing import Any
  3. from typing_extensions import TypeIs
  4. import numpy as np
  5. def get_overridable_numpy_ufuncs() -> set[np.ufunc]: ...
  6. def get_overridable_numpy_array_functions() -> set[Callable[..., Any]]: ...
  7. def allows_array_ufunc_override(func: object) -> TypeIs[np.ufunc]: ...
  8. def allows_array_function_override(func: Hashable) -> bool: ...