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

16 lines
339 B
HTML

<html>
<body>
<p>Reports cases when a list declaration
can be rewritten with a list literal.</p>
<p>This ensures better performance of your application.</p>
<p><b>Example:</b></p>
<pre><code>
l = [1]
l.append(2)
</code></pre>
<p>When the quick-fix is applied, the code changes to:</p>
<pre><code>
l = [1, 2]
</code></pre>
</body>
</html>