ParenthesesFormat
- class ParenthesesFormat
Options for expression parentheses formatting:
always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
Members defined in
ParenthesesFormat(5 members)
RWWhen to parenthesize filter expression
filter (...):
RWWhen to parenthesize condition expression
if (...):
RWWhen to parenthesize condition expression
if (...)in transition usages:
RWOptions for parentheses inside while loops.
Attributes
- property filter: syside.conf.OptionalToken
When to parenthesize filter expression
filter (...):always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property if_: syside.conf.OptionalToken
When to parenthesize condition expression
if (...):always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property transition_guard: syside.conf.OptionalToken
When to parenthesize condition expression
if (...)in transition usages:always: expression is printed with parenthesesnever: expression is printed without parentheseson-break: expression is printed with parentheses only if it breaks
- property while_loop: syside.conf.WhileLoopParentheses
Options for parentheses inside while loops.
Methods
- __init__() None