remove_redundant_parens
This commit is contained in:
parent
ecfa7b6019
commit
11b0f1e963
@ -287,8 +287,7 @@ def visit_power(self, node: Node) -> Iterator[Line]:
|
|||||||
):
|
):
|
||||||
wrap_in_parentheses(node, leaf)
|
wrap_in_parentheses(node, leaf)
|
||||||
|
|
||||||
if Preview.remove_redundant_parens in self.mode:
|
remove_await_parens(node)
|
||||||
remove_await_parens(node)
|
|
||||||
|
|
||||||
yield from self.visit_default(node)
|
yield from self.visit_default(node)
|
||||||
|
|
||||||
|
@ -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()
|
||||||
remove_redundant_parens = auto()
|
|
||||||
string_processing = auto()
|
string_processing = auto()
|
||||||
skip_magic_trailing_comma_in_subscript = auto()
|
skip_magic_trailing_comma_in_subscript = auto()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user