{{ log.debug("Rendering " + attribute.path) }}
{% with obj = attribute, html_id = attribute.path %} {% if root %} {% set show_full_path = config.show_root_full_path %} {% set root_members = True %} {% elif root_members %} {% set show_full_path = config.show_root_members_full_path or config.show_object_full_path %} {% set root_members = False %} {% else %} {% set show_full_path = config.show_object_full_path %} {% endif %} {% if not root or config.show_root_heading %} {% filter heading(heading_level, role="data" if attribute.parent.kind.value == "module" else "attr", id=html_id, class="doc doc-heading", toc_label=attribute.name) %} {% block heading scoped %} {% if config.separate_signature %} {% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %} {% else %} {% filter highlight(language="python", inline=True) %} {% if show_full_path %}{{ attribute.path }}{% else %}{{ attribute.name }}{% endif %} {% if attribute.annotation %}: {{ attribute.annotation }}{% endif %} {% if attribute.value %} = {{ attribute.value }}{% endif %} {% endfilter %} {% endif %} {% endblock heading %} {% block labels scoped %} {% with labels = attribute.labels %} {% include "labels.html" with context %} {% endwith %} {% endblock labels %} {% endfilter %} {% block signature scoped %} {% if config.separate_signature %} {% filter highlight(language="python", inline=False) %} {% filter format_code(config.line_length) %} {{ attribute.name }} {% if attribute.annotation %}: {{ attribute.annotation|safe }}{% endif %} {% if attribute.value %} = {{ attribute.value|safe }}{% endif %} {% endfilter %} {% endfilter %} {% endif %} {% endblock signature %} {% else %} {% if config.show_root_toc_entry %} {% filter heading(heading_level, role="data" if attribute.parent.kind.value == "module" else "attr", id=html_id, toc_label=attribute.path if config.show_root_full_path else attribute.name, hidden=True) %} {% endfilter %} {% endif %} {% set heading_level = heading_level - 1 %} {% endif %}
{% block contents scoped %} {% block docstring scoped %} {% with docstring_sections = attribute.docstring.parsed %} {% include "docstring.html" with context %} {% endwith %} {% endblock docstring %} {% endblock contents %}
{% endwith %}