{{ 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:") }}
{{ lang.t("Name") }} | {% endif %}{{ lang.t("Type") }} | {{ lang.t("Description") }} |
---|---|---|
{% if returns.name %}{{ returns.name }} {% endif %} | {% endif %}
{% if returns.annotation %}
{% with expression = returns.annotation %}
{% include "expression.html" with context %}
{% endwith %}
{% endif %}
|
{{ returns.description|convert_markdown(heading_level, html_id) }}
|
{{ section.title or lang.t("Returns:") }}
{{ returns.name }}
{% endif %}
{% if returns.annotation %}
{% with expression = returns.annotation %}
{% if returns.name %} ({% endif %}
{% include "expression.html" with context %}
{% if returns.name %}){% endif %}
{% endwith %}
{% endif %}
–
{{ (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 %}
|