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

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>