mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-23 13:05:06 +00:00
Parenthesize NamedExpr if target breaks (#6714)
This commit is contained in:
parent
be96e0041a
commit
f017555d53
3 changed files with 22 additions and 1 deletions
|
@ -75,7 +75,7 @@ impl NeedsParentheses for ExprNamedExpr {
|
|||
{
|
||||
OptionalParentheses::Always
|
||||
} else {
|
||||
OptionalParentheses::Never
|
||||
OptionalParentheses::Multiline
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue