class {{ klass.name }}

{% if klass.docstring %}
{{ klass.docstring }}
{% endif %} {% if klass.ancestors %}

Ancestors (MRO)

    {% for ancestor in klass.ancestors %}
  1. {{ ancestor }}
  2. {% endfor %}
{% endif %} {% if klass.attributes %}

Attributes

{% for name, attributes in klass.attributes.items() %} {% for attribute in attributes %} {% endfor %} {% endfor %}
  Defined in
{{ name }} = {{ attribute.value|attribute }} {{ attribute.defining_class.name }}.{{ attribute.defining_class.name }}
{% endif %} {% if klass.classes %}

Inner classes

{% for foo in klass.classes %} {% with klass=foo %} {% include "class.html" %} {% endwith %} {% endfor %} {% endif %} {% if klass.methods %}

Methods

{% for name, declarations in klass.methods.items() %} {% for declaration in declarations %}

def {{ name }}{{ declaration.arguments }}: [{{ declaration.defining_class.name }}]

{{ declaration.docstring|e }}

Found on lines {{ declaration.lines.start }} to {{ declaration.lines.start+declaration.lines.total }} of {{ declaration.file }}

{{ declaration.code }}
{% endfor %} {% endfor %} {% endif %}