Skip to content

Pyar Core

add_two_numbers(a, b)

Calculate the sum of two integers.

This is a trivial placeholder method used to mock out the initial repository structure and test suite behavior.

Parameters:

Name Type Description Default
a int

The first integer to add.

required
b int

The second integer to add.

required

Returns:

Type Description
int

The arithmetic sum of a and b.

Source code in src/pyar/core.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
def add_two_numbers(a: int, b: int) -> int:
    """Calculate the sum of two integers.

    This is a trivial placeholder method used to mock out the initial
    repository structure and test suite behavior.

    Parameters
    ----------
    a : int
        The first integer to add.
    b : int
        The second integer to add.

    Returns
    -------
    int
        The arithmetic sum of `a` and `b`.
    """
    return a + b