Compare commits

...

1 Commits

Author SHA1 Message Date
Eugene Yurtsev
71450f2a7e x 2023-07-31 22:48:54 -04:00

View File

@@ -3,8 +3,23 @@
.. currentmodule:: {{ module }} .. currentmodule:: {{ module }}
{% if '_value2member_map_' in all_attributes %}
{% set classType = "enum" %}
{% else %}
{% set classType = "default" %}
{% endif %}
.. autoclass:: {{ objname }} .. autoclass:: {{ objname }}
{% if classType == "enum" %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}
{% endif %}
{% else %}
{% if attributes %}
.. rubric:: {{ _('Attributes') }}
{% endif %}
{% block methods %} {% block methods %}
{% if methods %} {% if methods %}
.. rubric:: {{ _('Methods') }} .. rubric:: {{ _('Methods') }}
@@ -26,5 +41,6 @@
{%- endfor %} {%- endfor %}
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% endif %}
.. example_links:: {{ objname }} .. example_links:: {{ objname }}