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

15 lines
417 B
HTML

<html>
<body>
<p>Reports cases when an assignment is done on a function that does not return anything.</p>
This inspection is similar to <a href="https://docs.pylint.org/en/1.6.0/features.html#id6">pylint inspection E1111</a>.
<p><b>Example:</b></p>
<pre><code>
def just_print():
print("Hello!")
action = just_print()
</code></pre>
<p>As a quick-fix, the IDE offers to remove the assignment.</p>
</body>
</html>