# Collection Tasks
The tasks in this module can be used to represent collections of task results, such as lists, tuples, sets, and dictionaries.
In general, users will not instantiate these tasks by hand; they will automatically be applied when users create dependencies between a task and a collection of other objects.
# List
Collects task results into a list.
Args:
*args (Any): positional arguments for theTaskclass**kwargs (Any): keyword arguments for theTaskclass
| methods: |
|---|
prefect.tasks.core.collections.List.run (**task_results)[source] |
Args:
|
# Tuple
Collects task results into a tuple.
Args:
*args (Any): positional arguments for theTaskclass**kwargs (Any): keyword arguments for theTaskclass
| methods: |
|---|
prefect.tasks.core.collections.Tuple.run (**task_results)[source] |
Args:
|
# Set
Collects task results into a set.
Args:
*args (Any): positional arguments for theTaskclass**kwargs (Any): keyword arguments for theTaskclass
| methods: |
|---|
prefect.tasks.core.collections.Set.run (**task_results)[source] |
Args:
|
# Dict
Collects task results into a dict.
Args:
*args (Any): positional arguments for theTaskclass**kwargs (Any): keyword arguments for theTaskclass
| methods: |
|---|
prefect.tasks.core.collections.Dict.run (keys, values)[source] |
Args:
|
This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC