diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index e5bc4f266..cdeb4aa8b 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -952,10 +952,22 @@ struct handle_type_name { static constexpr auto name = const_name("Sequence"); }; template <> +struct handle_type_name { + static constexpr auto name = const_name("bytearray"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("memoryview"); +}; +template <> struct handle_type_name { static constexpr auto name = const_name("slice"); }; template <> +struct handle_type_name { + static constexpr auto name = const_name("type"); +}; +template <> struct handle_type_name { static constexpr auto name = const_name("*args"); };