PrinterConfig

class PrinterConfig

Formatting options for pretty-printed models

Members defined in PrinterConfig (6 members)

add_final_newline

RW

Whether to insert a final new line

line_end

RW

Line endings

line_width

RW

Number of visual columns to attempt to fit the formatted text into

tab_width

RW

Number of spaces per indentation

use_spaces

RW

Whether to indent using spaces rather than tabs

__init__

Attributes

property add_final_newline: bool

Whether to insert a final new line

property line_end: syside.LineEnd

Line endings

property line_width: int

Number of visual columns to attempt to fit the formatted text into

property tab_width: int

Number of spaces per indentation

property use_spaces: bool

Whether to indent using spaces rather than tabs

Methods

__init__(line_width: int = 100, tab_width: int = 4, line_end: syside.LineEnd = LineEnd.LF, use_spaces: bool = True, add_final_newline: bool = True) None
Used in