Skip to content

API

A minimal Python project skeleton.

increment(x)

Add 1 to the given number.

Parameters:

Name Type Description Default
x int | float

Input number.

required

Returns:

Type Description
int | float

Number x incremented by 1.

Source code in src/minimal_python_project_skeleton/__init__.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
def increment(x: int | float) -> int | float:
    """Add 1 to the given number.

    Parameters
    ----------
    x : int | float
        Input number.

    Returns
    -------
    int | float
        Number ``x`` incremented by 1.
    """
    return x + 1