mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-22 20:45:11 +00:00
Add parenthesized
flag to ExprTuple
and ExprGenerator
(#9614)
This commit is contained in:
parent
ab4bd71755
commit
77c5561646
65 changed files with 391 additions and 139 deletions
|
@ -970,6 +970,7 @@ impl<'a> Generator<'a> {
|
|||
Expr::GeneratorExp(ast::ExprGeneratorExp {
|
||||
elt,
|
||||
generators,
|
||||
parenthesized: _,
|
||||
range: _,
|
||||
}) => {
|
||||
self.p("(");
|
||||
|
@ -1037,6 +1038,7 @@ impl<'a> Generator<'a> {
|
|||
elt,
|
||||
generators,
|
||||
range: _,
|
||||
parenthesized: _,
|
||||
})],
|
||||
[],
|
||||
) = (arguments.args.as_ref(), arguments.keywords.as_ref())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue