From fe9d927f8cb54ee017117671f0a54e7dc80e09ae Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Sat, 25 Sep 2021 18:56:06 -0400 Subject: [PATCH] Minor edits to comment Co-authored-by: Jelle Zijlstra --- src/black/lines.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/black/lines.py b/src/black/lines.py index 67ac0c02e68..9ca34c7cceb 100644 --- a/src/black/lines.py +++ b/src/black/lines.py @@ -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