remove_block_trailing_newline

This commit is contained in:
Jelle Zijlstra 2022-12-10 08:47:59 -08:00
parent fc2acb2ed5
commit ecfa7b6019
2 changed files with 1 additions and 6 deletions

View File

@ -590,11 +590,7 @@ def _maybe_empty_lines(self, current_line: Line) -> Tuple[int, int]:
):
return before, 1
if (
Preview.remove_block_trailing_newline in current_line.mode
and self.previous_line
and self.previous_line.opens_block
):
if self.previous_line and self.previous_line.opens_block:
return 0, 0
return before, 0

View File

@ -150,7 +150,6 @@ class Preview(Enum):
"""Individual preview style features."""
long_docstring_quotes_on_newline = auto()
remove_block_trailing_newline = auto()
remove_redundant_parens = auto()
string_processing = auto()
skip_magic_trailing_comma_in_subscript = auto()