mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Use optional parentheses for tuples in return statements (#6875)
This commit is contained in:
parent
19ccf1d073
commit
adb48692d6
5 changed files with 112 additions and 33 deletions
16
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return.py
vendored
Normal file
16
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/return.py
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
return len(self.nodeseeeeeeeee), sum(
|
||||
len(node.parents) for node in self.node_map.values()
|
||||
)
|
||||
|
||||
|
||||
return len(self.nodeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee), sum(
|
||||
len(node.parents) for node in self.node_map.values()
|
||||
)
|
||||
|
||||
|
||||
return (
|
||||
len(self.nodeseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee), sum(
|
||||
len(node.parents) for node in self.node_map.values()
|
||||
)
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue