Skip to content

Allow empty lines at beginnings of more blocks#4130

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

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

Conversation

@hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Dec 28, 2023

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newlines after code block open, once and for all? One space between class definition and the first inner method

2 participants