Changed default type hint to typing.Any

This commit is contained in:
gentlegiantJGC 2024-09-06 14:07:26 +01:00
parent 862b807adf
commit 14dbbce6bd

View File

@ -1010,7 +1010,7 @@ struct handle_type_name<weakref> {
}; };
template <> template <>
struct handle_type_name<args> { struct handle_type_name<args> {
static constexpr auto name = const_name("*args: ") + make_caster<object>::name; static constexpr auto name = const_name("*args: typing.Any");
}; };
template <typename T> template <typename T>
struct handle_type_name<Args<T>> { struct handle_type_name<Args<T>> {
@ -1018,7 +1018,7 @@ struct handle_type_name<Args<T>> {
}; };
template <> template <>
struct handle_type_name<kwargs> { struct handle_type_name<kwargs> {
static constexpr auto name = const_name("**kwargs: ") + make_caster<object>::name; static constexpr auto name = const_name("**kwargs: typing.Any");
}; };
template <typename T> template <typename T>
struct handle_type_name<KWArgs<T>> { struct handle_type_name<KWArgs<T>> {