ruff/crates/ruff_python_formatter/src/other
Micha Reiser e57bccd500
Fix multiline lambda expression statement formating (#8466)
## Summary

This PR fixes a bug in our formatter where a multiline lambda expression
statement was formatted over multiple lines without adding parentheses.

The PR "fixes" the problem by not splitting the lambda parameters if it
is not parenthesized

## Test Plan

Added test
2023-11-05 09:35:23 -05:00
..
alias.rs Avoid printing continuations within import identifiers (#7744) 2023-10-02 09:51:07 -04:00
arguments.rs Don't reorder parameters in function calls (#7268) 2023-09-13 09:01:49 +00:00
commas.rs Improve with statement comment handling and expression breaking (#6621) 2023-08-18 03:30:38 +00:00
comprehension.rs Skip over parentheses when detecting in keyword (#8054) 2023-10-18 19:13:58 -04:00
decorator.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
elif_else_clause.rs Use the formatter prelude in more files (#6882) 2023-08-25 16:51:07 -04:00
except_handler_except_handler.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
identifier.rs Remove spaces from import statements (#7859) 2023-10-11 11:35:41 +00:00
keyword.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
match_case.rs Move {AnyNodeRef, AstNode} to ruff_python_ast crate root (#8030) 2023-10-18 00:01:18 +00:00
mod.rs Improve with statement comment handling and expression breaking (#6621) 2023-08-18 03:30:38 +00:00
parameter.rs Introduce Token element (#7048) 2023-09-02 10:05:47 +02:00
parameter_with_default.rs Formatter: Remove unnecessary group (#8455) 2023-11-03 04:14:29 +00:00
parameters.rs Fix multiline lambda expression statement formating (#8466) 2023-11-05 09:35:23 -05:00
with_item.rs Prefer preserving WithItem parentheses (#7694) 2023-09-28 14:42:40 +01:00