mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-26 11:59:10 +00:00
Format ExpressionStarred
nodes (#5654)
This commit is contained in:
parent
9f486fa841
commit
987111f5fb
16 changed files with 192 additions and 581 deletions
15
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/starred.py
vendored
Normal file
15
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/starred.py
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
call(
|
||||
# Leading starred comment
|
||||
* # Trailing star comment
|
||||
[
|
||||
# Leading value commnt
|
||||
[What, i, this, s, very, long, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
|
||||
] # trailing value comment
|
||||
)
|
||||
|
||||
call(
|
||||
# Leading starred comment
|
||||
* ( # Leading value commnt
|
||||
[What, i, this, s, very, long, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]
|
||||
) # trailing value comment
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue