A blank line right after the function definition must be removed #2887
Labels
F: empty lines
Wasting vertical space efficiently.
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 think this is obvious enough that a blank line right after the function definition is against PEP-8 and against how people write functions, so better just see the examples below.
Examples in the current Black style
Desired style
Additional context
This is the only reason to use blank lines inside functions:
But the blank line must not be right after the function definition.
Versions
black-22.1.0
Python 3.10
The text was updated successfully, but these errors were encountered: