Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036)

This commit is contained in:
Jason Gilholme
2019-07-01 22:05:13 +10:00
committed by Sebastian Rittau
parent 47450629c9
commit 8b66e08745

View File

@@ -27,5 +27,5 @@ class Queue(Generic[_T]):
def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
def get_nowait(self) -> _T: ...
class PriorityQueue(Queue): ...
class LifoQueue(Queue): ...
class PriorityQueue(Queue[_T]): ...
class LifoQueue(Queue[_T]): ...