Add `asyncio.windows_utils.__all__ (#7278)

This commit is contained in:
Alex Waygood
2022-02-19 03:06:01 +00:00
committed by GitHub
parent e3e3db6fe5
commit 309b6f2b52

View File

@@ -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 = ...