Skip to content

Commit e93d166

Browse files
committed
fix: Respect show_signature_annotations option for attribute signatures in headings
Issue-griffe-pydantic#9: mkdocstrings/griffe-pydantic#9
1 parent af6fab3 commit e93d166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Context:
5252
<span class="doc doc-object-name doc-attribute-name">{{ attribute_name }}</span>
5353
{% else %}
5454
{%+ filter highlight(language="python", inline=True) %}
55-
{{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
55+
{{ attribute_name }}{% if attribute.annotation and config.show_signature_annotations %}: {{ attribute.annotation }}{% endif %}
5656
{% if attribute.value %} = {{ attribute.value }}{% endif %}
5757
{% endfilter %}
5858
{% endif %}

0 commit comments

Comments
 (0)