From fd7f1063d5e6c066fa54bfee7698863f617b1b69 Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Thu, 17 Oct 2019 21:30:14 +0200 Subject: [PATCH] Change select() stub to accept iterables, not just sequences (#3382) --- stdlib/2and3/select.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2and3/select.pyi b/stdlib/2and3/select.pyi index 3fc05450b..6387f52c9 100644 --- a/stdlib/2and3/select.pyi +++ b/stdlib/2and3/select.pyi @@ -1,5 +1,5 @@ import sys -from typing import Any, Iterable, List, Optional, Protocol, Sequence, Tuple, Union +from typing import Any, Iterable, List, Optional, Protocol, Tuple, Union class _HasFileno(Protocol): def fileno(self) -> int: ... @@ -76,7 +76,7 @@ class poll: def unregister(self, fd: _FileDescriptor) -> None: ... def poll(self, timeout: Optional[float] = ...) -> List[Tuple[int, int]]: ... -def select(rlist: Sequence[Any], wlist: Sequence[Any], xlist: Sequence[Any], +def select(rlist: Iterable[Any], wlist: Iterable[Any], xlist: Iterable[Any], timeout: Optional[float] = ...) -> Tuple[List[Any], List[Any], List[Any]]: ...