22
33from typing import (
44 Any , Callable , ContextManager , Iterable , Mapping , Optional , Dict , List ,
5- Union , TypeVar , Sequence , Tuple
5+ Union , Sequence , Tuple
66)
77
88from logging import Logger
@@ -12,11 +12,9 @@ from multiprocessing.context import (
1212 ProcessError , BufferTooShort , TimeoutError , AuthenticationError )
1313from multiprocessing .managers import SyncManager
1414from multiprocessing .process import current_process as current_process
15- import queue
15+ from multiprocessing . queues import Queue , SimpleQueue , JoinableQueue
1616import sys
1717
18- _T = TypeVar ('_T' )
19-
2018# N.B. The functions below are generated at runtime by partially applying
2119# multiprocessing.context.BaseContext's methods, so the two signatures should
2220# be identical (modulo self).
@@ -62,19 +60,6 @@ class Process():
6260 def is_alive (self ) -> bool : ...
6361 def join (self , timeout : Optional [float ] = ...) -> None : ...
6462
65- class Queue (queue .Queue [_T ]):
66- def __init__ (self , maxsize : int = ...) -> None : ...
67- def get (self , block : bool = ..., timeout : Optional [float ] = ...) -> _T : ...
68- def put (self , item : _T , block : bool = ..., timeout : Optional [float ] = ...) -> None : ...
69- def qsize (self ) -> int : ...
70- def empty (self ) -> bool : ...
71- def full (self ) -> bool : ...
72- def put_nowait (self , item : _T ) -> None : ...
73- def get_nowait (self ) -> _T : ...
74- def close (self ) -> None : ...
75- def join_thread (self ) -> None : ...
76- def cancel_join_thread (self ) -> None : ...
77-
7863class Value ():
7964 value : Any = ...
8065 def __init__ (self , typecode_or_type : str , * args : Any , lock : bool = ...) -> None : ...
0 commit comments