Stubs: black removes empty lines between attributes and methods #2706
Labels
F: empty lines
Wasting vertical space efficiently.
S: accepted
The changes in this design / enhancement issue have been accepted and can be implemented
T: style
What do we want Blackened code to look like?
Please consider the following un-blacked stub file:
In this case, the empty line between attributes and methods is intentional as is the empty line between the attribute blocks. black 21.12b0 (no special config) changes this to:
Desired style
I believe that black should keep one blank line between attributes and methods if there is at least one blank line in the source. This can aid readability for classes with many attributes/methods.
The text was updated successfully, but these errors were encountered: