Skip to content

Commit

Permalink
Add missing handle_type_name<slice> specialization (discovered only…
Browse files Browse the repository at this point in the history
… through global testing).
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Oct 22, 2023
1 parent 7c8991a commit 63a4881
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,10 @@ struct handle_type_name<sequence> {
static constexpr auto name = const_name("Sequence");
};
template <>
struct handle_type_name<slice> {
static constexpr auto name = const_name("slice");
};
template <>
struct handle_type_name<args> {
static constexpr auto name = const_name("*args");
};
Expand Down

0 comments on commit 63a4881

Please sign in to comment.