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

This commit is contained in:
Jason Gilholme authored and Sebastian Rittau committed 2019-07-01 14:05:13 +02:00
1 parent 47450629c9
commit 8b66e08745
1 file changed
+2 -2
+2 -2
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]): ...