ruff/crates/ruff_python_formatter/src/expression
Charlie Marsh 5d9814d84d
Remove parentheses around some walrus operators (#6173)
## Summary

Closes https://github.com/astral-sh/ruff/issues/5781

## Test Plan

Added cases to
`crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/named_expr.py`
one-by-one and adjusted the condition as needed.
2023-07-29 10:06:26 -04:00
..
expr_attribute.rs Respect indent when measuring with `MeasureMode::AllLines` (#6120) 2023-07-27 10:22:13 -04:00
expr_await.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_bin_op.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_bool_op.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_call.rs Respect indent when measuring with `MeasureMode::AllLines` (#6120) 2023-07-27 10:22:13 -04:00
expr_compare.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_constant.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_dict.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_dict_comp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_formatted_value.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_generator_exp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_if_exp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_joined_str.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_lambda.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_list.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_list_comp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_name.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_named_expr.rs Remove parentheses around some walrus operators (#6173) 2023-07-29 10:06:26 -04:00
expr_set.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_set_comp.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_slice.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_starred.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_subscript.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_tuple.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_unary_op.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
expr_yield.rs Add `AnyExpressionYield` to consolidate `ExprYield` and `ExprYieldFrom` (#6127) 2023-07-27 16:01:16 +00:00
expr_yield_from.rs Add `AnyExpressionYield` to consolidate `ExprYield` and `ExprYieldFrom` (#6127) 2023-07-27 16:01:16 +00:00
mod.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
number.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
parentheses.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00
string.rs Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00