Open AndreyBalandin opened 7 years ago
This is an example of #3541, we currently only support literals via the plugins (no special support for dependent types yet). I will reference this issue there as an example.
Even if we could be more precise with a plugin here, I think there's a bug in the typeshed stubs for product
(introduced perhaps by @matthiaskramm's python/typeshed#1393): the repeat
argument is ignored.
@JelleZijlstra Yes, I think there should be something like several overloads without repeat
, and then one with repeat
that returns Iterable[Tuple[T, ...]]
. Maybe we should open a separate issue at typeshed tracker, and only track the plugin here, what do you think?
I think I've noticed a tiny bug. Python 3.6.1 mypy 0.521
The dictionaries are the same. Error output:
I think that this is not essential. So, just in case. Thanks for the great product!