diff options
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; } |