报告对可以替换为 set 文字的 set 函数的调用。
set
示例:
def do_mult(a, b): c = a * b return set([c, a, b])
应用快速修复后,代码变为:
def do_mult(a, b): c = a * b return {c, a, b}