From b69d64df607474da04ab98017c8a0b1bf8f996c3 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 24 Mar 2022 18:44:45 +0000 Subject: [PATCH] allow start_server to accept a Sequence of hosts (#7546) --- stdlib/asyncio/streams.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/streams.pyi b/stdlib/asyncio/streams.pyi index 1fd7c31c7..98349222d 100644 --- a/stdlib/asyncio/streams.pyi +++ b/stdlib/asyncio/streams.pyi @@ -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 = ...,