Skip to content

Instantly share code, notes, and snippets.

@Raxy45
Last active April 23, 2022 11:26
Show Gist options
  • Save Raxy45/98de280aec506e7168cbb5955242ec3f to your computer and use it in GitHub Desktop.
Save Raxy45/98de280aec506e7168cbb5955242ec3f to your computer and use it in GitHub Desktop.
def google_docstrings(num1, num2
) -> int:
"""Add up two integer numbers.
This function simply wraps the ``+`` operator, and does not
do anything interesting, except for illustrating what
the docstring of a very simple function looks like.
Args:
num1 (int) : First number to add.
num2 (int) : Second number to add.
Returns:
The sum of ``num1`` and ``num2``.
Raises:
AnyError: If anything bad happens.
"""
return num1 + num2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment