| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 12 | class Format: |
||
|
1 ignored issue
–
show
|
|||
| 13 | """ |
||
| 14 | Abstract parent class for all formatters for generating output documents in a certain format. |
||
| 15 | """ |
||
| 16 | |||
| 17 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 18 | def __init__(self, config): |
||
| 19 | """ |
||
| 20 | Object constructor. |
||
| 21 | |||
| 22 | :param configparser.SectionProxy config: The section in the config file for the target_format. |
||
| 23 | """ |
||
| 24 | pass |
||
| 25 | |||
| 26 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 27 | @abc.abstractmethod |
||
| 28 | def generate(self): |
||
| 29 | """ |
||
| 30 | Starts generating HTML file. |
||
| 31 | """ |
||
| 32 | raise NotImplementedError() |
||
| 33 | |||
| 35 |
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.