ruff/crates/ruff_python_formatter/tests
Charlie Marsh f754ad5898
Handle bracketed comments on sequence patterns (#6801)
## Summary

This PR ensures that we handle bracketed comments on sequences, like `#
comment` here:

```python
match x:
    case [ # comment
        1, 2
    ]:
        pass
```

The handling is very similar to other, similar nodes, except that we do
need some special logic to determine whether the sequence is
parenthesized, similar to our logic for tuples.

## Test Plan

`cargo test`
2023-08-25 04:03:27 +00:00
..
snapshots Handle bracketed comments on sequence patterns (#6801) 2023-08-25 04:03:27 +00:00
fixtures.rs Use one line between top-level items if formatting a stub file (#6501) 2023-08-15 09:33:57 +02:00