{% extends "_base/function.html.jinja" %}
{% block source scoped %}
{#- Source block.
This block renders the source code for the function.
-#}
{% if config.show_source and function.source %}
Source code
{{ function.source|highlight(language="python", linestart=function.lineno or 0, linenums=True) }}
{% endif %}
{% endblock source %}