def factors_of(number: int) -> list[int]:
    """
    Factor an integer into a list where the product of the list is equal to the original number.
    """

    return [i for i in range(1, number + 1) if number % i == 0]