Skip to content

Instantly share code, notes, and snippets.

@martimlobao
Created July 26, 2020 19:48
Show Gist options
  • Save martimlobao/d7b05ff9f49f76c0e1c5e511233e8aa1 to your computer and use it in GitHub Desktop.
Save martimlobao/d7b05ff9f49f76c0e1c5e511233e8aa1 to your computer and use it in GitHub Desktop.
{{summaryPlaceholder}}
{{#placeholder}}[extended_summary]{{/placeholder}}
{{#parametersExist}}
Args:
{{#args}}
{{var}} ({{typePlaceholder}}): {{descriptionPlaceholder}}
{{/args}}
{{#kwargs}}
{{var}} ({{typePlaceholder}}, optional): {{descriptionPlaceholder}}. Defaults to {{&default}}.
{{/kwargs}}
{{/parametersExist}}
{{#returnsExist}}
Returns:
{{#returns}}
{{typePlaceholder}}: {{descriptionPlaceholder}}
{{/returns}}
{{/returnsExist}}
{{#exceptionsExist}}
Raises:
{{#exceptions}}
{{type}}: {{descriptionPlaceholder}}
{{/exceptions}}
{{/exceptionsExist}}
Examples:
>>> {{name}}({{#args}}{{var}}, {{/args}}{{#kwargs}}{{var}}, {{/kwargs}})
{{#placeholder}}[output]{{/placeholder}}
>>> {{name}}({{#args}}{{var}}, {{/args}}{{#kwargs}}{{var}}, {{/kwargs}})
{{#placeholder}}[output]{{/placeholder}}
Notes:
{{#placeholder}}[notes]{{/placeholder}}
TODO (DSR-{{#placeholder}}[ticket_number]{{/placeholder}}):
{{#placeholder}}[todo]{{/placeholder}}
.. {{#placeholder}}[reference_name]{{/placeholder}}:
{{#placeholder}}[url]{{/placeholder}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment