{%- if hints.description -%}
{{ hints.description|safe }}
{%- endif -%} {%- if hints.parameters -%}{{ param_hints.description }}
{%- endif -%} {%- endfor -%} {%- for param_name, param_hints in hints.parameters.items() if (param_hints.optional == true) or (param_hints.optional is undefined) -%} {{ param_name }} {%- if 'type' in param_hints -%} : {{ param_hints.type }} {%- endif -%} {%- if 'default' in param_hints -%} (default: {{ param_hints.default }}) {%- endif -%}{{ param_hints.description }}
{%- endif -%} {%- endfor -%}{{ input.description }}
{%- endif -%} {%- endfor -%}{{ output.description }}
{%- endif -%} {%- endfor -%}References
{% for reference in hints.references %}
[{{ loop.index }}]
{%- if reference is string -%}
{{ reference }}
{%- else -%}
{{ reference.text }}
{%- endif -%}
{% endfor %}