-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Internal error on a simple destructuring assignment #8938
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
Labels
Comments
I can duplicate this. Probably not too tricky to fix if I had to guess. |
I would hardly call this a "simple" destructuring assignment though :) |
Reproducer doesn't crash on master (f220ce5). |
mypy_primer bisects the fix to #8827 |
The fix is released with mypy 0.790 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TLDR:
*intermediate_keys, prop = key, *keys
Are you reporting a bug, or opening a feature request?
A bug
Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if you try to simplify your case to a minimal repro.
test.py:
What is the actual behavior/output?
What is the behavior/output you expect?
The line
should type-check or at least not cause mypy to fail with an internal error.
What are the versions of mypy and Python you are using? Do you see the same issue after installing mypy from Git master?
Reproducible in
What are the mypy flags you are using? (For example --strict-optional)
mypy.ini:
If mypy crashed with a traceback, please paste the full traceback below.
The text was updated successfully, but these errors were encountered: