{% extends "./base.html" %} {% load classy_doc %} {% block content %}

class {{klass.name}}

from {{klass.module}} import {{klass.name}}
{{klass.docstring}}

Ancestors (MRO)

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

Attributes

{% include './show_checkboxes.html' with section='attributes' %}
{% for name, attributes in klass.attributes.items %} {% with value=attributes|last %} {% for attribute in attributes reversed %} {% endfor %} {% endwith %} {% endfor %}
AttributeValueDefined in
{% endif %} {% if klass.fields %}

Fields

{% include './show_checkboxes.html' with section='fields' %}
{% for name, declarations in klass|field_items %} {% with value=declarations|last %} {% for declaration in declarations reversed %} {% endfor %} {% endwith %} {% endfor %}
AttributeTypeDefined in
{% endif %} {% if klass.methods %}

Methods

{% include './show_checkboxes.html' with section='methods' %}
{% for name, declarations in klass.methods.items %} {% with value=declarations|last %}
{% if value.type|slice:"-8" == "property" %}@property
  def {{name}}(self){% elif value.arguments %}def {{ name }}{{ value.arguments }}{% else %}def {{name}}(self){% endif %}
{{ value|module }}.{{ value|class_name }}
{% for declaration in declarations reversed %} {% if declarations|length > 1 %}
{{ declaration|module }}.{{ declaration|class_name }}
{% endif %} {% if declaration.docstring %}
{{ declaration.docstring|escape }}
{% endif %} {% if declaration.lines.total > 0 %}
{{ declaration.code }}
{% endif %} {% if declarations|length > 1 %}
{% endif %} {% endfor %}
{% endwith %} {% endfor %}
{% endif %} {% if klass.everything %}

Others

{% for name, declarations in klass.everything.items %} {% for declaration in declarations %}

{{ name }}{{ declaration }}

{% endfor %} {% endfor %} {% endif %} {% endblock %}