{{ log.debug("Rendering attributes section") }} {% if config.docstring_section_style == "table" %} {% block table_style %}
{{ section.title or "Attributes" }}
{% for attribute in section.value %} {% endfor %}
Name Type Description
{{ attribute.name }} {% if attribute.annotation %} {% with expression = attribute.annotation %} {% include "expression.html" with context %} {% endwith %} {% endif %} {{ attribute.description|convert_markdown(heading_level, html_id) }}
{% endblock table_style %} {% elif config.docstring_section_style == "list" %} {% block list_style %}

{{ section.title or "Attributes:" }}

{% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} {% block spacy_style %} {% for attribute in section.value %} {% endfor %}
{{ (section.title or "ATTRIBUTE").rstrip(":").upper() }} DESCRIPTION
{{ attribute.name }} {{ attribute.description|convert_markdown(heading_level, html_id) }}

{% if attribute.annotation %} TYPE: {% with expression = attribute.annotation %} {% include "expression.html" with context %} {% endwith %} {% endif %}

{% endblock spacy_style %} {% endif %}