input: from typing import List
  
  
  def raise_exception_on_non_integer(numbers: List[float]) -> List[float]:
      """ Modify the given function to raise a `TypeError` if any of the elements in the input list is not an integer. 
      If all elements are integers, return the list of their square roots.
      
      >>> raise_exception_on_non_integer([1, 2, 3])
      [1.0, 1.4142135623730951, 1.7320508075688772]
      >>> raise_exception_on_non_integer([1, 2.5, 3])
      Traceback (most recent call last):
          ...
      TypeError: Input must be an integer
      """
output:     for num in numbers:
          if not isinstance(num, int):
              raise TypeError("Input must be an integer")
      return [math.sqrt(num) for num in numbers]