Improve error on starred assignment #16287
Labels
bug
mypy got something wrong
good-first-issue
topic-error-reporting
How we report errors
topic-usability
Bug Report
The syntax error message could perhaps be imporved when starred assignments are used incorrectly.
To Reproduce
Then run
Actual Behavior
I'm uncertain on what the expected behaviour should be so I'll just describe the actual behaviour, when running it under
python3.11
python producesWhereas mypy says
Now, at a glance I thought I can do what I'm doing but it still resulted in an error, also the error seems to indicate that
*a = b
is fine, but that is incorrect as well.Your Environment
mypy 1.6.1 (compiled: yes)
--new-type-inference
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: