Inconsistent spacing around top level functions #647
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?
T: user support
OP looking for assistance or answers to a question
Operating system: macOS 10.14.2
Python version: 3.7.1
Black version: 18.9b0
Does also happen on master: yes
I have a bit of OS-specific code that looks like this (when formatted by black):
Note now
foo
has two empty lines below it most of the time (including inif..elif..else
), except in thetry
block of atry..except
.Is this intentional? Seems to me there's no need to waste an extra line when the function definition is in any block; one empty line should be enough.
The text was updated successfully, but these errors were encountered: