mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
17 lines
357 B
HTML
17 lines
357 B
HTML
<html>
|
|
<body>
|
|
<p>Reports equality comparison with a boolean literal.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
def func(s):
|
|
if s.isdigit() == True:
|
|
return int(s)
|
|
</code></pre>
|
|
<p>With the quick-fix applied, the code fragment will be simplified to:</p>
|
|
<pre><code>
|
|
def func(s):
|
|
if s.isdigit():
|
|
return int(s)
|
|
</code></pre>
|
|
</body>
|
|
</html> |