@@ -235,7 +235,7 @@ class ExprCall(Expr):
235
235
arguments : Sequence [str | Expr ]
236
236
237
237
def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
238
- yield from self .function . iterate ( flat = flat )
238
+ yield from _yield ( self .function , flat = flat )
239
239
yield "("
240
240
yield from _join (self .arguments , ", " , flat = flat )
241
241
yield ")"
@@ -293,11 +293,12 @@ class ExprDict(Expr):
293
293
keys : Sequence [str | Expr | None ]
294
294
values : Sequence [str | Expr ]
295
295
296
- def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: ARG002, D102
296
+ def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
297
297
yield "{"
298
298
yield from _join (
299
299
(("None" if key is None else key , ": " , value ) for key , value in zip (self .keys , self .values )),
300
300
", " ,
301
+ flat = flat ,
301
302
)
302
303
yield "}"
303
304
@@ -403,7 +404,7 @@ class ExprVarPositional(Expr):
403
404
404
405
def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
405
406
yield "*"
406
- yield from self .value . iterate ( flat = flat )
407
+ yield from _yield ( self .value , flat = flat )
407
408
408
409
409
410
@dataclass (eq = True , ** dataclass_opts )
@@ -414,7 +415,7 @@ class ExprVarKeyword(Expr):
414
415
415
416
def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
416
417
yield "**"
417
- yield from self .value . iterate ( flat = flat )
418
+ yield from _yield ( self .value , flat = flat )
418
419
419
420
420
421
@dataclass (eq = True , ** dataclass_opts )
@@ -520,7 +521,7 @@ class ExprNamedExpr(Expr):
520
521
521
522
def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
522
523
yield "("
523
- yield from self .target . iterate ( flat = flat )
524
+ yield from _yield ( self .target , flat = flat )
524
525
yield " := "
525
526
yield from _yield (self .value , flat = flat )
526
527
yield ")"
@@ -590,7 +591,7 @@ class ExprSubscript(Expr):
590
591
slice : Expr # noqa: A003
591
592
592
593
def iterate (self , * , flat : bool = True ) -> Iterator [str | Expr ]: # noqa: D102
593
- yield from self .left . iterate ( flat = flat )
594
+ yield from _yield ( self .left , flat = flat )
594
595
yield "["
595
596
yield from _yield (self .slice , flat = flat )
596
597
yield "]"
0 commit comments