mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-17 21:25:35 +00:00
15 lines
404 B
ReStructuredText
15 lines
404 B
ReStructuredText
{% if obj.display %}
|
|
.. function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %}
|
|
|
|
{% if sphinx_version >= (2, 1) %}
|
|
{% for property in obj.properties %}
|
|
:{{ property }}:
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if obj.docstring %}
|
|
{{ obj.docstring|prepare_docstring|indent(3) }}
|
|
{% else %}
|
|
{% endif %}
|
|
{% endif %}
|