handle_trailing_commas_in_head
This commit is contained in:
parent
714af8bc27
commit
fe271eda27
@ -778,10 +778,7 @@ def bracket_split_build_line(
|
||||
break
|
||||
|
||||
leaves_to_track: Set[LeafID] = set()
|
||||
if (
|
||||
Preview.handle_trailing_commas_in_head in original.mode
|
||||
and component is _BracketSplitComponent.head
|
||||
):
|
||||
if component is _BracketSplitComponent.head:
|
||||
leaves_to_track = get_leaves_inside_matching_brackets(leaves)
|
||||
# Populate the line
|
||||
for leaf in leaves:
|
||||
|
@ -149,7 +149,6 @@ def supports_feature(target_versions: Set[TargetVersion], feature: Feature) -> b
|
||||
class Preview(Enum):
|
||||
"""Individual preview style features."""
|
||||
|
||||
handle_trailing_commas_in_head = auto()
|
||||
long_docstring_quotes_on_newline = auto()
|
||||
normalize_docstring_quotes_and_prefixes_properly = auto()
|
||||
one_element_subscript = auto()
|
||||
|
Loading…
Reference in New Issue
Block a user