| 11 | formatter.row(rowdata) |
| 12 | |
| 13 | class TableFormatter(ABC): |
| 14 | _formats = { } |
| 15 | |
| 16 | @classmethod |
| 17 | def __init_subclass__(cls): |
| 18 | name = cls.__module__.split('.')[-1] |
| 19 | TableFormatter._formats[name] = cls |
| 20 | |
| 21 | @abstractmethod |
| 22 | def headings(self, headers): |
| 23 | pass |
| 24 | |
| 25 | @abstractmethod |
| 26 | def row(self, rowdata): |
| 27 | pass |
| 28 | |
| 29 | class ColumnFormatMixin: |
| 30 | formats = [] |
nothing calls this directly
no outgoing calls
no test coverage detected