reformat
This commit is contained in:
parent
18e711f7b4
commit
d753703005
@ -684,10 +684,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
|
|||||||
return 0, 1
|
return 0, 1
|
||||||
return before, 1
|
return before, 1
|
||||||
|
|
||||||
is_empty_first_line_ok = (
|
is_empty_first_line_ok = Preview.allow_empty_first_line_in_block in current_line.mode and (
|
||||||
Preview.allow_empty_first_line_in_block
|
|
||||||
in current_line.mode
|
|
||||||
and (
|
|
||||||
not is_docstring(current_line.leaves[0])
|
not is_docstring(current_line.leaves[0])
|
||||||
# If it's a triple quote comment (but not at the start of a funcdef)
|
# If it's a triple quote comment (but not at the start of a funcdef)
|
||||||
or (
|
or (
|
||||||
@ -697,7 +694,6 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
|
|||||||
and not is_funcdef(self.previous_line.leaves[0].parent)
|
and not is_funcdef(self.previous_line.leaves[0].parent)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self.previous_line
|
self.previous_line
|
||||||
|
Loading…
Reference in New Issue
Block a user