from typing import List


def fibi(endi: int) -> List[int]:
    """Given an end number, returns the number fibonacci numbers up to that number

    Args:
        endn (int): The end number

    Returns:
        list: The fibonacci numbers up to that number
    """
    fibs = [0, 1]
    for _ in range(endi - 2):
        fibs.append(fibs[-2] + fibs[-1])
    return fibs