mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
multiprocessing: args can be any Iterable (#7500)
https://github.com/python/cpython/blob/main/Lib/multiprocessing/process.py#L91
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user