Message397958
Would it be interesting to create a @deprecated decorator to avoid adding warnings.warn("deprecation message", DeprecationWarning, stacklevel=2) in methods body?
Using the decorator approach to indicate depreciation would make the methods cleaner (leaving only their responsibilities in the body) and would be easier to identify, as the cue would be close to the method signature and not mixed with the logic inside the body.
If everyone agrees, I could submit a PR (as a draft) for us to evaluate this functionality. |
|
Date |
User |
Action |
Args |
2021-07-21 19:07:38 | Leonardofreua | set | recipients:
+ Leonardofreua |
2021-07-21 19:07:38 | Leonardofreua | set | messageid: <1626894458.82.0.833124063655.issue44701@roundup.psfhosted.org> |
2021-07-21 19:07:38 | Leonardofreua | link | issue44701 messages |
2021-07-21 19:07:38 | Leonardofreua | create | |
|