mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:39:12 +00:00
Fix fmt:skip
for function with return type (#6733)
This commit is contained in:
parent
d5a51b4e45
commit
17a26e6ff3
3 changed files with 36 additions and 1 deletions
|
@ -32,6 +32,16 @@ def test [
|
|||
B,
|
||||
] (): # fmt: skip
|
||||
...
|
||||
|
||||
def test [
|
||||
# comment
|
||||
A,
|
||||
|
||||
# another
|
||||
|
||||
B,
|
||||
] () -> str: # fmt: skip
|
||||
...
|
||||
```
|
||||
|
||||
## Output
|
||||
|
@ -67,6 +77,17 @@ def test [
|
|||
B,
|
||||
] (): # fmt: skip
|
||||
...
|
||||
|
||||
|
||||
def test [
|
||||
# comment
|
||||
A,
|
||||
|
||||
# another
|
||||
|
||||
B,
|
||||
] () -> str: # fmt: skip
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue