-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Inconsistent spacing around top level functions #647
Copy link
Copy link
Closed
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?T: user supportOP looking for assistance or answers to a questionOP looking for assistance or answers to a question
Metadata
Metadata
Assignees
Labels
F: empty linesWasting vertical space efficiently.Wasting vertical space efficiently.S: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedThe changes in this design / enhancement issue have been accepted and can be implementedT: styleWhat do we want Blackened code to look like?What do we want Blackened code to look like?T: user supportOP looking for assistance or answers to a questionOP 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
foohas two empty lines below it most of the time (including inif..elif..else), except in thetryblock 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.