Skip to content

Commit df3417c

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

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

stdlib/@tests/stubtest_allowlists/py314.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ mmap.mmap.flush
3535
mmap.mmap.rfind
3636
multiprocessing.process.BaseProcess.__init__
3737

38+
# Some names are exported via __getattr__ instead of __all__.
39+
asyncio.__all__
40+
3841
# ====================================
3942
# Pre-existing errors from Python 3.13
4043
# ====================================

stdlib/asyncio/__init__.pyi

Lines changed: 5 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
)
@@ -514,6 +518,7 @@ else:
514518
"Server", # from base_events
515519
"iscoroutinefunction", # from coroutines
516520
"iscoroutine", # from coroutines
521+
"AbstractEventLoopPolicy", # from events via __getattr__ # pyright: ignore[reportUnsupportedDunderAll]
517522
"AbstractEventLoop", # from events
518523
"AbstractServer", # from events
519524
"Handle", # from events

0 commit comments

Comments
 (0)