fix another ecosystem call expansion

This commit is contained in:
Brent Westbrook 2025-12-03 10:06:48 -05:00
parent 6f6c09c72a
commit 9ef9d0302d
No known key found for this signature in database
3 changed files with 35 additions and 1 deletions

View File

@ -409,3 +409,14 @@ if 1:
),
string=exported_dict["notes"],
)
class C:
def f():
return dict(
filter(
lambda intent_response: self.is_retrieval_intent_response(
intent_response
),
self.responses.items(),
)
)

View File

@ -89,7 +89,7 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
// body all flat
body,
// body expanded
body,
group(&body).should_expand(true),
// parenthesized
format_args![token("("), block_indent(&body), token(")")]
]

View File

@ -415,6 +415,17 @@ if 1:
),
string=exported_dict["notes"],
)
class C:
def f():
return dict(
filter(
lambda intent_response: self.is_retrieval_intent_response(
intent_response
),
self.responses.items(),
)
)
```
## Output
@ -860,6 +871,18 @@ if 1:
),
string=exported_dict["notes"],
)
class C:
def f():
return dict(
filter(
lambda intent_response: self.is_retrieval_intent_response(
intent_response
),
self.responses.items(),
)
)
```