From 29ac4cccc50594daffc92e9c028a7a6fba4d9076 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 19 Feb 2022 02:26:25 +0000 Subject: [PATCH] Add `asyncio.locks.__all__` (#7269) --- stdlib/asyncio/locks.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdlib/asyncio/locks.pyi b/stdlib/asyncio/locks.pyi index 3fe9a5b72..d0edcbdca 100644 --- a/stdlib/asyncio/locks.pyi +++ b/stdlib/asyncio/locks.pyi @@ -7,6 +7,11 @@ from typing_extensions import Literal from .events import AbstractEventLoop from .futures import Future +if sys.version_info >= (3, 7): + __all__ = ("Lock", "Event", "Condition", "Semaphore", "BoundedSemaphore") +else: + __all__ = ["Lock", "Event", "Condition", "Semaphore", "BoundedSemaphore"] + _T = TypeVar("_T") if sys.version_info >= (3, 9):