{#- Template for "Parameters" sections in docstrings. This template renders a list of documented parameters in the format specified with the [`docstring_section_style`][] configuration option. Context: section (griffe.DocstringSectionAttributes): The section to render. -#} {% block logs scoped %} {#- Logging block. This block can be used to log debug messages, deprecation messages, warnings, etc. -#} {{ log.debug() }} {% endblock %} {% import "language.html.jinja" as lang with context %} {#- Language module providing the `t` translation method. -#}
{{ section.title or lang.t("Parameters:") }}
    {% for parameter in section.value %}
  • {{ parameter.name }} {% if parameter.annotation %} {% with expression = parameter.annotation, backlink_type = "used-by" %} ({% include "expression.html.jinja" with context %} {%- if parameter.default %}, {{ lang.t("default:") }} {% with expression = parameter.default, backlink_type = "used-by" %} {% include "expression.html.jinja" with context %} {% endwith %} {% endif %}) {% endwith %} {% endif %} –
    {{ parameter.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
  • {% endfor %}