allow start_server to accept a Sequence of hosts (#7546)

This commit is contained in:
Harry
2022-03-24 18:44:45 +00:00
committed by GitHub
parent d086488e0e
commit b69d64df60

View File

@@ -1,6 +1,6 @@
import sys
from _typeshed import Self, StrPath
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable, Sequence
from . import events, protocols, transports
from .base_events import Server
@@ -87,7 +87,7 @@ if sys.version_info >= (3, 10):
) -> tuple[StreamReader, StreamWriter]: ...
async def start_server(
client_connected_cb: _ClientConnectedCallback,
host: str | None = ...,
host: str | Sequence[str] | None = ...,
port: int | str | None = ...,
*,
limit: int = ...,