Debian Codegraph @

docs/templates/python/nature/attribute.html.jinja

raw
1 {% extends "_base/attribute.html.jinja" %}
2
3 {% block heading scoped %}
4 <a class="doc-source-link" href="{{ config.extra.source.repo }}/tree/{{ config.extra.source.tag }}/{{ attribute.relative_filepath }}#L{{ attribute.lineno }}{% if attribute.endlineno > attribute.lineno %}-L{{ attribute.endlineno }}{% endif %}" title='View source code on GitHub'>&lsaquo;&rsaquo;</a>
5 {% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-attribute"></code>{% endif %}
6 {%+ filter highlight(language="python", inline=True) %}
7 {{ attribute_name }}{% if attribute.annotation %}: {{ attribute.annotation }}{% endif %}
8 {% endfilter %}
9 {% endblock heading %}
10
11 {% block contents scoped %}
12 {{ super() }}
13 {% if attribute.value %}
14 <p>Defined Value:</p>
15 {%+ filter highlight(language="python", inline=False) %}
16 {{ attribute.source }}
17 {% endfilter %}
18 {% endif %}
19 {% endblock contents %}