mirror of https://github.com/astral-sh/ruff
update lambda comment
This commit is contained in:
parent
acc49ac1e7
commit
2e0ee2e0a9
|
|
@ -32,8 +32,8 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
|
||||||
.split_at(dangling.partition_point(|comment| comment.end() < parameters.start()));
|
.split_at(dangling.partition_point(|comment| comment.end() < parameters.start()));
|
||||||
|
|
||||||
if dangling_before_parameters.is_empty() {
|
if dangling_before_parameters.is_empty() {
|
||||||
// If the first parameter has a leading comment, insert a hard line break. This
|
// If the parameters have a leading comment, insert a hard line break. This
|
||||||
// comment is associated as a leading comment on the first parameter:
|
// comment is associated as a leading comment on the parameters:
|
||||||
//
|
//
|
||||||
// ```py
|
// ```py
|
||||||
// (
|
// (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue