old_contents: import os
  
  
  def get_hook_dirs() -> list[str]:
      return [os.path.dirname(__file__)]
  
new_contents: from typing import List
  import os
  
  
  def get_hook_dirs() -> List[str]:
      return [os.path.dirname(__file__)]
  
subject: Fix pyinstaller hook for python 3.8 refs #270