Skip to content

Instantly share code, notes, and snippets.

@josepsmartinez
Created March 12, 2021 13:58
Show Gist options
  • Save josepsmartinez/d9e6fdd01d70832fbc7d7095d4673e5f to your computer and use it in GitHub Desktop.
Save josepsmartinez/d9e6fdd01d70832fbc7d7095d4673e5f to your computer and use it in GitHub Desktop.
Python docstring template (like gensim and sklearn)
def foo():
"""<FUNCTION DESCRIPTION>
<BLANK LINE>
Parameters
----------
<VARIABLE> : <TYPE>
<DESCRIPTION>
...
<BLANK LINE>
Returns
-------
<TYPE>
<DESCRIPTION>
...
"""
<FUNCTION IMPLEMENTATION>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment