Skip to content

Commit 57070fb

Browse files
sizmailovwjakob
authored andcommitted
Render py::iterator/py::iterable as Iterator/Iterable in docstrings
1 parent 22b2504 commit 57070fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/pybind11/cast.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,8 @@ template <typename base, typename deleter> struct is_holder_type<base, std::uniq
16061606

16071607
template <typename T> struct handle_type_name { static constexpr auto name = _<T>(); };
16081608
template <> struct handle_type_name<bytes> { static constexpr auto name = _(PYBIND11_BYTES_NAME); };
1609+
template <> struct handle_type_name<iterable> { static constexpr auto name = _("Iterable"); };
1610+
template <> struct handle_type_name<iterator> { static constexpr auto name = _("Iterator"); };
16091611
template <> struct handle_type_name<args> { static constexpr auto name = _("*args"); };
16101612
template <> struct handle_type_name<kwargs> { static constexpr auto name = _("**kwargs"); };
16111613

0 commit comments

Comments
 (0)