mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
30 lines
916 B
Python
30 lines
916 B
Python
# Stubs for Queue (Python 2)
|
|
#
|
|
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
|
|
|
from typing import Any
|
|
|
|
class Empty(Exception): ...
|
|
class Full(Exception): ...
|
|
|
|
class Queue:
|
|
maxsize = ... # type: Any
|
|
mutex = ... # type: Any
|
|
not_empty = ... # type: Any
|
|
not_full = ... # type: Any
|
|
all_tasks_done = ... # type: Any
|
|
unfinished_tasks = ... # type: Any
|
|
def __init__(self, maxsize: int = 0) -> None: ...
|
|
def task_done(self) -> None: ...
|
|
def join(self) -> None: ...
|
|
def qsize(self) -> int: ...
|
|
def empty(self) -> bool: ...
|
|
def full(self) -> bool: ...
|
|
def put(self, item: Any, block: bool = ..., timeout: float = None) -> None: ...
|
|
def put_nowait(self, item) -> None: ...
|
|
def get(self, block: bool = ..., timeout: float = None) -> Any: ...
|
|
def get_nowait(self) -> Any: ...
|
|
|
|
class PriorityQueue(Queue): ...
|
|
class LifoQueue(Queue): ...
|