[issue35006] itertools.combinations has wrong type when using the typing package
Josh Rosenberg
report at bugs.python.org
Tue Oct 16 22:34:10 EDT 2018
Josh Rosenberg <shadowranger+python at gmail.com> 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: https://github.com/python/typeshed/blob/94485f9e4f86df143801c1810a58df993b2b79b3/stdlib/3/itertools.pyi#L103
Presumably this should be opened on the typeshed tracker. https://github.com/python/typeshed/issues
----------
nosy: +josh.r
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35006>
_______________________________________
More information about the Python-bugs-list
mailing list