-
-
Save Raxy45/98de280aec506e7168cbb5955242ec3f to your computer and use it in GitHub Desktop.
This file contains 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
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