sphinx-autoapi/autoapi/templates/python/class.rst

21 lines
370 B
ReStructuredText
Raw Normal View History

.. class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
2015-04-01 00:01:41 +00:00
{% if obj.docstring %}
2015-04-01 00:01:41 +00:00
.. rubric:: Summary
{{ obj.docstring|indent(3) }}
2015-04-01 00:01:41 +00:00
{% endif %}
{% if obj.methods %}
2015-04-01 00:01:41 +00:00
{% for method in obj.methods %}
2015-04-01 00:01:41 +00:00
{% macro render() %}{{ method.render() }}{% endmacro %}
{{ render()|indent(3) }}
{%- endfor %}
{% endif %}