{{ log.debug("Rendering returns section") }} {% if config.docstring_section_style == "table" %} {% block table_style %} {% set name_column = section.value|selectattr("name")|any %}
Name | {% endif %}Type | 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 "Returns:" }}
{% include "expression.html" with context %}
{% if returns.name %}){% endif %}
{% endwith %}
{% endif %}
– {{ returns.description|convert_markdown(heading_level, html_id) }}
{{ (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 %}
|