input: from typing import List
  
  def expand_list(list: List[any]) -> List[any]:
      """ Analyze the following Python function to detect any potential errors.
      >>> expand_list(['a', 'b'])
      ['a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b']
      """
output:     result = []
      for _ in range(10):
          result.extend(list)
      return result