input: from typing import List
  
  def expand_list(list: List) -> List:
      """ Detect any potential errors in the given Python function and provide a modified version that avoids the issue.
      >>> expand_list([1, 2, 3])
      [1, 2, 3, 1, 2, 3]
      >>> expand_list(['a', 'b', 'c'])
      ['a', 'b', 'c', 'a', 'b', 'c']
      """
output:     return list + list