Inspectopedia
 
2024.3

Incompatible signatures of __new__ and __init__

Warning
New
Last modified: 03 December 2024

Reports incompatible signatures of the __new__ and __init__ methods.

Example:

If the __new__ and __init__ have different arguments, then the MyClass cannot be instantiated.

As a fix, the IDE offers to apply the Change Signature refactoring.