Skip to content

Commit

Permalink
Restore Attribute symbol type in mkdocstrings template
Browse files Browse the repository at this point in the history
  • Loading branch information
waylan committed Jan 22, 2024
1 parent 6425ffc commit 91f9a12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/templates/python/nature/attribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{% block heading scoped %}
<a class="doc-source-link" href="{{ config.source.repo }}/tree/{{ config.source.tag }}/{{ attribute.filepath }}#L{{ attribute.lineno }}{% if attribute.endlineno > attribute.lineno %}-L{{ attribute.endlineno }}{% endif %}" title='View source code on GitHub'>&lsaquo;&rsaquo;</a>
{% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-attribute"></code>{% endif %}
{%+ filter highlight(language="python", inline=True) %}
{{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
{% endfilter %}
Expand Down

0 comments on commit 91f9a12

Please sign in to comment.