You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.981 @classmethod and @property can no longer be chained #13746
I don't know if this was related to the change in mypy 0.981, but chaining of property and classmethod has been deprecated in Python 3.11. More details can be found in the Python 3.11 release notes, but I'll quote the relevant part here:
Chaining classmethod descriptors (introduced in bpo-19072) is now deprecated. It can no longer be used to wrap other descriptors such as property. The core design of this feature was flawed and caused a number of downstream problems.
Activity
erictraut commentedon Sep 27, 2022
I don't know if this was related to the change in mypy 0.981, but chaining of property and classmethod has been deprecated in Python 3.11. More details can be found in the Python 3.11 release notes, but I'll quote the relevant part here:
hauntsaninja commentedon Sep 27, 2022
Yeah, this is from #13409. I don't think mypy should support property + classmethod, given that it's deprecated. But that can be discussed at #11619
Fix errors reported by new version of mypy
Fix errors reported by new version of mypy
Fix errors reported by new version of mypy