Skip to content

Commit

Permalink
added missing pybind parameters defs
Browse files Browse the repository at this point in the history
  • Loading branch information
SJulianS committed Oct 23, 2024
1 parent a8e208f commit 47cdf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_bindings/bindings/gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace hal
:type: list[hal_py.Module]
)");

py_gate.def("get_modules", &Gate::get_modules, R"(
py_gate.def("get_modules", &Gate::get_modules, py::arg("filter") = nullptr, py::arg("recursive") = true, R"(
Get all modules that contain this gate, either directly or as parent of another module.
If recursive is set to True, indirect parent modules are also included. Otherwise, only the module containing the gate directly is returned.
The optional filter is evaluated on every candidate such that the result only contains those matching the specified condition.
Expand Down

0 comments on commit 47cdf8c

Please sign in to comment.