Add asyncio.queues.__all__ (#7272)

This commit is contained in:
Alex Waygood
2022-02-19 02:30:20 +00:00
committed by GitHub
parent 8d63713200
commit d690238d8b

View File

@@ -5,6 +5,11 @@ from typing import Any, Generic, TypeVar
if sys.version_info >= (3, 9):
from types import GenericAlias
if sys.version_info >= (3, 7):
__all__ = ("Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty")
else:
__all__ = ["Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty"]
class QueueEmpty(Exception): ...
class QueueFull(Exception): ...