def get_fibonacci_sequence(length: int) -> list:
    """Return the fibonacci sequence to the specified length."""
    fibonacci_sequence = [0, 1]

    if length == 1:
        return [fibonacci_sequence[0], ]
    elif length == 2:
        return fibonacci_sequence
    for _ in range(0, length - 2):
        second_to_last = fibonacci_sequence[-2]
        last = fibonacci_sequence[-1]
        fibonacci_sequence.append(second_to_last + last)
    return fibonacci_sequence