Skip to main content

group

Create a new group with the given name. The method is intended to be used as a context manager.

@contextmanager
def group(name: str): ...

Create a new group with the given name. The method is intended to be used as a context manager.

Parameters​

NameTypeDescription
namestrThe name of the group under which enclosed tasks will be grouped

Returns​

TypeDescription
Iterator[None]Yields control within the context manager block with the group context applied.