nmreval/doc/source/_templates/autosummary/class_with_attributes.rst
2022-03-25 11:04:35 +01:00

34 lines
628 B
ReStructuredText

{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
{% block methods %}
{% if methods %}
.. rubric:: {{ _('Methods') }}
{% for item in methods %}
{% if not item.startswith('_') %}
.. automethod:: {{ item }}
{%- endif %}
{%- endfor %}
{% endif %}
{% endblock %}
{% block attributes %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}
{% for item in attributes %}
.. autoattribute:: {{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
.. include:: {{ fullname }}.examples
.. raw:: html
<div class="clearer"></div>