make itertools.product with repeat more precise (#4843)

This commit is contained in:
Timur Kushukov
2020-12-22 06:47:04 +05:00
committed by GitHub
parent 472d830876
commit 55ebc0b673

View File

@@ -92,6 +92,8 @@ def product(
*iterables: Iterable[Any],
) -> Iterator[Tuple[Any, ...]]: ...
@overload
def product(*iterables: Iterable[_T1], repeat: int) -> Iterator[Tuple[_T1, ...]]: ...
@overload
def product(*iterables: Iterable[Any], repeat: int = ...) -> Iterator[Tuple[Any, ...]]: ...
def permutations(iterable: Iterable[_T], r: Optional[int] = ...) -> Iterator[Tuple[_T, ...]]: ...
@overload