Format
exprint.formatter.Format
Abstract class dealing with format classes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Formatter
|
Formatter class. |
required |
Source code in exprint/formatter.py
finish
abstractmethod
finish(stream: TextIOBase)
Formats the content and outputs it into the specified text stream.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
TextIOBase
|
Text stream in which the text content is written. |
required |
width
abstractmethod
Returns the width of formatted text.
Returns:
| Type | Description |
|---|---|
int
|
Width of the formatted text. |