From 9574ff3dc7cb41acb9605b1d37ae5dd5c1919508 Mon Sep 17 00:00:00 2001 From: konsti Date: Thu, 27 Jul 2023 13:32:55 +0200 Subject: [PATCH] Unbreak main (#6123) This fixes main breaking due to two merges. --- crates/ruff_python_formatter/src/other/arguments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_python_formatter/src/other/arguments.rs b/crates/ruff_python_formatter/src/other/arguments.rs index 15e7e7e58a..7ef2594610 100644 --- a/crates/ruff_python_formatter/src/other/arguments.rs +++ b/crates/ruff_python_formatter/src/other/arguments.rs @@ -172,7 +172,7 @@ impl FormatNodeRule 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()) {