mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Preserve generator parentheses in single argument call expressions (#7226)
This commit is contained in:
parent
e376c3ff7e
commit
a352f2f092
5 changed files with 67 additions and 14 deletions
|
@ -37,7 +37,7 @@ impl FormatNodeRule<Arguments> for FormatArguments {
|
|||
generator_exp,
|
||||
&generator_exp
|
||||
.format()
|
||||
.with_options(GeneratorExpParentheses::StripIfOnlyFunctionArg),
|
||||
.with_options(GeneratorExpParentheses::Preserve),
|
||||
),
|
||||
other => {
|
||||
let parentheses =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue