mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
parent
06d9ff9577
commit
9574ff3dc7
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ impl FormatNodeRule<Arguments> for FormatArguments {
|
||||||
// # Never expands, the comma is always preserved
|
// # Never expands, the comma is always preserved
|
||||||
// x2 = lambda y,: 1
|
// 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
|
// For lambdas (no parentheses), preserve the trailing comma. It doesn't
|
||||||
// behave like a magic trailing comma, it's just preserved
|
// behave like a magic trailing comma, it's just preserved
|
||||||
if has_trailing_comma(item, last_node, f.context().source()) {
|
if has_trailing_comma(item, last_node, f.context().source()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue