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
|
slc = self.semantic_leading_comment
|
||||||
if (
|
if (
|
||||||
Preview.empty_lines_before_class_or_def_with_leading_comments
|
slc is not None
|
||||||
in current_line.mode
|
|
||||||
and slc is not None
|
|
||||||
and slc.previous_block 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.is_class
|
||||||
and not slc.previous_block.original_line.opens_block
|
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):
|
class Preview(Enum):
|
||||||
"""Individual preview style features."""
|
"""Individual preview style features."""
|
||||||
|
|
||||||
empty_lines_before_class_or_def_with_leading_comments = auto()
|
|
||||||
handle_trailing_commas_in_head = auto()
|
handle_trailing_commas_in_head = auto()
|
||||||
long_docstring_quotes_on_newline = auto()
|
long_docstring_quotes_on_newline = auto()
|
||||||
normalize_docstring_quotes_and_prefixes_properly = auto()
|
normalize_docstring_quotes_and_prefixes_properly = auto()
|
||||||
|
Loading…
Reference in New Issue
Block a user