itertools.pyi: Allow omitting repeat argument in Python 3 (#2659)

Fixes #2561
This commit is contained in:
Utkarsh Gupta
2018-12-01 05:28:21 +05:30
committed by Jelle Zijlstra
parent de50614957
commit 9f9d15e311

View File

@@ -96,7 +96,7 @@ def product(iter1: Iterable[Any],
iter7: Iterable[Any],
*iterables: Iterable[Any]) -> Iterator[Tuple[Any, ...]]: ...
@overload
def product(*iterables: Iterable[Any], repeat: int) -> Iterator[Tuple[Any, ...]]: ...
def product(*iterables: Iterable[Any], repeat: int = ...) -> Iterator[Tuple[Any, ...]]: ...
def permutations(iterable: Iterable[_T],
r: Optional[int] = ...) -> Iterator[Tuple[_T, ...]]: ...