from typing import IO
from typing import List


def read_expenses(input_io: IO) -> List[int]:
    """
    Read expenses in file and returns as list of integers.

    Parameters
    ----------
    input_io: IO
            Stream of expenses.

    Return
    ------
    list[int]
        a list of integers (expenses).
    """
    expenses = []
    while line := input_io.readline():
        expenses.append(int(line))
    return expenses