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