method.rst 374 B

123456789101112131415
  1. {%- if obj.display %}
  2. {% if sphinx_version >= (2, 1) %}
  3. .. method:: {{ obj.short_name }}({{ obj.args }})
  4. {% for property in obj.properties %}
  5. :{{ property }}:
  6. {% endfor %}
  7. {% else %}
  8. .. {{ obj.method_type }}:: {{ obj.short_name }}({{ obj.args }})
  9. {% endif %}
  10. {% if obj.docstring %}
  11. {{ obj.docstring|prepare_docstring|indent(3) }}
  12. {% endif %}
  13. {% endif %}