Skip to content

Fix crash on self-type in callable protocol #17499

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
Jul 6, 2024

Conversation

ilevkivskyi
Copy link
Member

Fixes #16629

This is really ad-hoc, but a proper fix would be much more hard, and this currently we have a crash in a relatively common scenario.

Copy link
Contributor

github-actions bot commented Jul 6, 2024

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 9c0a6f9 into python:master Jul 6, 2024
19 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-self-proto-call branch July 6, 2024 22:57
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.

Segmentation fault on callable protocol with Self annotation
1 participant