-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Overloaded def including TypeVarTuple and variable length Tuple crash #16427
Comments
Fixes #16427 The test case added in the first commit crashes. The second commit addresses the crash - I don't know whether this fix is correct, it just happens to stop the crash but it leads to a code branch which just `continue`s out of a for loop iteration, so it might be bypassing something it shouldn't. I don't completely understand it. --------- Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Thanks for the fix! Did you encounter this on open source code? |
Fixes #16427 The test case added in the first commit crashes. The second commit addresses the crash - I don't know whether this fix is correct, it just happens to stop the crash but it leads to a code branch which just `continue`s out of a for loop iteration, so it might be bypassing something it shouldn't. I don't completely understand it. --------- Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
Yep, I encountered it in an experiment which isn't currently used by anyone, code here: I wanted annotations for an |
Crash Report
Crash when running
mypy
from latest master (a1864d4
) on the code copied below (note - it does not crash on latest release 1.6.1)Traceback
To Reproduce
mypy playground: https://mypy-play.net/?mypy=master&python=3.11&gist=d8a94004f71a87a6a8621da0aff744c6
This code causes the crash:
Your Environment
a1864d4
)mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: