one_element_subscript

This commit is contained in:
Jelle Zijlstra 2022-12-10 08:47:31 -08:00
parent 92370825ce
commit fc2acb2ed5
2 changed files with 1 additions and 3 deletions

View File

@ -290,8 +290,7 @@ def has_magic_trailing_comma(
if closing.type == token.RSQB:
if (
Preview.one_element_subscript in self.mode
and closing.parent
closing.parent
and closing.parent.type == syms.trailer
and closing.opening_bracket
and is_one_sequence_between(

View File

@ -150,7 +150,6 @@ class Preview(Enum):
"""Individual preview style features."""
long_docstring_quotes_on_newline = auto()
one_element_subscript = auto()
remove_block_trailing_newline = auto()
remove_redundant_parens = auto()
string_processing = auto()