mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Change select() stub to accept iterables, not just sequences (#3382)
This commit is contained in:
committed by
Sebastian Rittau
parent
fa9e1ab445
commit
fd7f1063d5
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user