From 760ff878b9cbe0fe25acdbaf59e374e03821141a Mon Sep 17 00:00:00 2001 From: Luka Sterbic Date: Thu, 15 Feb 2018 11:56:04 +0000 Subject: [PATCH] Add _taskqueue to MP Pool --- stdlib/3/multiprocessing/pool.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/3/multiprocessing/pool.pyi b/stdlib/3/multiprocessing/pool.pyi index 779961abbfa9..b1238053514b 100644 --- a/stdlib/3/multiprocessing/pool.pyi +++ b/stdlib/3/multiprocessing/pool.pyi @@ -2,9 +2,10 @@ # NOTE: These are incomplete! +from queue import Queue from typing import ( Any, Callable, ContextManager, Iterable, Mapping, Optional, Dict, List, - TypeVar, + Tuple, TypeVar ) _T = TypeVar('_T', bound='Pool') @@ -16,6 +17,7 @@ class AsyncResult(): def successful(self) -> bool: ... class Pool(ContextManager[Pool]): + _taskqueue: Queue[Tuple] def __init__(self, processes: Optional[int] = ..., initializer: Optional[Callable[..., None]] = ..., initargs: Iterable[Any] = ...,