PrinterConfig
- class PrinterConfig
Formatting options for pretty-printed models
Members defined in
PrinterConfig(6 members)
RWWhether to insert a final new line
RWLine endings
RWNumber of visual columns to attempt to fit the formatted text into
RWNumber of spaces per indentation
RWWhether to indent using spaces rather than tabs
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