Line too long: Attribute chain on left hand side of assignment #2434
Labels
F: linebreak
How should we split up lines?
F: linetoolong
Black makes our lines too long
T: style
What do we want Blackened code to look like?
Describe the style change
Sometimes you need to access attributes deep within another object or with extremely long names, and Black helpfully tries to wrap the right hand side of the expression to avoid blowing the length limit, but doesn't touch the right.
Examples in the current Black style
Desired style
Additional context
My example may evoke appeals to the Law of Demeter, but equally frequent is the issue of very long and descriptive attribute names, not just paths this reductio-ad-absurdum long.
The text was updated successfully, but these errors were encountered: