mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
Formatter: Fix posonlyargs for expr_lambda (#6562)
This commit is contained in:
@@ -22,7 +22,10 @@ impl FormatNodeRule<ExprLambda> for FormatExprLambda {
|
||||
|
||||
write!(f, [text("lambda")])?;
|
||||
|
||||
if !parameters.args.is_empty() || parameters.vararg.is_some() || parameters.kwarg.is_some()
|
||||
if !parameters.args.is_empty()
|
||||
|| !parameters.posonlyargs.is_empty()
|
||||
|| parameters.vararg.is_some()
|
||||
|| parameters.kwarg.is_some()
|
||||
{
|
||||
write!(
|
||||
f,
|
||||
|
||||
Reference in New Issue
Block a user