empty_lines_before_class_or_def_with_leading_comments

This commit is contained in:
Jelle Zijlstra 2022-12-10 08:45:40 -08:00
parent b6cd780453
commit 714af8bc27
2 changed files with 1 additions and 4 deletions

View File

@ -628,9 +628,7 @@ def _maybe_empty_lines_for_class_or_def(
):
slc = self.semantic_leading_comment
if (
Preview.empty_lines_before_class_or_def_with_leading_comments
in current_line.mode
and slc is not None
slc is not None
and slc.previous_block is not None
and not slc.previous_block.original_line.is_class
and not slc.previous_block.original_line.opens_block

View File

@ -149,7 +149,6 @@ def supports_feature(target_versions: Set[TargetVersion], feature: Feature) -> b
class Preview(Enum):
"""Individual preview style features."""
empty_lines_before_class_or_def_with_leading_comments = auto()
handle_trailing_commas_in_head = auto()
long_docstring_quotes_on_newline = auto()
normalize_docstring_quotes_and_prefixes_properly = auto()