handle_trailing_commas_in_head

This commit is contained in:
Jelle Zijlstra 2022-12-10 08:46:28 -08:00
parent 714af8bc27
commit fe271eda27
2 changed files with 1 additions and 5 deletions

View File

@ -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:

View File

@ -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()