  import logging
  import os
  import sys
  from datetime import datetime
  from typing import List, Tuple, TYPE_CHECKING, Optional
  
  from argparse import Namespace
  
  import cv2
  import numpy as np
 
</s> remove from lib.align.alignments import _VERSION
 </s> add from lib.align.alignments import _VERSION, AlignmentFileDict </s> remove     def _extract_alignment(self, metadata: dict) -> Tuple[str, int, dict]:
 </s> add     def _extract_alignment(self, metadata: dict) -> Tuple[str, int, AlignmentFileDict]: </s> remove         self._saver = None
 </s> add         self._saver: Optional[ImagesSaver] = None </s> remove         logger.trace("Updating png header for '%s': (face index from %s to %s, original filename "
                     "from '%s' to '%s'", face_path, source_info["face_index"], new_index,
                     source_info["original_filename"], new_filename)
 </s> add         logger.trace("Updating png header for '%s': (face index from %s to %s, "  # type:ignore
                     "original filename from '%s' to '%s'", face_path, source_info["face_index"],
                     new_index, source_info["original_filename"], new_filename) </s> remove     def _sort_alignments(self, alignments: dict) -> dict:
 </s> add     def _sort_alignments(self,
                         alignments: Dict[str, Dict[str, List[Tuple[int,
                                                               AlignmentFileDict,
                                                               str,
                                                               dict]]]]
                         ) -> Dict[str, Dict[str, List[AlignmentFileDict]]] :
from typing import Dict, List, Tuple, TYPE_CHECKING, Optional
  import logging
  import os
  import sys
  from datetime import datetime
from typing import Dict, List, Tuple, TYPE_CHECKING, Optional
  
  from argparse import Namespace
  
  import cv2
  import numpy as np
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Alignments tool - don't error on from-faces job 
tools/alignments/jobs.py