We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c624329 commit 1526a53Copy full SHA for 1526a53
dpnp/__init__.py
@@ -71,25 +71,12 @@
71
from .dpnp_iface_utils import *
72
from .dpnp_iface_utils import __all__ as _ifaceutils__all__
73
from ._version import get_versions
74
+from . import scipy as scipy
75
76
__all__ = _iface__all__
77
__all__ += _ifaceutils__all__
78
+__all__ += ["scipy"]
79
80
-# expose dpnp.scipy submodule lazily (PEP 562)
-def __getattr__(name):
81
- if name == "scipy":
82
- mod = import_module("dpnp.scipy")
83
- globals()["scipy"] = mod
84
- return mod
85
- raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
86
-
87
88
-# make "scipy" visible in dir(dpnp) and star-imports
89
-try:
90
- __all__.append("scipy")
91
-except Exception:
92
- pass
93
94
__version__ = get_versions()["version"]
95
del get_versions
0 commit comments