@@ -49,7 +49,7 @@ Context:
49
49
{% endif %}
50
50
{% with heading_level = heading_level + extra_level %}
51
51
{% for attribute in attributes |order_members (config .members_order , members_list ) %}
52
- {% if members_list is not none or not attribute .is_imported %}
52
+ {% if members_list is not none or ( not attribute .is_imported or attribute . is_public ) %}
53
53
{% include attribute |get_template with context %}
54
54
{% endif %}
55
55
{% endfor %}
@@ -69,7 +69,7 @@ Context:
69
69
{% endif %}
70
70
{% with heading_level = heading_level + extra_level %}
71
71
{% for class in classes |order_members (config .members_order , members_list ) %}
72
- {% if members_list is not none or not class .is_imported %}
72
+ {% if members_list is not none or ( not class .is_imported or class . is_public ) %}
73
73
{% include class |get_template with context %}
74
74
{% endif %}
75
75
{% endfor %}
@@ -90,7 +90,7 @@ Context:
90
90
{% with heading_level = heading_level + extra_level %}
91
91
{% for function in functions |order_members (config .members_order , members_list ) %}
92
92
{% if not (obj .kind .value == "class" and function .name == "__init__" and config .merge_init_into_class ) %}
93
- {% if members_list is not none or not function .is_imported %}
93
+ {% if members_list is not none or ( not function .is_imported or function . is_public ) %}
94
94
{% include function |get_template with context %}
95
95
{% endif %}
96
96
{% endif %}
@@ -112,7 +112,7 @@ Context:
112
112
{% endif %}
113
113
{% with heading_level = heading_level + extra_level %}
114
114
{% for module in modules |order_members (config .members_order .alphabetical , members_list ) %}
115
- {% if members_list is not none or not module .is_alias %}
115
+ {% if members_list is not none or ( not module .is_alias or module . is_public ) %}
116
116
{% include module |get_template with context %}
117
117
{% endif %}
118
118
{% endfor %}
0 commit comments