From 55ebc0b673249ed0fdbdc0b4538ee4819f97857c Mon Sep 17 00:00:00 2001 From: Timur Kushukov <31916838+timqsh@users.noreply.github.com> Date: Tue, 22 Dec 2020 06:47:04 +0500 Subject: [PATCH] make itertools.product with repeat more precise (#4843) --- stdlib/3/itertools.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/3/itertools.pyi b/stdlib/3/itertools.pyi index 55a7b409f..8a918bdc4 100644 --- a/stdlib/3/itertools.pyi +++ b/stdlib/3/itertools.pyi @@ -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