From d67afe450a64da55f9f66ef635d3ee543c3b89c7 Mon Sep 17 00:00:00 2001 From: Sergei Izmailov Date: Fri, 1 Sep 2023 09:23:33 +0900 Subject: [PATCH] fix: Add capitalize render name of `py::buffer` and `py::sequence` --- include/pybind11/cast.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 8a4e2e647..b05f6bbb0 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -882,6 +882,10 @@ struct handle_type_name { static constexpr auto name = const_name(PYBIND11_BYTES_NAME); }; template <> +struct handle_type_name { + static constexpr auto name = const_name("Buffer"); +}; +template <> struct handle_type_name { static constexpr auto name = const_name("int"); }; @@ -906,6 +910,10 @@ struct handle_type_name { static constexpr auto name = const_name("None"); }; template <> +struct handle_type_name { + static constexpr auto name = const_name("Sequence"); +}; +template <> struct handle_type_name { static constexpr auto name = const_name("*args"); };