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.
15 lines
319 B
ReStructuredText
15 lines
319 B
ReStructuredText
{# Identention in this file is important #}
|
|
|
|
{% if is_method %}
|
|
{# Slice self off #}
|
|
.. method:: {{ obj.name.split('.')[-1] }}({{ args[1:]|join(',') }})
|
|
{% else %}
|
|
.. function:: {{ obj.name.split('.')[-1] }}({{ args|join(',') }})
|
|
{% endif %}
|
|
|
|
{% if obj.docstring %}
|
|
{{ obj.docstring|indent(3) }}
|
|
{% endif %}
|
|
|
|
|