empty_lines_before_class_or_def_with_leading_comments
This commit is contained in:
parent
b6cd780453
commit
714af8bc27
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user