mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
18 lines
388 B
HTML
18 lines
388 B
HTML
<html>
|
|
<body>
|
|
<p>Reports calls to the <code>set</code> function that can be replaced with
|
|
the <code>set</code> literal.</p>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
def do_mult(a, b):
|
|
c = a * b
|
|
return set([c, a, b])
|
|
</code></pre>
|
|
<p>When the quick-fix is applied, the code changes to:</p>
|
|
<pre><code>
|
|
def do_mult(a, b):
|
|
c = a * b
|
|
return {c, a, b}
|
|
</code></pre>
|
|
</body>
|
|
</html> |