Created
December 17, 2021 17:36
-
-
Save aaronsteers/57b86ea3fb066f456b3ecf781c91d1de to your computer and use it in GitHub Desktop.
Meltano Docstring Template for Python projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{! Meltano Docstring Template - Same as Google but delegates type hinting to the function signature | |
Save locally and use with this VS Code extension: | |
https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring }} | |
{{summaryPlaceholder}} | |
{{extendedSummaryPlaceholder}} | |
{{#parametersExist}} | |
Args: | |
{{#args}} | |
{{var}}: {{descriptionPlaceholder}} | |
{{/args}} | |
{{#kwargs}} | |
{{var}}: {{descriptionPlaceholder}}. Defaults to {{&default}}. | |
{{/kwargs}} | |
{{/parametersExist}} | |
{{#exceptionsExist}} | |
Raises: | |
{{#exceptions}} | |
{{type}}: {{descriptionPlaceholder}} | |
{{/exceptions}} | |
{{/exceptionsExist}} | |
{{#returnsExist}} | |
Returns: | |
{{#returns}} | |
{{descriptionPlaceholder}} | |
{{/returns}} | |
{{/returnsExist}} | |
{{#yieldsExist}} | |
Yields: | |
{{#yields}} | |
{{descriptionPlaceholder}} | |
{{/yields}} | |
{{/yieldsExist}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment