mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
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> |