BreakOptions

class BreakOptions

Options for inserting line breaks.

Members defined in BreakOptions (5 members)

about

RW

When to insert line break preceding about in comments:

force_bodies

RW

Whether to print all children on a new line, even if they otherwise fit on the same line.

language

RW

When to insert line break preceding language in textual representations:

operator

RW

Whether to insert line breaks in binary operators:

__init__

Attributes

property about: syside.conf.OptionalKw

When to insert line break preceding about in comments:

  • always: about list is always printed on a new line

  • as-needed: printer tries to fit about list on the current line

property force_bodies: bool

Whether to print all children on a new line, even if they otherwise fit on the same line.

property language: syside.conf.OptionalKw

When to insert line break preceding language in textual representations:

  • always: language is always printed on a new line

  • as-needed: printer tries to fit language on the current line

property operator: syside.conf.OperatorBreak

Whether to insert line breaks in binary operators:

  • after: operators are placed on the same line as the LHS expression

  • before: operators are placed on the same line as the RHS expression

Methods

__init__() None