An instance attribute is defined outside `__init__`

Last modified: Last modified: 18 September 2025

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

Example:

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

Inspection ID: PyAttributeOutsideInitInspection