-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
featurepriority-2-lowtopic-pluginsThe plugin API and ideas for new pluginsThe plugin API and ideas for new plugins
Description
I think I've noticed a tiny bug.
Python 3.6.1
mypy 0.521
from typing import Tuple, Dict
from itertools import product
# works fine
XY_1: Dict[str, Tuple[int, int]] = dict(zip('abcd', product(range(2), range(2))))
# {'a': (0, 0), 'b': (0, 1), 'c': (1, 0), 'd': (1, 1)}
# error for this one
XY_2: Dict[str, Tuple[int, int]] = dict(zip('abcd', product(range(2), repeat=2)))
# {'a': (0, 0), 'b': (0, 1), 'c': (1, 0), 'd': (1, 1)}
The dictionaries are the same.
Error output:
mypy_test.py:10: error: Argument 2 to "zip" has incompatible type Iterator[Tuple[int]]; expected Iterable[Tuple[int, int]]
I think that this is not essential. So, just in case.
Thanks for the great product!
Metadata
Metadata
Assignees
Labels
featurepriority-2-lowtopic-pluginsThe plugin API and ideas for new pluginsThe plugin API and ideas for new plugins