diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 8551aa264..225d02571 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -41,10 +41,16 @@ PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE) PYBIND11_WARNING_DISABLE_MSVC(4127) +class dtype; // Forward declaration class array; // Forward declaration PYBIND11_NAMESPACE_BEGIN(detail) +template <> +struct handle_type_name { + static constexpr auto name = const_name("numpy.dtype"); +}; + template <> struct handle_type_name { static constexpr auto name = const_name("numpy.ndarray");