Unbreak main (#6123)

This fixes main breaking due to two merges.
This commit is contained in:
konsti 2023-07-27 13:32:55 +02:00 committed by Charlie Marsh
parent 06d9ff9577
commit 9574ff3dc7

View file

@ -172,7 +172,7 @@ impl FormatNodeRule<Arguments> for FormatArguments {
// # Never expands, the comma is always preserved
// x2 = lambda y,: 1
// ```
if self.parentheses == ArgumentsParentheses::SkipInsideLambda {
if self.parentheses == ArgumentsParentheses::Never {
// For lambdas (no parentheses), preserve the trailing comma. It doesn't
// behave like a magic trailing comma, it's just preserved
if has_trailing_comma(item, last_node, f.context().source()) {