mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-04 01:52:25 +07:00
18 lines
524 B
HTML
18 lines
524 B
HTML
<html>
|
|
<body>
|
|
<p>Reports incompatible signatures of the <code>__new__</code> and <code>__init__</code> methods.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class MyClass(object):
|
|
def __new__(cls, arg1):
|
|
return super().__new__(cls)
|
|
|
|
def __init__(self):
|
|
pass
|
|
</code></pre>
|
|
<p>If the <code>__new__</code> and <code>__init__</code> have different arguments, then the <code>MyClass</code>
|
|
cannot be instantiated.</p>
|
|
<p>As a fix, the IDE offers to apply the Change Signature refactoring.</p>
|
|
</body>
|
|
</html>
|