diff --git a/stdlib/3/queue.pyi b/stdlib/3/queue.pyi index 90cd5fc28..28609a067 100644 --- a/stdlib/3/queue.pyi +++ b/stdlib/3/queue.pyi @@ -6,6 +6,9 @@ from typing import Any, TypeVar, Generic _T = TypeVar('_T') +class Empty(Exception): ... +class Full(Exception): ... + class Queue(Generic[_T]): def __init__(self, maxsize: int = ...) -> None: ... def full(self) -> bool: ... @@ -17,4 +20,5 @@ class Queue(Generic[_T]): def qsize(self) -> int: ... def task_done(self) -> None: pass -class Empty(Exception): ... +class PriorityQueue(Queue): ... +class LifoQueue(Queue): ...