mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
fix: Add capitalize render name of py::buffer
and py::sequence
This commit is contained in:
parent
db412e6e86
commit
d67afe450a
@ -882,6 +882,10 @@ struct handle_type_name<bytes> {
|
|||||||
static constexpr auto name = const_name(PYBIND11_BYTES_NAME);
|
static constexpr auto name = const_name(PYBIND11_BYTES_NAME);
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
|
struct handle_type_name<buffer> {
|
||||||
|
static constexpr auto name = const_name("Buffer");
|
||||||
|
};
|
||||||
|
template <>
|
||||||
struct handle_type_name<int_> {
|
struct handle_type_name<int_> {
|
||||||
static constexpr auto name = const_name("int");
|
static constexpr auto name = const_name("int");
|
||||||
};
|
};
|
||||||
@ -906,6 +910,10 @@ struct handle_type_name<none> {
|
|||||||
static constexpr auto name = const_name("None");
|
static constexpr auto name = const_name("None");
|
||||||
};
|
};
|
||||||
template <>
|
template <>
|
||||||
|
struct handle_type_name<sequence> {
|
||||||
|
static constexpr auto name = const_name("Sequence");
|
||||||
|
};
|
||||||
|
template <>
|
||||||
struct handle_type_name<args> {
|
struct handle_type_name<args> {
|
||||||
static constexpr auto name = const_name("*args");
|
static constexpr auto name = const_name("*args");
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user