From 8b66e08745bbc3cc4920fd50c037b84741a53512 Mon Sep 17 00:00:00 2001 From: Jason Gilholme Date: Mon, 1 Jul 2019 22:05:13 +1000 Subject: [PATCH] Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036) --- stdlib/2/Queue.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/Queue.pyi b/stdlib/2/Queue.pyi index 11b01ed1c..1593eb1c6 100644 --- a/stdlib/2/Queue.pyi +++ b/stdlib/2/Queue.pyi @@ -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]): ...