diff --git a/taskflow/patterns/linear_flow.py b/taskflow/patterns/linear_flow.py index 03f4380c..c8ebe636 100644 --- a/taskflow/patterns/linear_flow.py +++ b/taskflow/patterns/linear_flow.py @@ -60,6 +60,9 @@ class Flow(flow.Flow): for child in self._children: yield child + def __getitem__(self, index): + return self._children[index] + @property def provides(self): provides = set()