1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
{{ fullname }}
{{ underline }}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
..
Methods
{% block methods %}
.. rubric:: Methods
..
Special methods
{% for item in ('__call__', '__enter__', '__exit__', '__getitem__', '__setitem__', '__len__', '__next__', '__iter__', '__copy__') %}
{% if item in all_methods %}
.. automethod:: {{ item }}
{% endif %}
{%- endfor %}
..
Ordinary methods
{% for item in methods %}
{% if item not in ('__init__',) %}
.. automethod:: {{ item }}
{% endif %}
{%- endfor %}
..
Special methods
{% for item in ('__eq__', '__ne__', '__lt__', '__le__', '__gt__', '__ge__', '__nonzero__', '__bool__') %}
{% if item in all_methods %}
.. automethod:: {{ item }}
{% endif %}
{%- endfor %}
{% endblock %}
..
Atributes
{% block attributes %} {% if attributes %}
.. rubric:: Attributes
{% for item in attributes %}
.. autoattribute:: {{ item }}
{%- endfor %}
{% endif %} {% endblock %}
|