mirror of https://github.com/astral-sh/ruff
fix another ecosystem call expansion
This commit is contained in:
parent
6f6c09c72a
commit
9ef9d0302d
|
|
@ -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(),
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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(")")]
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
)
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue