Add asyncio.locks.__all__ (#7269)

This commit is contained in:
Alex Waygood
2022-02-19 02:26:25 +00:00
committed by GitHub
parent 5729a239ae
commit 29ac4cccc5

View File

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