Skip to content

Commit

Permalink
fix: Respect show_signature_annotations option for attribute signat…
Browse files Browse the repository at this point in the history
…ures in headings

Issue-griffe-pydantic#9: mkdocstrings/griffe-pydantic#9
  • Loading branch information
pawamoy committed Dec 3, 2024
1 parent af6fab3 commit e93d166
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Context:
<span class="doc doc-object-name doc-attribute-name">{{ attribute_name }}</span>
{% else %}
{%+ filter highlight(language="python", inline=True) %}
{{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
{{ attribute_name }}{% if attribute.annotation and config.show_signature_annotations %}: {{ attribute.annotation }}{% endif %}
{% if attribute.value %} = {{ attribute.value }}{% endif %}
{% endfilter %}
{% endif %}
Expand Down

0 comments on commit e93d166

Please sign in to comment.