{#- Template for "Attributes" sections in docstrings. This template renders a list of documented attributes 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 %} {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #} {% import "language"|get_template as lang with context %} {#- Language module providing the `t` translation method. -#}
{{ section.title or lang.t("Attributes:") }}
    {% for attribute in section.value %}
  • {{ attribute.name }} {% if attribute.annotation %} {% with expression = attribute.annotation %} {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #} ({% include "expression"|get_template with context %}) {% endwith %} {% endif %} –
    {{ attribute.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
  • {% endfor %}