Skip to content

Commit 1002d84

Browse files
committed
Add python binding for Task::insert
1 parent d1a6916 commit 1002d84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/python/bindings/src/core.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ void export_core(pybind11::module& m) {
440440
t.add(it->cast<Stage::pointer>());
441441
},
442442
"Append stage(s) to the task's top-level container")
443+
.def("insert", &Task::insert, "stage"_a, "before"_a = -1, "Insert stage before given index")
443444
.def("__len__", [](const Task& t) { t.stages()->numChildren(); })
444445
.def(
445446
"__getitem__",

0 commit comments

Comments
 (0)