ParenthesesFormat

class ParenthesesFormat

Options for expression parentheses formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

Members defined in ParenthesesFormat (5 members)

filter

RW

When to parenthesize filter expression filter (...):

if_

RW

When to parenthesize condition expression if (...):

transition_guard

RW

When to parenthesize condition expression if (...) in transition usages:

while_loop

RW

Options for parentheses inside while loops.

__init__

Attributes

property filter: syside.conf.OptionalToken

When to parenthesize filter expression filter (...):

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-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 parentheses

  • never: expression is printed without parentheses

  • on-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 parentheses

  • never: expression is printed without parentheses

  • on-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