Inspectopedia
 
2024.3

An instance attribute is defined outside `__init__`

Info
New
Last modified: 03 December 2024

Reports a problem when instance attribute definition is outside __init__ method.

Example:

When the quick-fix is applied, the code sample changes to: