Skip to content

Commit

Permalink
use a property
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Dec 29, 2023
1 parent e696b36 commit fad3df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
is_empty_first_line_ok = (
Preview.allow_empty_first_line_in_block in current_line.mode
and (
not is_docstring(current_line.leaves[0], current_line.mode)
not current_line.is_docstring
or (self.previous_line and not self.previous_line.is_def)
)
)
Expand Down

0 comments on commit fad3df2

Please sign in to comment.