You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sphinx-autoapi/autoapi/templates/python/class.rst

26 lines
455 B
ReStructuredText

.. py:class:: {{ obj.short_name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
{%- if obj.docstring %}
{{ obj.docstring|prepare_docstring|indent(3) }}
{% endif %}
{%- if obj.methods %}
{%- for method in obj.methods %}
{{ method.rendered|indent(3) }}
{%- endfor %}
{% endif %}
{% block content %}
{%- for obj_item in obj.children %}
{{ obj_item.rendered|indent(3) }}
{%- endfor %}
{% endblock %}