mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
itertools: add pairwise (#5285)
This commit is contained in:
@@ -196,3 +196,9 @@ class combinations_with_replacement(Iterator[Tuple[_T, ...]], Generic[_T]):
|
||||
def __init__(self, iterable: Iterable[_T], r: int) -> None: ...
|
||||
def __iter__(self) -> Iterator[Tuple[_T, ...]]: ...
|
||||
def __next__(self) -> Tuple[_T, ...]: ...
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
class pairwise(Iterator[_T_co], Generic[_T_co]):
|
||||
def __new__(cls, __iterable: Iterable[_T]) -> pairwise[Tuple[_T, _T]]: ...
|
||||
def __iter__(self) -> Iterator[_T_co]: ...
|
||||
def __next__(self) -> _T_co: ...
|
||||
|
||||
Reference in New Issue
Block a user