KEMBAR78
Fix crash on invalid callable property override by ilevkivskyi · Pull Request #17352 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #16896

Fix is simple, do not assume that an error context given by the caller of the override check for callable type is a method defining such type, because it may be a property.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2024

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

@ilevkivskyi ilevkivskyi merged commit 7c391dd into python:master Jun 9, 2024
@ilevkivskyi ilevkivskyi deleted the fix-property-error branch June 9, 2024 20:33
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.

IndexError in property incompatible with supertype

1 participant