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

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

{% if name_column %}{% endif %} {% for yields in section.value %} {% if name_column %}{% endif %} {% endfor %}
{{ lang.t("Name") }}{{ lang.t("Type") }} {{ lang.t("Description") }}
{% if yields.name %}{{ yields.name }}{% endif %} {% if yields.annotation %} {% with expression = yields.annotation %} {% include "expression.html" with context %} {% endwith %} {% endif %}
{{ yields.description|convert_markdown(heading_level, html_id) }}
{% endblock table_style %} {% elif config.docstring_section_style == "list" %} {% block list_style %}

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

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

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

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