Add queue.Queue.empty() stub (#1259)

Fixes #1242. Seems like one method was omitted by accident.
This commit is contained in:
Max
2017-05-10 18:39:56 -07:00
committed by Guido van Rossum
parent 30283aa670
commit c2e6a6f670

View File

@@ -11,6 +11,7 @@ class Full(Exception): ...
class Queue(Generic[_T]):
def __init__(self, maxsize: int = ...) -> None: ...
def empty(self) -> bool: ...
def full(self) -> bool: ...
def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
def get_nowait(self) -> _T: ...