Files
openide/python/python-psi-impl/resources/inspectionDescriptions/PyMethodOverridingInspection.html
Louis Vignier 1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00

21 lines
494 B
HTML

<html>
<body>
<p>Reports inconsistencies in overriding method signatures.</p>
<p><b>Example:</b></p>
<pre><code>
class Book:
def add_title(self):
pass
class Novel(Book):
def add_title(self, text):
pass
</code></pre>
<p>Parameters of the <code>add_title</code> method in the <code>Novel</code> class do not match the method
signature specified in the <code>Book</code> class. As a fix, the IDE offers to apply the Change Signature
refactoring.</p>
</body>
</html>