An instance attribute is defined outside `__init__`

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: