Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | """ |
||
13 | class PartNode(HeadingNode): |
||
14 | """ |
||
15 | SDoc2 node for parts. |
||
16 | """ |
||
17 | |||
18 | # ------------------------------------------------------------------------------------------------------------------ |
||
19 | def __init__(self, options, argument): |
||
20 | """ |
||
21 | PartNode constructor |
||
22 | |||
23 | :param dict[str, str] options: The options of this part. |
||
24 | :param str argument: The title of this part. |
||
25 | """ |
||
26 | super().__init__('part', options, argument) |
||
27 | |||
28 | # ------------------------------------------------------------------------------------------------------------------ |
||
29 | def get_command(self): |
||
30 | """ |
||
31 | Returns command of this node (i.e. 'part'). |
||
32 | |||
33 | :rtype: str |
||
34 | """ |
||
35 | return 'part' |
||
36 | |||
37 | # ------------------------------------------------------------------------------------------------------------------ |
||
38 | def get_hierarchy_level(self, parent_hierarchy_level=-1): |
||
39 | """ |
||
40 | Returns 0. |
||
41 | |||
42 | :rtype: int |
||
43 | """ |
||
44 | return 0 |
||
45 | |||
48 |