MCPcopy Create free account
hub / github.com/pybind/pybind11 / first_arg_kw_only

Class first_arg_kw_only

tests/test_kwargs_and_defaults.cpp:306–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 // https://github.com/pybind/pybind11/pull/3402#issuecomment-963341987
305
306 struct first_arg_kw_only {};
307 py::class_<first_arg_kw_only>(m, "first_arg_kw_only")
308 .def(py::init([](int) { return first_arg_kw_only(); }),
309 py::kw_only(), // This being before any args was broken

Callers 1

TEST_SUBMODULEFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_SUBMODULEFunction · 0.68