mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add queue.Queue.empty() stub (#1259)
Fixes #1242. Seems like one method was omitted by accident.
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user