mirror of https://github.com/astral-sh/ruff
unwrap format_body
This commit is contained in:
parent
00745159d1
commit
3dfda9f6cc
|
|
@ -360,7 +360,6 @@ impl Format<PyFormatContext<'_>> for FormatBody<'_> {
|
|||
.unwrap_or(dangling.len()),
|
||||
);
|
||||
|
||||
let fmt_body = format_with(|f: &mut PyFormatter| {
|
||||
// If the body is parenthesized and has its own leading comments, preserve the
|
||||
// separation between the dangling lambda comments and the body comments. For example,
|
||||
// preserve this comment positioning:
|
||||
|
|
@ -415,8 +414,5 @@ impl Format<PyFormatContext<'_>> for FormatBody<'_> {
|
|||
]
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
fmt_body.fmt(f)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue