Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: fix return value of run_tasks() #150

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading