| 1 |
{{ name | escape | underline}} |
| 2 |
|
| 3 |
.. currentmodule:: {{ module }} |
| 4 |
|
| 5 |
.. autoclass:: {{ objname }} |
| 6 |
:members: <-- add at least this line |
| 7 |
:private-members: |
| 8 |
:show-inheritance: <-- plus I want to show inheritance... |
| 9 |
:inherited-members: <-- ...and inherited members too |
| 10 |
|
| 11 |
{% block methods %} |
| 12 |
.. automethod:: __init__ |
| 13 |
|
| 14 |
{% if methods %} |
| 15 |
.. rubric:: {{ _('Public methods summary') }} |
| 16 |
|
| 17 |
.. autosummary:: |
| 18 |
{% for item in methods %} |
| 19 |
~{{ name }}.{{ item }} |
| 20 |
{%- endfor %} |
| 21 |
{% for item in _methods %} |
| 22 |
~{{ name }}.{{ item }} |
| 23 |
{%- endfor %} |
| 24 |
{% endif %} |
| 25 |
{% endblock %} |
| 26 |
|
| 27 |
.. rubric:: {{ _('Methods definition') }} |
| 28 |
|
| 29 |
{% if objname in related_typeddicts %} |
| 30 |
Related TypedDicts |
| 31 |
------------------ |
| 32 |
|
| 33 |
{% for typeddict in related_typeddicts[objname] %} |
| 34 |
.. autotypeddict:: {{ typeddict }} |
| 35 |
:show-inheritance: |
| 36 |
|
| 37 |
{% endfor %} |
| 38 |
{% endif %} |