From 7d1644c3b5124ae3007cd6b9507f2fc80b3dda2c Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Mon, 8 May 2023 16:09:51 +0200 Subject: TYP: Re-export the `np.dtypes` namespace xref https://github.com/numpy/numpy/pull/23358 --- numpy/__init__.pyi | 1 + numpy/typing/tests/data/reveal/modules.pyi | 1 + 2 files changed, 2 insertions(+) (limited to 'numpy') 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 -- cgit v1.2.1