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