Skip to main content

maybe_unroll_group

Unroll group with only one member. This allows treating a group of a single task as if it was a single task without pre-knowledge.

def maybe_unroll_group(
group: Group
) - > Task|Group

Unroll group with only one member. This allows treating a group of a single task as if it was a single task without pre-knowledge.

Parameters

NameTypeDescription
groupGroupThe task group object to evaluate for potential unrolling into a single task.

Returns

TypeDescription
`TaskGroup`