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