Skip to content

Fix crash on self-type in callable protocol#17499

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-self-proto-call
Jul 6, 2024
Merged

Fix crash on self-type in callable protocol#17499
ilevkivskyi merged 1 commit into
python:masterfrom
ilevkivskyi:fix-self-proto-call

Conversation

@ilevkivskyi

Copy link
Copy Markdown
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.

@github-actions

github-actions Bot commented Jul 6, 2024

Copy link
Copy Markdown
Contributor

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
@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