We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not sure how to describe this with words so apologies if this has already been noted.
mypy has no problem checking a = b = 1 or a, b = 1, 2, but chokes on
a = b = 1
a, b = 1, 2
c = a, b = 1, 2
with KeyError: <mypy.nodes.TupleExpr object at 0x1017950b8>. Full traceback is here.
KeyError: <mypy.nodes.TupleExpr object at 0x1017950b8>
The text was updated successfully, but these errors were encountered:
Thanks for reporting this! This is clearly a bug in how mypy handles assignment statements.
Sorry, something went wrong.
The current workaround is to split the assignment into two or more assignment statements, for example:
c = 1, 2 a, b = c
Avoid crash in edge case of multiple assignment. Fix #974, # 1420, #1438
5b7f8d9
.
fa70fc5
. (#1451)
gvanrossum
No branches or pull requests
Not sure how to describe this with words so apologies if this has already been noted.
mypy has no problem checking
a = b = 1
ora, b = 1, 2
, but chokes onwith
KeyError: <mypy.nodes.TupleExpr object at 0x1017950b8>
. Full traceback is here.The text was updated successfully, but these errors were encountered: