Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 754 Bytes

class.rst

File metadata and controls

31 lines (26 loc) · 754 Bytes
{#
We show all the class's methods and attributes on the same page. By default, we document all methods, including those defined by parent classes.

-#}

{{ objname | escape | underline }}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}
   :no-members:
   :show-inheritance:

{% block attributes_summary %}
{% if attributes %}

Attributes {% for item in attributes %}

.. autoattribute:: {{ item }}
 {%- endfor %}

{% endif %}

{% endblock -%}

{% block methods_summary %}

{% set wanted_methods = (methods | reject('==', '__init__') | list) %} {% if wanted_methods %}

Methods {% for item in wanted_methods %}

.. automethod:: {{ item }}
 {%- endfor %}

{% endif %}

{% endblock %}