You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numeric.py already imports everything from fromnumeric.py and puts it in numeric.__all__, so we can remove all the duplicates except issubdtype by removing the redundant line from core/__init__.py.
The duplication of issubdtype occurs because it is exposed as both numpy.core.issubdtype and numpy.lib.issubdtype:
issubdtype is defined in core/numerictypes.py, and is included in numerictypes.__all__.
core/numeric.py adds the names from core.numerictypes.__all__ to its __all__ list, and core/__init__.py adds numeric.__all__ to its __all__ list.
lib/utils.py imports issubclass_, issubsctype, and issubdtype from numpy.core.numerictypes and includes them in its __all__ list.
lib/__init__.py adds utils.__all__ to its __all__ list.
In the top-level __init__.py, core.__all__ and lib.__all__ are added to the numpy __all__ list.
Uh oh!
There was an error while loading. Please reload this page.
These might be symptomatic of having two implementations, where the one that is actually used is determined by the import order (not good).
The text was updated successfully, but these errors were encountered: