ruff
a1509dfc - Use correct start location for class/function clause header (#7802)

Commit
2 years ago
Use correct start location for class/function clause header (#7802) ## Summary This PR fixes the bug where the formatter would panic if a class/function with decorators had a suppression comment. The fix is to use to correct start location to find the `async`/`def`/`class` keyword when decorators are present which is the end of the last decorator. ## Test Plan Add test cases for the fix and update the snapshots.
Author
Parents
Loading