diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-12 12:14:33 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-12 12:26:48 +0200 |
commit | 569f7bc692aab41014ddc683c06e84e1bc276305 (patch) | |
tree | 7e1b490fe442d71fb9bcf01eb797bfebcaac16d6 /numpy/core/src | |
parent | 868a53b6725da70d408eb60b93a6f248cdd4b880 (diff) | |
download | numpy-569f7bc692aab41014ddc683c06e84e1bc276305.tar.gz |
MAINT: Move module to be `np.dtypes` and add release note
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarray/arraytypes.c.src | 4 | ||||
-rw-r--r-- | numpy/core/src/multiarray/dtypemeta.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/src/multiarray/arraytypes.c.src b/numpy/core/src/multiarray/arraytypes.c.src index 537234358..b84625c77 100644 --- a/numpy/core/src/multiarray/arraytypes.c.src +++ b/numpy/core/src/multiarray/arraytypes.c.src @@ -4658,9 +4658,9 @@ set_typeinfo(PyObject *dict) */ if (dtypemeta_wrap_legacy_descriptor( _builtin_descrs[NPY_@NAME@], - "numpy.types." NPY_@NAME@_Name "DType", + "numpy.dtypes." NPY_@NAME@_Name "DType", #ifdef NPY_@NAME@_alias - "numpy.types." NPY_@NAME@_Alias "DType" + "numpy.dtypes." NPY_@NAME@_Alias "DType" #else NULL #endif diff --git a/numpy/core/src/multiarray/dtypemeta.c b/numpy/core/src/multiarray/dtypemeta.c index 2abbf394e..2052f17fd 100644 --- a/numpy/core/src/multiarray/dtypemeta.c +++ b/numpy/core/src/multiarray/dtypemeta.c @@ -791,7 +791,7 @@ dtypemeta_wrap_legacy_descriptor(PyArray_Descr *descr, .tp_flags = Py_TPFLAGS_DEFAULT, .tp_base = &PyArrayDescr_Type, .tp_new = (newfunc)legacy_dtype_default_new, - .tp_doc = ( + .tp_doc = ( "DType class corresponding to the scalar type and dtype of " "the same name.\n\n" "Please see `numpy.dtype` for the typical way to create\n" @@ -895,7 +895,7 @@ dtypemeta_wrap_legacy_descriptor(PyArray_Descr *descr, /* And it to the types submodule if it is a builtin dtype */ if (!PyTypeNum_ISUSERDEF(descr->type_num)) { static PyObject *add_dtype_helper = NULL; - npy_cache_import("numpy.types", "_add_dtype_helper", &add_dtype_helper); + npy_cache_import("numpy.dtypes", "_add_dtype_helper", &add_dtype_helper); if (add_dtype_helper == NULL) { return -1; } |