Skip to content

Commit

Permalink
DOC: fix return value of run_tasks() (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Jul 5, 2024
1 parent d936e64 commit 187c3dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion audeer/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def run_tasks(
multiprocessing: bool = False,
progress_bar: bool = False,
task_description: str = None,
) -> typing.Sequence[typing.Any]:
) -> typing.List[typing.Any]:
r"""Run parallel tasks using multprocessing.
.. note:: Result values are returned in order of ``params``.
Expand All @@ -563,6 +563,9 @@ def run_tasks(
task_description: task description
that will be displayed next to progress bar
Returns:
list of computed results
Examples:
>>> power = lambda x, n: x**n
>>> params = [([2, n], {}) for n in range(10)]
Expand Down

0 comments on commit 187c3dc

Please sign in to comment.