input: from typing import List
  
  def max_up_to_current(numbers: List[int]) -> List[int]:
      """ Given a list of numbers, create a list where each element is the highest number encountered up to that index.
      >>> max_up_to_current([1, 2, 3, 2, 3, 4, 2])
      [1, 2, 3, 3, 3, 4, 4]
      """
output:     if not numbers:
          return []
      max_list = [numbers[0]]
      current_max = numbers[0]
      for num in numbers[1:]:
          if num > current_max:
              current_max = num
          max_list.append(current_max)
      return max_list