|
26 | 26 | {% block heading scoped %} |
27 | 27 | {% if config.separate_signature %} |
28 | 28 | <span class="doc doc-object-name doc-class-name">{{ class_name }}</span> |
29 | | - {% elif config.merge_init_into_class and "__init__" in class.members %} |
30 | | - {% with function = class.members["__init__"] %} |
| 29 | + {% elif config.merge_init_into_class and "__init__" in class.all_members %} |
| 30 | + {% with function = class.all_members["__init__"] %} |
31 | 31 | {%+ filter highlight(language="python", inline=True) %} |
32 | 32 | {{ class_name }}{% include "signature.html" with context %} |
33 | 33 | {% endfilter %} |
|
47 | 47 |
|
48 | 48 | {% block signature scoped %} |
49 | 49 | {% if config.separate_signature and config.merge_init_into_class %} |
50 | | - {% if "__init__" in class.members %} |
51 | | - {% with function = class.members["__init__"] %} |
| 50 | + {% if "__init__" in class.all_members %} |
| 51 | + {% with function = class.all_members["__init__"] %} |
52 | 52 | {% filter format_signature(function, config.line_length, crossrefs=config.signature_crossrefs) %} |
53 | 53 | {{ class.name }} |
54 | 54 | {% endfilter %} |
|
86 | 86 | {% include "docstring.html" with context %} |
87 | 87 | {% endwith %} |
88 | 88 | {% if config.merge_init_into_class %} |
89 | | - {% if "__init__" in class.members and class.members["__init__"].has_docstring %} |
90 | | - {% with docstring_sections = class.members["__init__"].docstring.parsed %} |
| 89 | + {% if "__init__" in class.all_members and class.all_members["__init__"].has_docstring %} |
| 90 | + {% with docstring_sections = class.all_members["__init__"].docstring.parsed %} |
91 | 91 | {% include "docstring.html" with context %} |
92 | 92 | {% endwith %} |
93 | 93 | {% endif %} |
|
97 | 97 | {% block source scoped %} |
98 | 98 | {% if config.show_source %} |
99 | 99 | {% if config.merge_init_into_class %} |
100 | | - {% if "__init__" in class.members and class.members["__init__"].source %} |
| 100 | + {% if "__init__" in class.all_members and class.all_members["__init__"].source %} |
101 | 101 | <details class="quote"> |
102 | 102 | <summary>Source code in <code>{{ class.relative_filepath }}</code></summary> |
103 | | - {{ class.members["__init__"].source|highlight(language="python", linestart=class.members["__init__"].lineno, linenums=True) }} |
| 103 | + {{ class.all_members["__init__"].source|highlight(language="python", linestart=class.all_members["__init__"].lineno, linenums=True) }} |
104 | 104 | </details> |
105 | 105 | {% endif %} |
106 | 106 | {% elif class.source %} |
|
0 commit comments