mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
fix: Render py::handle
same way as py::object
This commit is contained in:
parent
d67afe450a
commit
b9893666c7
@ -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");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user