Skip to content

Allow empty lines at beginnings of more blocks#4130

Merged
JelleZijlstra merged 3 commits into
psf:mainfrom
hauntsaninja:more-new-line
Jan 1, 2024
Merged

Allow empty lines at beginnings of more blocks#4130
JelleZijlstra merged 3 commits into
psf:mainfrom
hauntsaninja:more-new-line

Conversation

@hauntsaninja

@hauntsaninja hauntsaninja commented Dec 28, 2023

Copy link
Copy Markdown
Collaborator

Fixes #4043, fixes #619

These include nested functions and methods.

I think the nested function case can quite clearly improve readability. I think the method case improves consistency, adherence to PEP 8 and resolves a point of contention.

#4060 intended to allow empty lines at the beginning of all blocks (except immediately before a docstring), but missed this case

Fixes psf#4043, fixes psf#619

These include nested functions and methods.

I think the nested function case quite clearly improves readability. I
think the method case improves consistency, adherence to PEP 8 and
resolves a point of contention.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants