function.rst 404 B

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