Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Created August 27, 2017 03:08
Show Gist options
  • Save kurtis318/2f2f1e19e13fcaac8777ba3023b24ee2 to your computer and use it in GitHub Desktop.
Save kurtis318/2f2f1e19e13fcaac8777ba3023b24ee2 to your computer and use it in GitHub Desktop.
Pycharm auto function documentation
Pycharm creates a template documentation for new functions. I did not know what they here. Found an example at this web site.
https://pypi.python.org/pypi/exdoc
Not sure exactly the content of the page itself but I now know how to specify the documentation in the Pycharm template.
def f(a, b=1, *args):
''' Simple function
: param a: First
: type a: int
: param b: Second
: type b: int
: param args: More numbers
: returns: nothing interesting
: rtype: bool
: raises ValueError: hopeless condition
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment