Inspectopedia 2026.3 Help

Class structure

__init__ method that returns a value  

Reports occurrences of return statements with a return value inside __init__ methods of classes.

Accessing a protected member of a class or a module  

Reports cases when a protected member is accessed outside the class, a descendant of the class where it is defined, or a module.

An instance attribute is defined outside '__init__'  

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

Improper first parameter of a method  

Reports methods that lack the first parameter that is usually named self.

Invalid abstract class definition and usages  

Reports invalid definition and usages of abstract classes.

Invalid enum definition and usages  

Reports invalid definition and usage of Enum.

Invalid usages of classes with '__slots__' definitions  

Reports invalid usages of a class with __slots__ definitions.

Method is not declared static  

Reports any methods that do not require a class instance creation and can be made static.

Last modified: 20 November 2026