You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 withrepeat 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?
Activity
ilevkivskyi commentedon Aug 29, 2017
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.
JelleZijlstra commentedon Aug 29, 2017
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): therepeatargument is ignored.ilevkivskyi commentedon Aug 29, 2017
@JelleZijlstra Yes, I think there should be something like several overloads without
repeat, and then one withrepeatthat returnsIterable[Tuple[T, ...]]. Maybe we should open a separate issue at typeshed tracker, and only track the plugin here, what do you think?