File: functions_with_ref.py

package info (click to toggle)
sphinx-automodapi 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: python: 1,696; makefile: 197
file content (23 lines) | stat: -rw-r--r-- 310 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
A collection of useful functions
"""

__all__ = ['add', 'multiply']


def add(a, b):
    """
    Add two numbers

    Here is an example reference: astropy_
    """
    return a + b


def multiply(c, d):
    """
    Multiply two numbers

    Here is an example reference: astropy_
    """
    return c * d