From 309b6f2b52072bf44b4dff4edcfa4c036a3c6703 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 19 Feb 2022 03:06:01 +0000 Subject: [PATCH] Add `asyncio.windows_utils.__all__ (#7278) --- stdlib/asyncio/windows_utils.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stdlib/asyncio/windows_utils.pyi b/stdlib/asyncio/windows_utils.pyi index f9d5f230c..bdc0212ca 100644 --- a/stdlib/asyncio/windows_utils.pyi +++ b/stdlib/asyncio/windows_utils.pyi @@ -6,6 +6,11 @@ from typing import Callable, Protocol from typing_extensions import Literal if sys.platform == "win32": + if sys.version_info >= (3, 7): + __all__ = ("pipe", "Popen", "PIPE", "PipeHandle") + else: + __all__ = ["socketpair", "pipe", "Popen", "PIPE", "PipeHandle"] + class _WarnFunction(Protocol): def __call__( self, message: str, category: type[Warning] = ..., stacklevel: int = ..., source: PipeHandle = ...