Skip to content

Commit 57fb9f3

Browse files
Unify byte_bounds() export in __init__.py and remove wildcard import
1 parent b8a4b73 commit 57fb9f3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

dpnp/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@
6666
from .dpnp_array import dpnp_array as ndarray
6767
from .dpnp_array_api_info import __array_namespace_info__
6868
from .dpnp_flatiter import flatiter as flatiter
69-
from .dpnp_iface_utils import *
70-
from .dpnp_iface_utils import __all__ as _ifaceutils__all__
7169
from ._version import get_versions
7270
from . import exceptions as exceptions
7371
from . import fft as fft
@@ -498,6 +496,11 @@
498496
unwrap,
499497
)
500498

499+
# -----------------------------------------------------------------------------
500+
# Miscellaneous routines
501+
# -----------------------------------------------------------------------------
502+
from .dpnp_iface_utils import byte_bounds
503+
501504
# -----------------------------------------------------------------------------
502505
# Sorting, searching, and counting
503506
# -----------------------------------------------------------------------------
@@ -588,10 +591,8 @@
588591
)
589592

590593

591-
__all__ = _ifaceutils__all__
592-
593594
# add submodules
594-
__all__ += ["exceptions", "fft", "linalg", "random", "scipy"]
595+
__all__ = ["exceptions", "fft", "linalg", "random", "scipy"]
595596

596597

597598
__version__ = get_versions()["version"]

dpnp/dpnp_iface_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737

3838
import dpnp
3939

40-
__all__ = ["byte_bounds"]
41-
4240

4341
def byte_bounds(a):
4442
"""

0 commit comments

Comments
 (0)