Inspectopedia
 
2024.3

Problematic nesting of decorators

Info
New
Last modified: 03 December 2024

Reports problems with nesting decorators. The inspection highlights the cases when classmethod or staticmethod is applied before another decorator.

Example:

As a quick-fix, the IDE offers to remove the decorator.