Skip to content

Commit

Permalink
multiprocessing: args can be any Iterable (#7500)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Mar 17, 2022
1 parent 830b57f commit ba475a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stdlib/multiprocessing/process.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from typing import Any, Callable, Mapping
from collections.abc import Callable, Iterable, Mapping
from typing import Any

if sys.version_info >= (3, 8):
__all__ = ["BaseProcess", "current_process", "active_children", "parent_process"]
Expand All @@ -16,7 +17,7 @@ class BaseProcess:
group: None = ...,
target: Callable[..., Any] | None = ...,
name: str | None = ...,
args: tuple[Any, ...] = ...,
args: Iterable[Any] = ...,
kwargs: Mapping[str, Any] = ...,
*,
daemon: bool | None = ...,
Expand Down

0 comments on commit ba475a0

Please sign in to comment.