Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty lines at beginnings of more blocks #4130

Merged
merged 3 commits into from Jan 1, 2024

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.
@JelleZijlstra JelleZijlstra merged commit fe33761 into psf:main Jan 1, 2024
45 of 46 checks passed
@hauntsaninja hauntsaninja deleted the more-new-line branch January 2, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants