Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Jun 15, 2024
1 parent 800dbb2 commit fd47e28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/pybind11/typing.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ class Callable<Return(Args...)> : public function {
template <typename T>
class Type : public type {
using type::type;
} template <typename... Types>
};

template <typename... Types>
class Union : public object {
using object::object;
};
Expand Down Expand Up @@ -137,7 +139,9 @@ struct handle_type_name<typing::Callable<Return(Args...)>> {
template <typename T>
struct handle_type_name<typing::Type<T>> {
static constexpr auto name = const_name("type[") + make_caster<T>::name + const_name("]");
} template <typename... Types>
};

template <typename... Types>
struct handle_type_name<typing::Union<Types...>> {
static constexpr auto name = const_name("Union[")
+ ::pybind11::detail::concat(make_caster<Types>::name...)
Expand Down

0 comments on commit fd47e28

Please sign in to comment.