Change select() stub to accept iterables, not just sequences (#3382)

This commit is contained in:
Jakub Stasiak
2019-10-17 21:30:14 +02:00
committed by Sebastian Rittau
parent fa9e1ab445
commit fd7f1063d5

View File

@@ -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]]: ...