8000 Add Server to asyncio.base_events' __all__ (#7554) · python/typeshed@f40747f · GitHub
[go: up one dir, main page]

Skip to content

Commit f40747f

Browse files
authored
Add Server to asyncio.base_events' __all__ (#7554)
Add Server to asyncio.base_events' __all__ Closes #7552
1 parent 0322fb0 commit f40747f

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

stdlib/asyncio/base_events.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ from typing_extensions import Literal
1414
if sys.version_info >= (3, 7):
1515
from contextvars import Context
1616

17+
if sys.version_info >= (3, 9):
18+
__all__ = ("BaseEventLoop", "Server")
19+
elif sys.version_info >= (3, 7):
1720
__all__ = ("BaseEventLoop",)
1821
else:
1922
__all__ = ["BaseEventLoop"]

tests/stubtest_allowlists/py310.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ ast.Index.__new__
3333
ast.NameConstant.__new__
3434
ast.Num.__new__
3535
ast.Str.__new__
36+
asyncio.base_events.__all__ # Fixed in 3.10.3
3637
asyncio.Future.__init__ # Usually initialized from c object
3738
asyncio.Future._callbacks # Usually initialized from c object
3839
asyncio.futures.Future.__init__ # Usually initialized from c object
3940
asyncio.futures.Future._callbacks # Usually initialized from c object
41+
asyncio.Server # Fixed in 3.10.3
4042
builtins.dict.get
4143
builtins.float.__set_format__ # Internal method for CPython test suite
4244
builtins.property.__set_name__ # Doesn't actually exist

tests/stubtest_allowlists/py39.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ ast.Index.__new__
1515
ast.NameConstant.__new__
1616
ast.Num.__new__
1717
ast.Str.__new__
18+
asyncio.base_events.__all__ # Fixed in 3.9.11
1819
asyncio.Future.__init__ # Usually initialized from c object
1920
asyncio.Future._callbacks # Usually initialized from c object
2021
asyncio.futures.Future.__init__ # Usually initialized from c object
2122
asyncio.futures.Future._callbacks # Usually initialized from c object
23+
asyncio.Server # Fixed in 3.9.11
2224
builtins.dict.get
2325
builtins.float.__set_format__ # Internal method for CPython test suite
2426
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.

0 commit comments

Comments
 (0)
0