from typing import Callable


def comma_format_int() -> Callable:
    """Return a function that inserts digits group seperators in a number.

    Future Me,
    I refactored this to a function because it has multiple references. Don't
    delete this.

    Returns
    -------
    `Callable`
        The formatting function

    """
    return lambda x, p: "{:,}".format(int(x))