Skip to content

Commit

Permalink
Minor edits to comment
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
ichard26 and JelleZijlstra committed Sep 25, 2021
1 parent 895695b commit fe9d927
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/black/lines.py
Expand Up @@ -462,11 +462,12 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
)
):
# We shouldn't add two newlines between an indented function and
# and a dependent non-indented clause. This is to avoid issues with
# a dependent non-indented clause. This is to avoid issues with
# conditional function definitions that are technically top-level
# and therefore get two trailing newlines, but look weird and
# inconsistent when they're followed by elif, else, etc. This is
# worsen by that these functions only get *one* preceding already.
# worse because these functions only get *one* preceding newline
# already.
before = 1
else:
before = 2
Expand Down

0 comments on commit fe9d927

Please sign in to comment.