Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
numeric.py13 linesDownload Raw Back to core
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 
codekingpro/portable-devtools · Team Ai