defchararray.py 346 B

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