Indexing square brackets split on 3 lines #3068
Labels
F: linebreak
How should we split up lines?
R: duplicate
This issue or pull request already exists
T: style
What do we want Blackened code to look like?
Describe the style change
I have an assert statement that checks a condition on the last element in an array. To me what black does to the statement makes it less readable:
Examples in the current Black style
Desired style
Additional context
I think operation of taking [-1]th element is best visible with brackets and number grouped. Having to search them across a diagonal on 3 lines is tough.
The text was updated successfully, but these errors were encountered: