ruff/crates/ruff_python_formatter/tests
Dhruv Manilawala a1509dfc7c
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.
2023-10-04 07:55:01 +00:00
..
snapshots Use correct start location for class/function clause header (#7802) 2023-10-04 07:55:01 +00:00
fixtures.rs Formatter and parser refactoring (#7569) 2023-09-26 15:29:43 +02:00