Skip to content

Commit

Permalink
fix: Regression in children template: fix condition for when members …
Browse files Browse the repository at this point in the history
…are specified

Issue #100: #100
  • Loading branch information
pawamoy committed Aug 25, 2023
1 parent 9aa758b commit beeebff
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -31,7 +31,7 @@
{% endif %}
{% with heading_level = heading_level + extra_level %}
{% for attribute in attributes|order_members(config.members_order, members_list) %}
{% if members_list is none and attribute.is_public(check_name=False) %}
{% if members_list is not none or attribute.is_public(check_name=False) %}
{% include attribute|get_template with context %}
{% endif %}
{% endfor %}
Expand All @@ -51,7 +51,7 @@
{% endif %}
{% with heading_level = heading_level + extra_level %}
{% for class in classes|order_members(config.members_order, members_list) %}
{% if members_list is none and class.is_public(check_name=False) %}
{% if members_list is not none or class.is_public(check_name=False) %}
{% include class|get_template with context %}
{% endif %}
{% endfor %}
Expand All @@ -72,7 +72,7 @@
{% with heading_level = heading_level + extra_level %}
{% for function in functions|order_members(config.members_order, members_list) %}
{% if not (obj.kind.value == "class" and function.name == "__init__" and config.merge_init_into_class) %}
{% if members_list is none and function.is_public(check_name=False) %}
{% if members_list is not none or function.is_public(check_name=False) %}
{% include function|get_template with context %}
{% endif %}
{% endif %}
Expand All @@ -94,7 +94,7 @@
{% endif %}
{% with heading_level = heading_level + extra_level %}
{% for module in modules|order_members(config.members_order.alphabetical, members_list) %}
{% if members_list is none and module.is_public(check_name=False) %}
{% if members_list is not none or module.is_public(check_name=False) %}
{% include module|get_template with context %}
{% endif %}
{% endfor %}
Expand All @@ -119,7 +119,7 @@

{% if not (obj.is_class and child.name == "__init__" and config.merge_init_into_class) %}

{% if members_list is none and child.is_public(check_name=False) %}
{% if members_list is not none or child.is_public(check_name=False) %}
{% if child.is_attribute %}
{% with attribute = child %}
{% include attribute|get_template with context %}
Expand Down

0 comments on commit beeebff

Please sign in to comment.