input: from typing import List
  
  
  def Fibonacci(n: int) -> List[int]:
      """ Calculate the Fibonacci sequence up to a given number n and return a list of Fibonacci numbers.
      >>> Fibonacci(5)
      [0, 1, 1, 2, 3]
      >>> Fibonacci(10)
      [0, 1, 1, 2, 3, 5, 8]
      """
      if n < 0:
          return []
      if n == 0:
          return [0]
      fib_seq = [0, 1]
      while fib_seq[-1] < n:
          fib_seq.append(fib_seq[-1] + fib_seq[-2])
      return fib_seq[:-1]
output:     if n < 0:
          return []
      if n == 0:
          return [0]
      fib_seq = [0, 1]
      while fib_seq[-1] < n:
          fib_seq.append(fib_seq[-1] + fib_seq[-2])
      return fib_seq[:-1]