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

16 lines
358 B
HTML

<html>
<body>
<p>Reports situations when you can rewrite dictionary creation
by using a dictionary literal.</p>
<p>This approach brings performance improvements.</p>
<p><b>Example:</b></p>
<pre><code>
dic = {}
dic['var'] = 1
</code></pre>
<p>When the quick-fix is applied, the code changes to:</p>
<pre><code>
dic = {'var': 1}
</code></pre>
</body>
</html>