Derived from the flake8-comprehensions linter.
Fix is always available.
What it does#
tuple calls that take unnecessary list or tuple literals as
Why is this bad?#
It's unnecessary to use a list or tuple literal within a
since there is a literal syntax for these types.
If a list literal was passed, then it should be rewritten as a
literal. Otherwise, if a tuple literal was passed, then the outer call
list() should be removed.