Skip to content

Commit 8b66e08

Browse files
JasonGilholmesrittau
authored andcommitted
Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036)
1 parent 4745062 commit 8b66e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/2/Queue.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ class Queue(Generic[_T]):
2727
def get(self, block: bool = ..., timeout: Optional[float] = ...) -> _T: ...
2828
def get_nowait(self) -> _T: ...
2929

30-
class PriorityQueue(Queue): ...
31-
class LifoQueue(Queue): ...
30+
class PriorityQueue(Queue[_T]): ...
31+
class LifoQueue(Queue[_T]): ...

0 commit comments

Comments
 (0)