We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2603e5 commit e714304Copy full SHA for e714304
tests/test_numpy_dtypes_user.cpp
@@ -205,6 +205,10 @@ PYBIND11_NUMPY_OBJECT_DTYPE(ObjectA);
205
PYBIND11_NUMPY_OBJECT_DTYPE(ObjectB);
206
207
TEST_SUBMODULE(numpy_dtype_user, m) {
208
+ // Supress warnings
209
+ (void)py::detail::npy_format_descriptor<ObjectA>::name;
210
+ (void)py::detail::npy_format_descriptor<ObjectB>::name;
211
+
212
ConstructorStats::type_fallback([](py::object cls) -> std::type_index* {
213
return const_cast<std::type_index*>(py::detail::dtype_info::find_entry(cls));
214
});
0 commit comments