{% if config.show_if_no_docstring or method.has_contents %}
{% if not root or config.show_root_heading %} {% if root %} {% set show_full_path = config.show_root_full_path %} {% else %} {% set show_full_path = config.show_object_full_path %} {% endif %} {% if show_full_path %}{{ method.path }}{% else %}{{ method.name }}{% endif %} {% filter highlight(language="python", inline=True) %} {% with signature = method.docstring.signature %}{% include "signature.html" with context %}{% endwith %} {% endfilter %} {% with properties = method.properties %} {% include "properties.html" with context %} {% endwith %} {% else %} {% set heading_level = heading_level - 1 %} {% if config.show_root_toc_entry %} {% endif %} {% endif %}
{% with docstring = method.docstring %} {% include "docstring.html" with context %} {% endwith %} {% if config.show_source and method.source %}
Show source code in {{ method.relative_file_path }} {{ method.source[0]|join|highlight(language="python", line_start=method.source[1]) }}
{% endif %}
{% endif %}