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

16 lines
409 B
HTML

<html>
<body>
<p>Reports statements that have no effect.</p>
<p><b>Example:</b></p>
<pre><code>
class Car:
def __init__(self, speed=0):
self.speed = speed
self.time # has no effect
2 + 3 # has no effect
</code></pre>
<p>In this example, you can either add a field <code>time</code> to the <code>Car</code> class or
introduce variables for the problematic statements.</p>
</body>
</html>