8000 TYP: add missing ``numpy.lib`` exports · sthagen/numpy-numpy@7bf8570 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bf8570

Browse files
committed
TYP: add missing numpy.lib exports
1 parent 031f442 commit 7bf8570

File tree

1 file changed

+25
-9
lines changed

1 file changed

+25
-9
lines changed

numpy/lib/__init__.pyi

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,30 @@
11
from numpy._core.function_base import add_newdoc
22
from numpy._core.multiarray import add_docstring, tracemalloc_domain
33

4-
from . import ( # noqa: F401
5-
array_utils,
6-
format,
7-
introspect,
8-
mixins,
9-
npyio,
10-
scimath,
11-
stride_tricks,
12-
)
4+
# all submodules of `lib` are accessible at runtime through `__getattr__`,
5+
# so we implicitly re-export them here
6+
from . import _array_utils_impl as _array_utils_impl
7+
from . import _arraypad_impl as _arraypad_impl
8+
from . import _arraysetops_impl as _arraysetops_impl
9+
from . import _arrayterator_impl as _arrayterator_impl
10+
from . import _datasource as _datasource
11+
from . import _format_impl as _format_impl
12+
from . import _function_base_impl as _function_base_impl
13+
from . import _histograms_impl as _histograms_impl
14+
from . import _index_tricks_impl as _index_tricks_impl
15+
from . import _iotools as _iotools
16+
from . import _nanfunctions_impl as _nanfunctions_impl
17+
from . import _npyio_impl as _npyio_impl
18+
from . import _polynomial_impl as _polynomial_impl
19+
from . import _scimath_impl as _scimath_impl
20+
from . import _shape_base_impl as _shape_base_impl
21+
from . import _stride_tricks_impl as _stride_tricks_impl
22+
from . import _twodim_base_impl as _twodim_base_impl
23+
from . import _type_check_impl as _type_check_impl
24+
from . import _ufunclike_impl as _ufunclike_impl
25+
from . import _utils_impl as _utils_impl
26+
from . import _version as _version
27+
from . import array_utils, format, introspect, mixins, npyio, scimath, stride_tricks
1328
from ._arrayterator_impl import Arrayterator
1429
from ._version import NumpyVersion
1530

@@ -18,6 +33,7 @@ __all__ = [
1833
"add_docstring",
1934
"add_newdoc",
2035
"array_utils",
36+
"format",
2137
"introspect",
2238
"mixins",
2339
"NumpyVersion",

0 commit comments

Comments
 (0)
0