ruff/crates/ruff_python_formatter/resources/test/fixtures
konsti cab3a507bc
Fix find_only_token_in_range with expression parentheses (#5645)
## Summary

Fix an oversight in `find_only_token_in_range` where the following code
would panic due do the closing and opening parentheses being in the
range we scan:
```python
d1 = [
    ("a") if # 1
    ("b") else # 2
    ("c")
]
```
Closing and opening parentheses respectively are now correctly skipped.

## Test Plan

I added a regression test
2023-07-10 15:55:19 +02:00
..
black Update Black tests (#5438) 2023-06-30 06:32:50 +00:00
ruff Fix find_only_token_in_range with expression parentheses (#5645) 2023-07-10 15:55:19 +02:00
import_black_tests.py Update Black tests (#5438) 2023-06-30 06:32:50 +00:00