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

Insert newline after nested function or class statements #7946

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update fixture comment
  • Loading branch information
konstin committed Oct 18, 2023
commit 535f3541c58a8e8d7ba50899a13515bca28d0f21
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ def y():
print()


# NOTE: Please keep this the last block in this file. This tests that we don't insert empty line at the end of the file
# due to nested functions
# NOTE: Please keep this the last block in this file. This tests that we don't insert
# empty line(s) at the end of the file due to nested function
if True:
def nested_trailing_function():
pass
konstin marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ if True:
print()


# NOTE: Please keep this the last block in this file
# NOTE: Please keep this the last block in this file. This tests that we don't insert
# empty line(s) at the end of the file due to nested function
if True:
def nested_trailing_function():
pass```
Expand Down Expand Up @@ -539,7 +540,8 @@ if True:
print()


# NOTE: Please keep this the last block in this file
# NOTE: Please keep this the last block in this file. This tests that we don't insert
# empty line(s) at the end of the file due to nested function
if True:

def nested_trailing_function():
Expand Down
Loading