mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 07:37:38 +00:00
![]() ## Summary The formatting for tuple patterns is now intended to match that of `for` loops: - Always parenthesize single-element tuples. - Don't break on the trailing comma in single-element tuples. - For other tuples, preserve the parentheses, and insert if-breaks. Closes https://github.com/astral-sh/ruff/issues/7681. ## Test Plan `cargo test` |
||
---|---|---|
.. | ||
test/fixtures |