Skip to content
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

Fix crashes with unpacking SyntaxError #11499

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

hauntsaninja
Copy link
Collaborator

In general, mypy doesn't promise to be able to check the remainder of
your code in the presence of syntax errors, so just make this a blocking
error.

Fixes #9137
Fixes #3825 (most of the reports in this issue were fixed by #8827)

In general, mypy doesn't promise to be able to check the remainder of
your code in the presence of syntax errors, so just make this a blocking
error.

Fixes python#9137
Fixes python#3825 (most of the reports in this issue were fixed by python#8827)
@github-actions

This comment has been minimized.

@JukkaL
Copy link
Collaborator

JukkaL commented Aug 24, 2022

@hauntsaninja Is it okay if a new mypy contributor finishes this PR as an onboarding task?

@hauntsaninja
Copy link
Collaborator Author

Yeah of course! Although a blocking error on aiohttp is not an acceptable regression.

@ilevkivskyi
Copy link
Member

@JukkaL What is the situation with this? It has been almost three months without news, maybe it would be better let @hauntsaninja actually finish this? I would prefer to get this into 1.0

@hauntsaninja hauntsaninja marked this pull request as ready for review November 14, 2022 20:48
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja
Copy link
Collaborator Author

hauntsaninja commented Nov 14, 2022

Cool, got this working. Assuming we're okay with potential new blocking errors this could be merged

Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW syntax errors should be blocking, so I think this is good. Of course we need to be sure we marked all possible locations as valid.

@hauntsaninja hauntsaninja merged commit e0a37fa into python:master Nov 15, 2022
@hauntsaninja hauntsaninja deleted the unpacrash branch November 15, 2022 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on syntax error with unpacking Tuple assignment and list * unpacking crashes mypy
3 participants