function_base.py 350 B

123456789
  1. def __getattr__(attr_name):
  2. from numpy._core import function_base
  3. from ._utils import _raise_warning
  4. ret = getattr(function_base, attr_name, None)
  5. if ret is None:
  6. raise AttributeError(
  7. f"module 'numpy.core.function_base' has no attribute {attr_name}")
  8. _raise_warning(attr_name, "function_base")
  9. return ret