mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add Generic Typing to Queue.PriorityQueue and Queue.LifoQueue in python 2 (#3036)
This commit is contained in:
committed by
Sebastian Rittau
parent
47450629c9
commit
8b66e08745
@@ -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]): ...
|
||||
|
||||
Reference in New Issue
Block a user