Skip to content

Commit

Permalink
Update src/black/lines.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Sep 8, 2023
1 parent 9e1cc30 commit 870f12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/lines.py
Expand Up @@ -716,7 +716,7 @@ def _maybe_empty_lines_for_class_or_def( # noqa: C901
# statement in the same level, we always want a blank line if there's
# something with a body preceding.
elif (
Preview.blank_line_between_nested_and_def_stub_file
Preview.blank_line_between_nested_and_def_stub_file in current_line.mode
and self.previous_line.depth > current_line.depth
):
newlines = 1
Expand Down

0 comments on commit 870f12c

Please sign in to comment.