-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
zip: add some overloads for heterogeneous tuples #3830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Technically this is a lie, since we return a heterogeneous iterator, not a tuple. But since we don't have a way of typing heterogeneous iterators, this is the best we can do. Fixes python/mypy#8454
Could you fix the various CI failures? |
Suspected we'd see some issues. I think the best option here is to type ignore... |
Gentle bump! |
It looks like this needs to be reverted because lies break mypyc, see CI failure (unless @msullivan has an idea for workaround). |
Would changing the return type to Looks like we'd remain able to catch errors like:
|
For now we are using |
This reverts commit e857ad6.
Note, this was reverted in #4254 |
Technically this is a lie, since we return a heterogeneous iterator, not a tuple. But since we don't have a way of typing heterogeneous iterators, this is the best we can do. Fixes python/mypy#8454
…" (python#4254) This reverts commit e857ad6. Co-authored-by: hauntsaninja <>
Technically this is a lie, since we return a heterogeneous iterator, not
a tuple. But since we don't have a way of typing heterogeneous
iterators, this is the best we can do.
Fixes python/mypy#8454