nmreval/doc/source/_templates/autosummary/class_with_attributes.rst

34 lines
628 B
ReStructuredText
Raw Normal View History

2022-03-25 10:04:02 +00:00
{{ 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>