@@ -18,7 +18,7 @@ Context:
18
18
{% endblock logs %}
19
19
20
20
<div class =" doc doc-object doc-class" >
21
- {% with obj = class , html_id = class .path %}
21
+ {% with obj = class , html_id = class .path , all_members = class . all_members %}
22
22
23
23
{% if root %}
24
24
{% set show_full_path = config .show_root_full_path %}
@@ -49,8 +49,8 @@ Context:
49
49
{% if config .show_symbol_type_heading %} <code class =" doc-symbol doc-symbol-heading doc-symbol-class" ></code >{% endif %}
50
50
{% if config .separate_signature %}
51
51
<span class =" doc doc-object-name doc-class-name" >{{ class_name }}</span >
52
- {% elif config .merge_init_into_class and "__init__" in class . all_members %}
53
- {% with function = class . all_members ["__init__" ] %}
52
+ {% elif config .merge_init_into_class and "__init__" in all_members %}
53
+ {% with function = all_members ["__init__" ] %}
54
54
{% + filter highlight (language ="python" , inline =True ) %}
55
55
{{ class_name }}{% include "signature" |get_template with context %}
56
56
{% endfilter %}
@@ -78,8 +78,8 @@ Context:
78
78
This block renders the signature for the class.
79
79
-#}
80
80
{% if config .separate_signature and config .merge_init_into_class %}
81
- {% if "__init__" in class . all_members %}
82
- {% with function = class . all_members ["__init__" ] %}
81
+ {% if "__init__" in all_members %}
82
+ {% with function = all_members ["__init__" ] %}
83
83
{% filter format_signature (function , config .line_length , crossrefs =config .signature_crossrefs ) %}
84
84
{{ class.name }}
85
85
{% endfilter %}
@@ -132,8 +132,8 @@ Context:
132
132
{% include "docstring" |get_template with context %}
133
133
{% endwith %}
134
134
{% if config .merge_init_into_class %}
135
- {% if "__init__" in class . all_members and class . all_members ["__init__" ].has_docstring %}
136
- {% with function = class . all_members ["__init__" ] %}
135
+ {% if "__init__" in all_members and all_members ["__init__" ].has_docstring %}
136
+ {% with function = all_members ["__init__" ] %}
137
137
{% with obj = function , docstring_sections = function .docstring .parsed %}
138
138
{% include "docstring" |get_template with context %}
139
139
{% endwith %}
@@ -157,8 +157,8 @@ Context:
157
157
-#}
158
158
{% if config .show_source %}
159
159
{% if config .merge_init_into_class %}
160
- {% if "__init__" in class . all_members and class . all_members ["__init__" ].source %}
161
- {% with init = class . all_members ["__init__" ] %}
160
+ {% if "__init__" in all_members and all_members ["__init__" ].source %}
161
+ {% with init = all_members ["__init__" ] %}
162
162
<details class =" quote" >
163
163
<summary >Source code in <code >
164
164
{% - if init .relative_filepath .is_absolute () -%}
0 commit comments