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
{{ message }}
Repository navigation
assigning a Tuple[int, ...] to an Iterable[int] results in builtins.None or <nothing> #4466
@ilevkivskyi I think this is the same issue I saw in #5303. I am raising priority to high, since this was a regression and came up again (and I expect it is not an uncommon pattern).
Activity
carljm commentedon Jan 13, 2018
(We saw this as a regression false positive on real code, when upgrading mypy.)
gvanrossum commentedon Jan 13, 2018
Ideally we should fix this before the next mypy release (which hasn't been scheduled yet).
elazarg commentedon Jan 14, 2018
Thanks for the report.
I'd note that the following also fails, and is important to test since
Tuple[int, ...]andTuple[int, int]are handled quite differently inside mypy:The issue seems to be subtle.
emmatyping commentedon Jul 2, 2018
@ilevkivskyi I think this is the same issue I saw in #5303. I am raising priority to high, since this was a regression and came up again (and I expect it is not an uncommon pattern).
Improve Tuple/Sequence/Iterable overlapping (#5315)