Loads the Formatter for the given formatter type. :param formatter_type: :return: Formatter object
(self, formatter_type: str = "pretty")
| 197 | ) |
| 198 | |
| 199 | def load(self, formatter_type: str = "pretty") -> Formatter: |
| 200 | """ |
| 201 | Loads the Formatter for the given formatter type. |
| 202 | |
| 203 | :param formatter_type: |
| 204 | :return: Formatter object |
| 205 | """ |
| 206 | if formatter_type not in FormatterLoader.TYPES.keys(): |
| 207 | raise FormatterLoader.UnknownFormatterType(formatter_type) |
| 208 | return FormatterLoader.TYPES[formatter_type]() |
no outgoing calls