From b9893666c7621beadd7cf43c3dead2ba7ef06cf9 Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Fri, 1 Sep 2023 09:23:59 +0900 Subject: [PATCH] fix: Render `py::handle` same way as `py::object` --- include/pybind11/cast.h | 4 ++++ 1 file changed, 4 insertions(+) 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"); };