Skip to content

Commit

Permalink
Add match statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed Dec 1, 2021
1 parent 568d9eb commit 4f81c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/lines.py
Expand Up @@ -458,7 +458,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
and current_line.leaves[-1].type == token.COLON
and (
current_line.leaves[0].value
not in ("with", "try", "for", "while", "if")
not in ("with", "try", "for", "while", "if", "match")
)
):
# We shouldn't add two newlines between an indented function and
Expand Down

0 comments on commit 4f81c1d

Please sign in to comment.