Skip to content

Commit

Permalink
Fix bug introduced in psf#3564.
Browse files Browse the repository at this point in the history
  • Loading branch information
yilei committed Mar 19, 2023
1 parent d7a28dd commit 7e5741f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/lines.py
Expand Up @@ -598,7 +598,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
before = 1
elif (
not depth
and self.previous_defs[-1]
and self.previous_defs[-1].depth
and current_line.leaves[-1].type == token.COLON
and (
current_line.leaves[0].value
Expand Down

0 comments on commit 7e5741f

Please sign in to comment.