Add Server to asyncio.base_events' __all__ (#7554)

Add Server to asyncio.base_events' __all__

Closes #7552
This commit is contained in:
Stefan Zabka
2022-03-25 21:32:28 +01:00
committed by GitHub
parent 0322fb0905
commit f40747f81d
3 changed files with 7 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ from typing_extensions import Literal
if sys.version_info >= (3, 7):
from contextvars import Context
if sys.version_info >= (3, 9):
__all__ = ("BaseEventLoop", "Server")
elif sys.version_info >= (3, 7):
__all__ = ("BaseEventLoop",)
else:
__all__ = ["BaseEventLoop"]

View File

@@ -33,10 +33,12 @@ ast.Index.__new__
ast.NameConstant.__new__
ast.Num.__new__
ast.Str.__new__
asyncio.base_events.__all__ # Fixed in 3.10.3
asyncio.Future.__init__ # Usually initialized from c object
asyncio.Future._callbacks # Usually initialized from c object
asyncio.futures.Future.__init__ # Usually initialized from c object
asyncio.futures.Future._callbacks # Usually initialized from c object
asyncio.Server # Fixed in 3.10.3
builtins.dict.get
builtins.float.__set_format__ # Internal method for CPython test suite
builtins.property.__set_name__ # Doesn't actually exist

View File

@@ -15,10 +15,12 @@ ast.Index.__new__
ast.NameConstant.__new__
ast.Num.__new__
ast.Str.__new__
asyncio.base_events.__all__ # Fixed in 3.9.11
asyncio.Future.__init__ # Usually initialized from c object
asyncio.Future._callbacks # Usually initialized from c object
asyncio.futures.Future.__init__ # Usually initialized from c object
asyncio.futures.Future._callbacks # Usually initialized from c object
asyncio.Server # Fixed in 3.9.11
builtins.dict.get
builtins.float.__set_format__ # Internal method for CPython test suite
collections.AsyncGenerator.asend # async at runtime, deliberately not in the stub, see #7491. Pos-only differences also.