summaryrefslogtreecommitdiff
path: root/good_function.py
blob: 7b68489e30fcafe5a120b36c3d6db4fb059f3202 (plain)
1
2
3
4
5
6
7
8
9
def myfunc(a: int, b: int) -> int:
    """# Compute Offset Arithmetic

    a: int
    b: int
    Returns a + b - 1, which corrects for the off-by-one offset
    """
    return a + b - 1