extraneous-parentheses (UP034)
Added in v0.0.228 · Related issues · View source
Derived from the pyupgrade linter.
Fix is always available.
What it does
Checks for extraneous parentheses.
Why is this bad?
Extraneous parentheses are redundant, and can be removed to improve readability while retaining identical semantics.
Example
Use instead: