[issue35006] itertools.combinations has wrong type when using the typing package

2018-10-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35006] itertools.combinations has wrong type when using the typing package

2018-10-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I agree with Josh. I propose closing this as third-party and raising an issue in typeshed GitHub repo. -- nosy: +xtreak ___ Python tracker

[issue35006] itertools.combinations has wrong type when using the typing package

2018-10-16 Thread Josh Rosenberg
Josh Rosenberg added the comment: Looks like a bug in the typeshed (which mypy depends on to provide typing info for most of the stdlib, which isn't explicitly typed). Affects both combinations and combinations_with_replacement from a quick check of the code:

[issue35006] itertools.combinations has wrong type when using the typing package

2018-10-16 Thread Vaibhav Karve
New submission from Vaibhav Karve : If I run mypy on the following file called test.py, I get an error: # test.py from typing import Iterator, Tuple import itertools as it a : Iterator[Tuple[int, ...]] a = it.product([1,2,3], repeat = 2) b : Iterator[Tuple[int,