diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 3c9b7c927..77eb61995 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -874,6 +874,38 @@ struct handle_type_name { static constexpr auto name = const_name(); }; template <> +struct handle_type_name { + static constexpr auto name = const_name("object"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("list"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("dict"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("set"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("frozenset"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("anyset"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("str"); +}; +template <> +struct handle_type_name { + static constexpr auto name = const_name("tuple"); +}; +template <> struct handle_type_name { static constexpr auto name = const_name("bool"); };