unnecessary-list-comprehension-set (C403)#
Derived from the flake8-comprehensions linter.
Fix is always available.
What it does#
Checks for unnecessary list comprehensions.
Why is this bad?#
It's unnecessary to use a list comprehension inside a call to set
,
since there is an equivalent comprehension for this type.
Examples#
Use instead: