Skip to content

Commit

Permalink
Removed args and kwargs type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC authored Oct 10, 2024
1 parent 14dbbce commit e5c302e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1010,15 +1010,15 @@ struct handle_type_name<weakref> {
};
template <>
struct handle_type_name<args> {
static constexpr auto name = const_name("*args: typing.Any");
static constexpr auto name = const_name("*args");
};
template <typename T>
struct handle_type_name<Args<T>> {
static constexpr auto name = const_name("*args: ") + make_caster<T>::name;
};
template <>
struct handle_type_name<kwargs> {
static constexpr auto name = const_name("**kwargs: typing.Any");
static constexpr auto name = const_name("**kwargs");
};
template <typename T>
struct handle_type_name<KWArgs<T>> {
Expand Down

0 comments on commit e5c302e

Please sign in to comment.