Add some missing classes from queue in py3 (#401)

This commit is contained in:
Fabian Heredia Montiel
2016-07-26 09:41:56 -05:00
committed by Guido van Rossum
parent 56760eda52
commit 918eef43f7

View File

@@ -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): ...