fix: Render py::handle same way as py::object

This commit is contained in:
Sergei Izmailov 2023-09-01 09:23:59 +09:00
parent d67afe450a
commit b9893666c7

View File

@ -906,6 +906,10 @@ struct handle_type_name<function> {
static constexpr auto name = const_name("Callable"); static constexpr auto name = const_name("Callable");
}; };
template <> template <>
struct handle_type_name<handle> {
static constexpr auto name = handle_type_name<object>::name;
};
template <>
struct handle_type_name<none> { struct handle_type_name<none> {
static constexpr auto name = const_name("None"); static constexpr auto name = const_name("None");
}; };