Handled #4353: Long lines that concatenate list comprehensions#4887
Handled #4353: Long lines that concatenate list comprehensions#4887sudhanvapulv wants to merge 3 commits intopsf:mainfrom
Conversation
|
diff-shades results comparing this PR (e4881e9) to main (5b470f0). The full diff is available in the logs under the "Generate HTML diff report" step. |
cobaltt7
left a comment
There was a problem hiding this comment.
Please run Black on the codebase (ie python src/black .)
Some of the diff-shades changes look unideal, could you take a look at them? (click the "available in the logs" link)
Also, as a heads up, now that 25.12.0 has been released, and since we want to keep 26.1.0 limited to purely stabilizing preview styles as much as possible, this probably won't get merged until after 26.1 ships.
| @@ -0,0 +1,27 @@ | |||
| # flags: --preview --line-length=120 | |||
There was a problem hiding this comment.
Can you add a test for short comprehensions that should stay on one line?
How does this look with a lower line length/splits within the comprehension? Is it still an improvement?
Description
Closes #4353 ticket. Added in implementation in various files to handle this issue including helper functions as well as actual changes.
Checklist - did you ...
--previewstyle, following thestability policy?
CHANGES.mdif necessary? Yes, I did add to changes.md