mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add asyncio.transports.__all__ (#7281)
This commit is contained in:
@@ -4,6 +4,11 @@ from asyncio.protocols import BaseProtocol
|
||||
from socket import _Address
|
||||
from typing import Any, Mapping
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
__all__ = ("BaseTransport", "ReadTransport", "WriteTransport", "Transport", "DatagramTransport", "SubprocessTransport")
|
||||
else:
|
||||
__all__ = ["BaseTransport", "ReadTransport", "WriteTransport", "Transport", "DatagramTransport", "SubprocessTransport"]
|
||||
|
||||
class BaseTransport:
|
||||
def __init__(self, extra: Mapping[Any, Any] | None = ...) -> None: ...
|
||||
def get_extra_info(self, name: Any, default: Any = ...) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user