diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/__init__.pyi | 4 | ||||
-rw-r--r-- | numpy/core/defchararray.pyi (renamed from numpy/char.pyi) | 0 | ||||
-rw-r--r-- | numpy/typing/tests/test_isfile.py | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/numpy/__init__.pyi b/numpy/__init__.pyi index 33e2af72c..4949df318 100644 --- a/numpy/__init__.pyi +++ b/numpy/__init__.pyi @@ -197,7 +197,6 @@ from typing import ( # Ensures that the stubs are picked up from numpy import ( - char as char, ctypeslib as ctypeslib, fft as fft, lib as lib, @@ -211,6 +210,9 @@ from numpy import ( version as version, ) +from numpy.core import defchararray +char = defchararray + from numpy.core.function_base import ( linspace as linspace, logspace as logspace, diff --git a/numpy/char.pyi b/numpy/core/defchararray.pyi index 28d247b05..28d247b05 100644 --- a/numpy/char.pyi +++ b/numpy/core/defchararray.pyi diff --git a/numpy/typing/tests/test_isfile.py b/numpy/typing/tests/test_isfile.py index b617b3873..ac99cb6c1 100644 --- a/numpy/typing/tests/test_isfile.py +++ b/numpy/typing/tests/test_isfile.py @@ -8,7 +8,6 @@ ROOT = Path(np.__file__).parents[0] FILES = [ ROOT / "py.typed", ROOT / "__init__.pyi", - ROOT / "char.pyi", ROOT / "ctypeslib.pyi", ROOT / "rec.pyi", ROOT / "core" / "__init__.pyi", |