Skip to content

Commit 5dabe61

Browse files
fix
1 parent ac66b30 commit 5dabe61

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/pybind11/numpy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ struct npy_api {
257257
NPY_LONG_, NPY_LONGLONG_, NPY_INT_}}),
258258
NPY_UINT64_ = platform_lookup<std::uint64_t, unsigned long, unsigned long long, unsigned int>({{
259259
NPY_ULONG_, NPY_ULONGLONG_, NPY_UINT_}}),
260-
NPY_STRING_, NPY_UNICODE_, NPY_VOID_
260+
// User-defined
261261
NPY_USERDEF_ = 256,
262262
// Descriptor flags
263263
NPY_NEEDS_INIT_ = 0x08,

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ set(PYBIND11_TEST_FILES
4848
test_multiple_inheritance.cpp
4949
test_numpy_array.cpp
5050
test_numpy_dtypes.cpp
51+
test_numpy_dtypes_user.cpp
5152
test_numpy_vectorize.cpp
5253
test_opaque_types.cpp
5354
test_operator_overloading.cpp

0 commit comments

Comments
 (0)