massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / Queue.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/Queue.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/2/Queue.pyi
new file mode 100644 (file)
index 0000000..b97b6ee
--- /dev/null
@@ -0,0 +1,29 @@
+# Stubs for Queue (Python 2)\r
+\r
+from typing import Any, TypeVar, Generic, Optional\r
+\r
+_T = TypeVar('_T')\r
+\r
+class Empty(Exception): ...\r
+class Full(Exception): ...\r
+\r
+class Queue(Generic[_T]):\r
+    maxsize = ...  # type: Any\r
+    mutex = ...  # type: Any\r
+    not_empty = ...  # type: Any\r
+    not_full = ...  # type: Any\r
+    all_tasks_done = ...  # type: Any\r
+    unfinished_tasks = ...  # type: Any\r
+    def __init__(self, maxsize: int = ...) -> None: ...\r
+    def task_done(self) -> None: ...\r
+    def join(self) -> None: ...\r
+    def qsize(self) -> int: ...\r
+    def empty(self) -> bool: ...\r
+    def full(self) -> bool: ...\r
+    def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\r
+    def put_nowait(self, item: _T) -> None: ...\r
+    def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\r
+    def get_nowait(self) -> _T: ...\r
+\r
+class PriorityQueue(Queue): ...\r
+class LifoQueue(Queue): ...\r