mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Make itertools.starmap covariant (#11037)
This commit is contained in:
1 parent
e7c57b5a6d
commit
09668963a1
2 files changed
+12
-5
No files matched your search
@@ -101,10 +101,10 @@ class islice(Iterator[_T]):
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> _T: ...
|
||||
|
||||
class starmap(Iterator[_T]):
|
||||
def __init__(self, __function: Callable[..., _T], __iterable: Iterable[Iterable[Any]]) -> None: ...
|
||||
class starmap(Iterator[_T_co]):
|
||||
def __new__(cls, __function: Callable[..., _T], __iterable: Iterable[Iterable[Any]]) -> starmap[_T]: ...
|
||||
def __iter__(self) -> Self: ...
|
||||
def __next__(self) -> _T: ...
|
||||
def __next__(self) -> _T_co: ...
|
||||
|
||||
class takewhile(Iterator[_T]):
|
||||
def __init__(self, __predicate: _Predicate[_T], __iterable: Iterable[_T]) -> None: ...
|
||||
|
||||
Reference in new issue
Block a user