Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 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 | pass |
||
30 | |||
32 |
Abstract classes which are used only once can usually be inlined into the class which already uses this abstract class.