-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[1.16 regression] Relative order of property methods changes mypy output #19224
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
Labels
Comments
Introduced in #18510, TODO added in #18774 Lines 677 to 683 in 4fe7d9f
This is a known limitation for now; cc @ilevkivskyi |
Yeah, I was too tired to handle that, and TBH still tired. This looks lower priority than other things (unless this causes dozens of errors for you). |
ilevkivskyi
added a commit
that referenced
this issue
Jun 7, 2025
Fixes #19224 Note we must add an additional attribute on `OverloadedFuncDef` since decorator expressions are not serialized.
JukkaL
pushed a commit
that referenced
this issue
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
Bug Report
In mypy 1.16, the relative ordering of property methods (i.e.,
getter
/setter
/deleter
) can produce an "Invalid property setter signature" error.To Reproduce
mypy playground with the same example
Having an
@deleter
or@getter
before a@setter
property method produces an error:Move the
@value.deleter
method to after@value.setter
and the error is fixed.Expected Behavior
The relative ordering should not alter the output of mypy. I'm not aware of any reason why the ordering should matter and all orderings pass mypy in 1.15.
Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: