diff --git a/stdlib/2/Queue.pyi b/stdlib/2/Queue.pyi index 61ba5107b..2d64e1eaf 100644 --- a/stdlib/2/Queue.pyi +++ b/stdlib/2/Queue.pyi @@ -1,6 +1,6 @@ # Stubs for Queue (Python 2) -from typing import Any, TypeVar, Generic +from typing import Any, TypeVar, Generic, Optional _T = TypeVar('_T') @@ -22,7 +22,7 @@ class Queue(Generic[_T]): def full(self) -> bool: ... def put(self, item: _T, block: bool = ..., timeout: float = ...) -> None: ... def put_nowait(self, item: _T) -> None: ... - def get(self, block: bool = ..., timeout: float = ...) -> _T: ... + def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ... def get_nowait(self) -> _T: ... class PriorityQueue(Queue): ...