{{ log.debug("Rendering returns section") }} {% if config.docstring_section_style == "table" %} {% block table_style %} {% set name_column = section.value|selectattr("name")|any %}
{{ section.title or "Returns" }}
{% if name_column %}{% endif %} {% for returns in section.value %} {% if name_column %}{% endif %} {% endfor %}
NameType Description
{% if returns.name %}{{ returns.name }}{% endif %} {% if returns.annotation %} {% with expression = returns.annotation %} {% include "expression.html" with context %} {% endwith %} {% endif %} {{ returns.description|convert_markdown(heading_level, html_id) }}
{% endblock table_style %} {% elif config.docstring_section_style == "list" %} {% block list_style %}

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

{% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} {% block spacy_style %} {% for returns in section.value %} {% endfor %}
{{ (section.title or "RETURNS").rstrip(":").upper() }} DESCRIPTION
{% if returns.name %} {{ returns.name }} {% elif returns.annotation %} {% with expression = returns.annotation %} {% include "expression.html" with context %} {% endwith %} {% endif %} {{ returns.description|convert_markdown(heading_level, html_id) }} {% if returns.name and returns.annotation %}

TYPE: {% with expression = returns.annotation %} {% include "expression.html" with context %} {% endwith %}

{% endif %}
{% endblock spacy_style %} {% endif %}