Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions stdlib/@tests/stubtest_allowlists/py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ mmap.mmap.flush
mmap.mmap.rfind
multiprocessing.process.BaseProcess.__init__

# Some names are exported via __getattr__ instead of __all__.
asyncio.__all__

# ====================================
# Pre-existing errors from Python 3.13
# ====================================
Expand Down
20 changes: 20 additions & 0 deletions stdlib/asyncio/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ if sys.platform == "win32":
else:
from .unix_events import *

if sys.version_info >= (3, 14):
from .events import _AbstractEventLoopPolicy as AbstractEventLoopPolicy

if sys.platform == "win32":
if sys.version_info >= (3, 14):
from .windows_events import (
_DefaultEventLoopPolicy as DefaultEventLoopPolicy,
_WindowsProactorEventLoopPolicy as WindowsProactorEventLoopPolicy,
_WindowsSelectorEventLoopPolicy as WindowsSelectorEventLoopPolicy,
)
else:
if sys.version_info >= (3, 14):
from .unix_events import _DefaultEventLoopPolicy as DefaultEventLoopPolicy

if sys.platform == "win32":
if sys.version_info >= (3, 14):

Expand All @@ -41,6 +55,7 @@ if sys.platform == "win32":
"Server", # from base_events
"iscoroutinefunction", # from coroutines
"iscoroutine", # from coroutines
"AbstractEventLoopPolicy", # from events
"AbstractEventLoop", # from events
"AbstractServer", # from events
"Handle", # from events
Expand Down Expand Up @@ -131,8 +146,11 @@ if sys.platform == "win32":
"SelectorEventLoop", # from windows_events
"ProactorEventLoop", # from windows_events
"IocpProactor", # from windows_events
"DefaultEventLoopPolicy", # from windows_events
"_DefaultEventLoopPolicy", # from windows_events
"WindowsSelectorEventLoopPolicy", # from windows_events
"_WindowsSelectorEventLoopPolicy", # from windows_events
"WindowsProactorEventLoopPolicy", # from windows_events
"_WindowsProactorEventLoopPolicy", # from windows_events
"EventLoop", # from windows_events
)
Expand Down Expand Up @@ -514,6 +532,7 @@ else:
"Server", # from base_events
"iscoroutinefunction", # from coroutines
"iscoroutine", # from coroutines
"AbstractEventLoopPolicy", # from events
"AbstractEventLoop", # from events
"AbstractServer", # from events
"Handle", # from events
Expand Down Expand Up @@ -604,6 +623,7 @@ else:
"DatagramTransport", # from transports
"SubprocessTransport", # from transports
"SelectorEventLoop", # from unix_events
"DefaultEventLoopPolicy", # from unix_events
"EventLoop", # from unix_events
)
elif sys.version_info >= (3, 13):
Expand Down
Loading