8000 Fix crashes on special forms in protocol bodies by ilevkivskyi · Pull Request #13526 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix crashes on special forms in protocol bodies #13526

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

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

ilevkivskyi
Copy link
Member

Fixes #6801
Fixes #10577
Fixes #12642
Fixes #12337
Fixes #10639
Fixes #13390

All these crashes are in a sense duplicates of each other. Fix is trivial, except I decided to ban type aliases in protocol bodies. Already in the examples in issues, I have found two cases where people wrote foo = list[str], where they clearly wanted foo: list[str]. This can cause hard to spot false negatives.

@ilevkivskyi
Copy link
Member Author

cc @JukkaL

@github-actions
Copy link
Contributor

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

@ilevkivskyi ilevkivskyi merged commit fd6760c into python:master Aug 26, 2022
@ilevkivskyi ilevkivskyi deleted the fix-proto-crash-2 branch August 26, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
0