{% import "macros.html" as ui %} {% include "header.html" %} {% set role = page_role(state, entity) %} {% call ui.section("description", "Description", divider=true) %} {% set texts = other_sections(entity) | selectattr("kind", "equalto", "text") | list %} {% if texts %}
No docstring.
{% endif %} {% endcall %} {% call ui.section(role, "Signature", name="signature", divider=true) %} {% if entity.decorators %}{% for decorator in entity.decorators %}@{{ decorator }}{% endfor %}
{{ signature(entity) | highlight }}
{% if entity.kind == "class" and entity.bases %}
Bases: {% for base in entity.bases %}{{ base }}{% endfor %}
| Name | Type | Default | Description |
|---|---|---|---|
{{ row.name }} |
{% if row.annotation %}{{ row.annotation }}{% else %}-{% endif %} |
{% if row.default %}{{ row.default }}{% else %}-{% endif %} |
{% if row.description %}{{ row.description | markdown | safe }}{% else %}-{% endif %} |
{{ entity.returns }}
{{ item.description | highlight }}
{% else %}
{% if item.name or item.annotation %}
{%- if item.name %}{{ item.name }}{% endif %}
{%- if item.name and item.annotation %}: {{ item.annotation }}
{%- elif item.annotation %}{{ item.annotation }}{% endif %}
{% endif %}
{{ item.description | markdown | safe }}
{% endif %}
Loading…