1 # Stubs for Queue (Python 2)
\r
3 from typing import Any, TypeVar, Generic, Optional
\r
7 class Empty(Exception): ...
\r
8 class Full(Exception): ...
\r
10 class Queue(Generic[_T]):
\r
11 maxsize = ... # type: Any
\r
12 mutex = ... # type: Any
\r
13 not_empty = ... # type: Any
\r
14 not_full = ... # type: Any
\r
15 all_tasks_done = ... # type: Any
\r
16 unfinished_tasks = ... # type: Any
\r
17 def __init__(self, maxsize: int = ...) -> None: ...
\r
18 def task_done(self) -> None: ...
\r
19 def join(self) -> None: ...
\r
20 def qsize(self) -> int: ...
\r
21 def empty(self) -> bool: ...
\r
22 def full(self) -> bool: ...
\r
23 def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
\r
24 def put_nowait(self, item: _T) -> None: ...
\r
25 def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
\r
26 def get_nowait(self) -> _T: ...
\r
28 class PriorityQueue(Queue): ...
\r
29 class LifoQueue(Queue): ...
\r