mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
The timeout argument to Queue.{get,put} may be None (#682)
Python 2 and 3.
This commit is contained in:
committed by
Guido van Rossum
parent
2d19599b68
commit
c4125739e5
@@ -20,7 +20,7 @@ class Queue(Generic[_T]):
|
||||
def qsize(self) -> int: ...
|
||||
def empty(self) -> bool: ...
|
||||
def full(self) -> bool: ...
|
||||
def put(self, item: _T, block: bool = ..., timeout: float = ...) -> None: ...
|
||||
def put(self, item: _T, block: bool = ..., timeout: Optional[float] = ...) -> None: ...
|
||||
def put_nowait(self, item: _T) -> None: ...
|
||||
def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
|
||||
def get_nowait(self) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user