mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Changed default type hint to typing.Any
This commit is contained in:
parent
862b807adf
commit
14dbbce6bd
@ -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>> {
|
||||||
|
Loading…
Reference in New Issue
Block a user