massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / queue.pyi
diff --git a/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/queue.pyi b/.config/coc/extensions/coc-python-data/languageServer.0.5.59/Typeshed/stdlib/3/queue.pyi
new file mode 100644 (file)
index 0000000..0e3e9f4
--- /dev/null
@@ -0,0 +1,30 @@
+# Stubs for queue\r
+\r
+# NOTE: These are incomplete!\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: int\r
+    def __init__(self, maxsize: int = ...) -> None: ...\r
+    def _init(self, maxsize: int) -> None: ...\r
+    def empty(self) -> bool: ...\r
+    def full(self) -> bool: ...\r
+    def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\r
+    def get_nowait(self) -> _T: ...\r
+    def _get(self) -> _T: ...\r
+    def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\r
+    def put_nowait(self, item: _T) -> None: ...\r
+    def _put(self, item: _T) -> None: ...\r
+    def join(self) -> None: ...\r
+    def qsize(self) -> int: ...\r
+    def _qsize(self) -> int: ...\r
+    def task_done(self) -> None: ...\r
+\r
+class PriorityQueue(Queue[_T]): ...\r
+class LifoQueue(Queue[_T]): ...\r