Skip to content

simple

This is a simple module.

Functions

add_one

add_one(number)

Add one to number.

Parameters:

Name Type Description Default
number int

An integer.

required

Returns:

Type Description
int

A[n] int that is one greater than number.

Source code in src/sample/simple.py
def add_one(number: int) -> int:
    """Add one to `number`.

    Args:
        number (int): An integer.

    Returns:
        A[n] int that is one greater than `number`.
    """
    return number + 1