numeric.py 359 B

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