--- /dev/null
+from typing import Any, Generic, Optional, TypeVar\r
+\r
+import queue\r
+\r
+_T = TypeVar('_T')\r
+\r
+class Queue(queue.Queue[_T]):\r
+ # FIXME: `ctx` is a circular dependency and it's not actually optional.\r
+ # It's marked as such to be able to use the generic Queue in __init__.pyi.\r
+ def __init__(self, maxsize: int = ..., *, ctx: Any = ...) -> None: ...\r
+ def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\r
+ def put(self, obj: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\r
+ def qsize(self) -> int: ...\r
+ def empty(self) -> bool: ...\r
+ def full(self) -> bool: ...\r
+ def put_nowait(self, item: _T) -> None: ...\r
+ def get_nowait(self) -> _T: ...\r
+ def close(self) -> None: ...\r
+ def join_thread(self) -> None: ...\r
+ def cancel_join_thread(self) -> None: ...\r
+\r
+class JoinableQueue(Queue[_T]):\r
+ def task_done(self) -> None: ...\r
+ def join(self) -> None: ...\r
+\r
+class SimpleQueue(Generic[_T]):\r
+ def __init__(self, *, ctx: Any = ...) -> None: ...\r
+ def empty(self) -> bool: ...\r
+ def get(self) -> _T: ...\r
+ def put(self, item: _T) -> None: ...\r