mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 12:25:10 +00:00
Format target: annotation = value? expressions (#5661)
This commit is contained in:
parent
0c8ec80d7b
commit
f1d367655b
28 changed files with 318 additions and 988 deletions
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"magic_trailing_comma": "ignore"
|
||||
}
|
||||
13
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/annotated_assign.py
vendored
Normal file
13
crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/annotated_assign.py
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
a: string
|
||||
|
||||
b: string = "test"
|
||||
|
||||
b: list[
|
||||
string,
|
||||
int
|
||||
] = [1, 2]
|
||||
|
||||
b: list[
|
||||
string,
|
||||
int,
|
||||
] = [1, 2]
|
||||
Loading…
Add table
Add a link
Reference in a new issue