ruff/crates/ruff_python_formatter/resources/test/fixtures
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
..
black Introduce IndentWidth (#7301) 2023-09-13 14:52:24 +02:00
ruff Use correct start location for class/function clause header (#7802) 2023-10-04 07:55:01 +00:00
import_black_tests.py Update Black tests (#6618) 2023-08-16 15:05:51 +00:00