ruff/crates/ruff_python_formatter/resources/test/fixtures
konsti bd8f65814c
Format named expressions (walrus operator) (#5642)
## Summary

Format named expressions (walrus operator) such a `value := f()`. 

Unlike tuples, named expression parentheses are not part of the range
even when mandatory, so mapping optional parentheses to always gives us
decent formatting without implementing all [PEP
572](https://peps.python.org/pep-0572/) rules on when we need
parentheses where other expressions wouldn't. We might want to revisit
this decision later and implement special cases, but for now this gives
us what we need.

## Test Plan

black fixtures, i added some fixtures and checked django and cpython for
stability.

Closes #5613
2023-07-10 12:32:15 +00:00
..
black Update Black tests (#5438) 2023-06-30 06:32:50 +00:00
ruff Format named expressions (walrus operator) (#5642) 2023-07-10 12:32:15 +00:00
import_black_tests.py Update Black tests (#5438) 2023-06-30 06:32:50 +00:00