Skip to content

Conversation

@ilevkivskyi
Copy link
Member

Fixes #19224

Note we must add an additional attribute on OverloadedFuncDef since decorator expressions are not serialized.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@sterliakov sterliakov left a comment

Choose a reason for hiding this comment

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

I'm a bit worried that now there's no single "source of truth" for Var.is_settable_property vs Decorator.setter_index, they may eventually get out of sync somewhere. But I can't suggest anything better yet:(

@ilevkivskyi
Copy link
Member Author

Yeah, I was thinking about this myself. Actually since I am not the only one worried, let me add one assert that will make this less likely.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2025

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

@ilevkivskyi ilevkivskyi merged commit 4c825e9 into python:master Jun 7, 2025
19 checks passed
@ilevkivskyi ilevkivskyi deleted the deleters-before-setters branch June 7, 2025 22:59
JukkaL pushed a commit that referenced this pull request Jun 11, 2025
Fixes #19224

Note we must add an additional attribute on `OverloadedFuncDef` since
decorator expressions are not serialized.
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.

[1.16 regression] Relative order of property methods changes mypy output

2 participants