Login and get coding
Your team uses
Sphinxand wants you to comply with its standards for
docstrings. As per the Sphinx-RTD-Tutorial a typical
Sphinxdocstring has the following format:"""[Summary] :param [ParamName]: [ParamDescription], defaults to [DefaultParamVal] :type [ParamName]: [ParamType](, optional) ... :raises [ErrorType]: [ErrorDescription] ... :return: [ReturnDescription] :rtype: [ReturnType] """
Based on this format and using the literal strings in italics below, write a docstring for
- has Sums numbers for the Summary part,
- receives numbers: a list of numbers (type:
- raises a TypeError: if not all numeric values passed in,
- and returns sum of numbers (type:
There's no need to implement the function (leave the
passin) as this is about writing the proper
Note:We will be adding annotations to this function in the next Bite so you will need to complete this Bite to unlock the next.