one_element_subscript
This commit is contained in:
parent
92370825ce
commit
fc2acb2ed5
@ -290,8 +290,7 @@ def has_magic_trailing_comma(
|
|||||||
|
|
||||||
if closing.type == token.RSQB:
|
if closing.type == token.RSQB:
|
||||||
if (
|
if (
|
||||||
Preview.one_element_subscript in self.mode
|
closing.parent
|
||||||
and closing.parent
|
|
||||||
and closing.parent.type == syms.trailer
|
and closing.parent.type == syms.trailer
|
||||||
and closing.opening_bracket
|
and closing.opening_bracket
|
||||||
and is_one_sequence_between(
|
and is_one_sequence_between(
|
||||||
|
@ -150,7 +150,6 @@ class Preview(Enum):
|
|||||||
"""Individual preview style features."""
|
"""Individual preview style features."""
|
||||||
|
|
||||||
long_docstring_quotes_on_newline = auto()
|
long_docstring_quotes_on_newline = auto()
|
||||||
one_element_subscript = auto()
|
|
||||||
remove_block_trailing_newline = auto()
|
remove_block_trailing_newline = auto()
|
||||||
remove_redundant_parens = auto()
|
remove_redundant_parens = auto()
|
||||||
string_processing = auto()
|
string_processing = auto()
|
||||||
|
Loading…
Reference in New Issue
Block a user