Searched refs:kw_func (Results 1 – 1 of 1) sorted by relevance
/external/python/pybind11/tests/ |
D | test_kwargs_and_defaults.cpp | 15 … auto kw_func = [](int x, int y) { return "x=" + std::to_string(x) + ", y=" + std::to_string(y); }; in TEST_SUBMODULE() local 18 m.def("kw_func0", kw_func); in TEST_SUBMODULE() 19 m.def("kw_func1", kw_func, py::arg("x"), py::arg("y")); in TEST_SUBMODULE() 20 m.def("kw_func2", kw_func, py::arg("x") = 100, py::arg("y") = 200); in TEST_SUBMODULE() 33 m.def("kw_func_udl", kw_func, "x"_a, "y"_a=300); in TEST_SUBMODULE() 34 m.def("kw_func_udl_z", kw_func, "x"_a, "y"_a=0); in TEST_SUBMODULE()
|