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
Prior to Python 2.4, it wasn't possible to use decorators, so properties were had to be implemented in a two-step process. I recently stumbled onto such code and had hopes pyupgrade would automatically fix that usage, but alas, it did not. It would be nice if pyupgrade could support upgrading that syntax.
Even better would be if it could also upgrade the setter syntax and maybe others (I don't think I've ever used a deleter).
Given the age of Python 2.3 compatible code, it may not be worthwhile implementing this upgrade, but I thought I'd register the concern.
The text was updated successfully, but these errors were encountered:
This is a feature request for pyupgrade.
Prior to Python 2.4, it wasn't possible to use decorators, so properties were had to be implemented in a two-step process. I recently stumbled onto such code and had hopes pyupgrade would automatically fix that usage, but alas, it did not. It would be nice if pyupgrade could support upgrading that syntax.
Even better would be if it could also upgrade the
setter
syntax and maybe others (I don't think I've ever used a deleter).Given the age of Python 2.3 compatible code, it may not be worthwhile implementing this upgrade, but I thought I'd register the concern.
The text was updated successfully, but these errors were encountered: