mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add some missing classes from queue in py3 (#401)
This commit is contained in:
committed by
Guido van Rossum
parent
56760eda52
commit
918eef43f7
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user