diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index b05f6bbb0..d31cdfb02 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -906,6 +906,10 @@ struct handle_type_name { static constexpr auto name = const_name("Callable"); }; template <> +struct handle_type_name { + static constexpr auto name = handle_type_name::name; +}; +template <> struct handle_type_name { static constexpr auto name = const_name("None"); };