diff options
author | Bas van Beek <b.f.van.beek@vu.nl> | 2021-09-20 17:05:37 +0200 |
---|---|---|
committer | Bas van Beek <b.f.van.beek@vu.nl> | 2021-09-21 14:08:33 +0200 |
commit | 106cce574a90034bb4dac5159e42f3bf4174b8cf (patch) | |
tree | dca73af78211ad6ec596a215fbd74e553b6ef986 | |
parent | 104cf6d7063b1e2183e7aea79f8350d3cf33a29f (diff) | |
download | numpy-106cce574a90034bb4dac5159e42f3bf4174b8cf.tar.gz |
MAINT: Move the `np.char` stubs to `np.core.defchararray`
-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", |