Skip to content

Commit a3cd770

Browse files
author
zhangyue
committed
fix(scripts): py::arg order in bindings generator must match C++ param order (impl before stream)
1 parent 8eacfef commit a3cd770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate_wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def _generate_call(op_name, call, method=True):
206206
f" Config config;\n"
207207
f" config.set_implementation_index(implementation_index);\n"
208208
f" return Self::Call(handle, config, {call_args});\n"
209-
f' }}, {py_args_str}py::kw_only(), py::arg("stream") = 0, py::arg("implementation_index") = 0);'
209+
f' }}, {py_args_str}py::kw_only(), py::arg("implementation_index") = 0, py::arg("stream") = 0);'
210210
)
211211

212212
return f""" .def("__call__", [](const Self& self, {call_params}) {{

0 commit comments

Comments
 (0)