multiprocessing: args can be any Iterable (#7500)

https://github.com/python/cpython/blob/main/Lib/multiprocessing/process.py#L91
This commit is contained in:
Jelle Zijlstra
2022-03-16 18:44:25 -07:00
committed by GitHub
parent 830b57f8f8
commit ba475a04c3

View File

@@ -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"]
@@ -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 = ...,