mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
409 B
HTML
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> |