ruff/crates/ruff_python_formatter/tests
Micha Reiser 9d705a4414
Fix subscript comment placement with parenthesized value (#10496)
## Summary

This is a follow up on https://github.com/astral-sh/ruff/pull/10492 

I incorrectly assumed that `subscript.value.end()` always points past
the value. However, this isn't the case for parenthesized values where
the end "ends" before the parentheses.

## Test Plan

I added new tests for the parenthesized case.
2024-03-20 20:30:22 +00:00
..
snapshots Fix subscript comment placement with parenthesized value (#10496) 2024-03-20 20:30:22 +00:00
fixtures.rs Range formatting API (#9635) 2024-01-31 11:13:37 +01:00
normalizer.rs Reduce Result<Tok, LexicalError> size by using Box<str> instead of String (#9885) 2024-02-08 20:36:22 +00:00