Skip to content

Commit

Permalink
Fix bug introduced in #3564. (#3615)
Browse files Browse the repository at this point in the history
  • Loading branch information
yilei committed Mar 19, 2023
1 parent d7a28dd commit dba3c26
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 dba3c26

Please sign in to comment.