mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Formatter: Fix posonlyargs for expr_lambda
(#6562)
This commit is contained in:
parent
c3a9151eb5
commit
278a4f6e14
4 changed files with 10 additions and 169 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue