mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Improve multiprocessing stubs (#8202)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
@@ -72,7 +72,7 @@ class Pool:
|
||||
def __init__(
|
||||
self,
|
||||
processes: int | None = ...,
|
||||
initializer: Callable[..., None] | None = ...,
|
||||
initializer: Callable[..., object] | None = ...,
|
||||
initargs: Iterable[Any] = ...,
|
||||
maxtasksperchild: int | None = ...,
|
||||
context: Any | None = ...,
|
||||
@@ -118,7 +118,7 @@ class Pool:
|
||||
|
||||
class ThreadPool(Pool):
|
||||
def __init__(
|
||||
self, processes: int | None = ..., initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...
|
||||
self, processes: int | None = ..., initializer: Callable[..., object] | None = ..., initargs: Iterable[Any] = ...
|
||||
) -> None: ...
|
||||
|
||||
# undocumented
|
||||
|
||||
Reference in New Issue
Block a user