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

16 lines
396 B
HTML

<html>
<body>
<p>Reports unconditional redeclarations of names without being used in between.</p>
<p><b>Example:</b></p>
<pre><code>
def x(): pass
x = 2
</code></pre>
<p>It applies to function and class declarations, and top-level assignments. </p>
<p>When the warning is shown, you can try a recommended action, for example, you might be prompted to
rename the variable.</p>
</body>
</html>