mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
Add Server to asyncio.base_events' __all__ (#7554)
Add Server to asyncio.base_events' __all__ Closes #7552
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user