Formatter comment handling nits (#6339)

This commit is contained in:
Micha Reiser 2023-08-04 15:22:16 +02:00 committed by GitHub
parent 1031bb6550
commit f4831d5a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View file

@ -152,12 +152,10 @@ impl Format<PyFormatContext<'_>> for FormatTrailingComments<'_> {
write!(
f,
[
line_suffix(&format_with(|f| {
write!(
f,
[empty_lines(lines_before_comment), format_comment(trailing)]
)
})),
line_suffix(&format_args![
empty_lines(lines_before_comment),
format_comment(trailing)
]),
expand_parent()
]
)?;