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

19 lines
320 B
HTML

<html>
<body>
<p>Reports local variables referenced before assignment.</p>
<p><b>Example:</b></p>
<pre><code>
x = 0
if x > 10:
b = 3
print(b)
</code></pre>
<p>The IDE reports a problem for <code>print(b)</code>. A possible fix is:</p>
<pre><code>
x = 0
if x > 10:
b = 3
print(b)
</code></pre>
</body>
</html>