{{ log.debug("Rendering returns section") }} {% import "language.html" as lang with context %} {% if config.docstring_section_style == "table" %} {% block table_style scoped %} {% set name_column = section.value|selectattr("name")|any %}

{{ section.title or lang.t("Returns:") }}

{% if name_column %}{% endif %} {% for returns in section.value %} {% if name_column %}{% endif %} {% endfor %}
{{ lang.t("Name") }}{{ lang.t("Type") }} {{ lang.t("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 scoped %}

{{ section.title or lang.t("Returns:") }}

{% endblock list_style %} {% elif config.docstring_section_style == "spacy" %} {% block spacy_style scoped %} {% for returns in section.value %} {% endfor %}
{{ (section.title or lang.t("RETURNS")).rstrip(":").upper() }} {{ lang.t("DESCRIPTION").upper() }}
{% 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 %}

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

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