diff options
author | Bas van Beek <bas.vanbeek@hotmail.com> | 2023-05-08 16:09:51 +0200 |
---|---|---|
committer | Bas van Beek <bas.vanbeek@hotmail.com> | 2023-05-08 16:10:14 +0200 |
commit | 7d1644c3b5124ae3007cd6b9507f2fc80b3dda2c (patch) | |
tree | d7b7ef03ffbeb8758642cc4cd767520fd3cb4616 /numpy | |
parent | f0bd36b16e35b0d7fc5765e2373e1ff3efa2f57e (diff) | |
download | numpy-7d1644c3b5124ae3007cd6b9507f2fc80b3dda2c.tar.gz |
TYP: Re-export the `np.dtypes` namespace
xref https://github.com/numpy/numpy/pull/23358
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/__init__.pyi | 1 | ||||
-rw-r--r-- | numpy/typing/tests/data/reveal/modules.pyi | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 935a58961..ef1f9046a 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -210,6 +210,7 @@ from numpy import ( testing as testing, version as version, exceptions as exceptions, + dtypes as dtypes, ) from numpy.core import defchararray, records diff --git a/numpy/typing/tests/data/reveal/modules.pyi b/numpy/typing/tests/data/reveal/modules.pyi index 7d6fdb9eb..4191c564a 100644 --- a/numpy/typing/tests/data/reveal/modules.pyi +++ b/numpy/typing/tests/data/reveal/modules.pyi @@ -17,6 +17,7 @@ reveal_type(np.rec) # E: ModuleType reveal_type(np.testing) # E: ModuleType reveal_type(np.version) # E: ModuleType reveal_type(np.exceptions) # E: ModuleType +reveal_type(np.dtypes) # E: ModuleType reveal_type(np.lib.format) # E: ModuleType reveal_type(np.lib.mixins) # E: ModuleType |