FormatValue
exprint.formatter.FormatValue
FormatValue(formatter: Formatter)
Class for formatting single values.
Source code in exprint/formatter.py
value
value(value: ToString) -> FormatValue
Adds a value to the formatter. The value must have a __str__ method.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ToString
|
Value to add. |
required |
Returns:
| Type | Description |
|---|---|
FormatValue
|
Itself |
Examples: