File: class.rst

package info (click to toggle)
python-pyzipper 0.3.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,112 kB
  • sloc: python: 9,552; makefile: 37
file content (50 lines) | stat: -rw-r--r-- 950 bytes parent folder | download
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
{{ objname | escape | underline}}

.. currentmodule:: {{ module }}

.. autoclass:: {{ objname }}

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

    .. rubric:: Attributes Summary

    .. autosummary::
    {% for item in attributes %}
        ~{{ item }}
    {%- endfor %}

    {% endif %}
    {% endblock %}

    {% block methods_summary %}
    {% if methods %}

     {% if '__init__' in methods %}
        {% set caught_result = methods.remove('__init__') %}
    {% endif %}

    .. rubric:: Methods Summary

    .. autosummary::
        :toctree: {{ objname }}/methods
        :nosignatures:

    {% for item in methods %}
        ~{{ name }}.{{ item }}
    {%- endfor %}

    {% endif %}
    {% endblock %}

    {% block methods_documentation %}
    {% if methods %}

    .. rubric:: Methods Documentation

    {% for item in methods %}
    .. automethod:: {{ name }}.{{ item }}
    {%- endfor %}

    {% endif %}
    {% endblock %}