Source code for tcutility.report.formatters.generic

from typing import Protocol, Union

from tcutility.results.result import Result


[docs] class WordFormatter(Protocol): """Base protocol for formatters that write content to a Word document. Every class with the `write` method should inherit from this protocol."""
[docs] def format(self, results: Result, title: Union[str, None] = None) -> str: ...