massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / queue.pyi
1 # Stubs for queue\r
2 \r
3 # NOTE: These are incomplete!\r
4 \r
5 from typing import Any, TypeVar, Generic, Optional\r
6 \r
7 _T = TypeVar('_T')\r
8 \r
9 class Empty(Exception): ...\r
10 class Full(Exception): ...\r
11 \r
12 class Queue(Generic[_T]):\r
13     maxsize = ...  # type: int\r
14     def __init__(self, maxsize: int = ...) -> None: ...\r
15     def _init(self, maxsize: int) -> None: ...\r
16     def empty(self) -> bool: ...\r
17     def full(self) -> bool: ...\r
18     def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...\r
19     def get_nowait(self) -> _T: ...\r
20     def _get(self) -> _T: ...\r
21     def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...\r
22     def put_nowait(self, item: _T) -> None: ...\r
23     def _put(self, item: _T) -> None: ...\r
24     def join(self) -> None: ...\r
25     def qsize(self) -> int: ...\r
26     def _qsize(self) -> int: ...\r
27     def task_done(self) -> None: ...\r
28 \r
29 class PriorityQueue(Queue[_T]): ...\r
30 class LifoQueue(Queue[_T]): ...\r