Files
synology-api/docstring.mustache
Lubos Zima 91c82f9aa1 feat: update example section in docstring.mustache for clarity
Original value "Example return" is not supported by numpydocs-validation for python.
https://numpydoc.readthedocs.io/en/latest/format.html#examples

An optional section for examples, using the doctest format.
2025-06-30 15:14:56 +07:00

36 lines
713 B
Plaintext

{{! Numpy Docstring Template }}
{{summaryPlaceholder}}
{{#parametersExist}}
Parameters
----------
{{#args}}
{{var}} : {{typePlaceholder}}
{{descriptionPlaceholder}}
{{/args}}
{{#kwargs}}
{{var}} : {{typePlaceholder}}, optional
{{descriptionPlaceholder}}. Defaults to `{{&default}}`
{{/kwargs}}
{{/parametersExist}}
{{#returnsExist}}
Returns
-------
{{#returns}}
{{typePlaceholder}}
{{descriptionPlaceholder}}
{{/returns}}
{{/returnsExist}}
Example
----------
```json
{
"data": {
"template": "data"
},
"success": true
}
```