input: from typing import List
  
  def sum_of_digits(numbers: List[int]) -> List[int]:
      """ Given a list of integers, calculate the sum of the digits for each integer.
      >>> sum_of_digits([6342, 9157, 8462])
      [15, 22, 20]
      >>> sum_of_digits([23, 567, 1234])
      [5, 18, 10]
      """
output:     return [sum(int(digit) for digit in str(num)) for num in numbers]