Blank lines before class docstring are not removed #3659
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?
Describe the style change
The blank lines between a function's definition and its docstring currently get removed by Black. However, it does not do the same thing for classes.
Current Black changes
becomes
but
is not modified by Black.
Desired style
I would have expected that code to get reformatted as:
The text was updated successfully, but these errors were encountered: