Skip to content

Commit b69d64d

Browse files
authored
allow start_server to accept a Sequence of hosts (#7546)
1 parent d086488 commit b69d64d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/asyncio/streams.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from _typeshed import Self, StrPath
3-
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable
3+
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable, Sequence
44

55
from . import events, protocols, transports
66
from .base_events import Server
@@ -87,7 +87,7 @@ if sys.version_info >= (3, 10):
8787
) -> tuple[StreamReader, StreamWriter]: ...
8888
async def start_server(
8989
client_connected_cb: _ClientConnectedCallback,
90-
host: str | None = ...,
90+
host: str | Sequence[str] | None = ...,
9191
port: int | str | None = ...,
9292
*,
9393
limit: int = ...,

0 commit comments

Comments
 (0)