mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
fix: Missing typed variants of iterator and iterable (#4832)
This commit is contained in:
@@ -828,6 +828,8 @@ TEST_SUBMODULE(pytypes, m) {
|
||||
m.def("annotate_dict_str_int", [](const py::typing::Dict<py::str, int> &) {});
|
||||
m.def("annotate_list_int", [](const py::typing::List<int> &) {});
|
||||
m.def("annotate_set_str", [](const py::typing::Set<std::string> &) {});
|
||||
m.def("annotate_iterable_str", [](const py::typing::Iterable<std::string> &) {});
|
||||
m.def("annotate_iterator_int", [](const py::typing::Iterator<int> &) {});
|
||||
m.def("annotate_fn",
|
||||
[](const py::typing::Callable<int(py::typing::List<py::str>, py::str)> &) {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user