records.py 326 B

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