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

34 lines
634 B
ReStructuredText
Raw Normal View History

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