ruff
db2e548f - Simplify `ANN204` autofix to use `Parameters` range (#6793)

Commit
2 years ago
Simplify `ANN204` autofix to use `Parameters` range (#6793) ## Summary This PR fixes the bug where the decorator parentheses weren't being considered when computing the autofix for `ANN204`. The existing logic would only look for balanced parentheses and not multiple pairs of parentheses. The solution is to remove the logic to generate the autofix and use the `Parameters` end range directly which includes the parentheses as well. ## Test Plan Add test case for `ANN204` with decorator being called fixes: #6790
Author
Parents
Loading