Skip to content

Commit d286d2d

Browse files
committed
Fix missing names for asyncio in 3.14
1 parent 9f8f621 commit d286d2d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

stdlib/@tests/stubtest_allowlists/win32-py314.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# =========================
2+
# New errors in Python 3.14
3+
# =========================
4+
5+
# Some names are exported via __getattr__ instead of __all__.
6+
asyncio.__all__
7+
18
# =======
29
# >= 3.12
310
# =======

stdlib/asyncio/__init__.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ if sys.platform == "win32":
4141
"Server", # from base_events
4242
"iscoroutinefunction", # from coroutines
4343
"iscoroutine", # from coroutines
44+
"AbstractEventLoopPolicy", # from events via __getattr__ # pyright: ignore[reportUnsupportedDunderAll]
4445
"AbstractEventLoop", # from events
4546
"AbstractServer", # from events
4647
"Handle", # from events
@@ -131,8 +132,11 @@ if sys.platform == "win32":
131132
"SelectorEventLoop", # from windows_events
132133
"ProactorEventLoop", # from windows_events
133134
"IocpProactor", # from windows_events
135+
"DefaultEventLoopPolicy", # from windows_events via __getattr__ # pyright: ignore[reportUnsupportedDunderAll]
134136
"_DefaultEventLoopPolicy", # from windows_events
137+
"WindowsSelectorEventLoopPolicy", # from windows_events via __getattr__ # pyright: ignore[reportUnsupportedDunderAll]
135138
"_WindowsSelectorEventLoopPolicy", # from windows_events
139+
"WindowsProactorEventLoopPolicy", # from windows_events via __getattr__ # pyright: ignore[reportUnsupportedDunderAll]
136140
"_WindowsProactorEventLoopPolicy", # from windows_events
137141
"EventLoop", # from windows_events
138142
)

0 commit comments

Comments
 (0)