mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 03:12:15 +07:00
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
29 lines
598 B
HTML
29 lines
598 B
HTML
<html>
|
|
<body>
|
|
<p>Reports cases when a call to the <code>super</code> constructor in a class is missed.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
class Fruit:
|
|
def __init__(self):
|
|
pass
|
|
|
|
|
|
class Pear(Fruit):
|
|
def __init__(self):
|
|
pass
|
|
</code></pre>
|
|
<p>The <code>Pear</code> class should have a <code>super</code> call in the <code>__init__</code>
|
|
method.</p>
|
|
<p>When the quick-fix is applied, the code changes to:</p>
|
|
<pre><code>
|
|
class Fruit:
|
|
def __init__(self):
|
|
pass
|
|
|
|
|
|
class Pear(Fruit):
|
|
def __init__(self):
|
|
super().__init__()
|
|
</code></pre>
|
|
</body>
|
|
</html> |