  from sklearn import decomposition
  from tqdm import tqdm
  
  from lib.align import DetectedFace, _EXTRACT_RATIOS
  from lib.align.alignments import _VERSION
  from lib.image import (encode_image, generate_thumbnail, ImagesSaver,
                         read_image_meta_batch, update_existing_metadata)
  from plugins.extract.pipeline import Extractor, ExtractMedia
  from scripts.fsmedia import Alignments
  
 
</s> remove from typing import List, Tuple, TYPE_CHECKING, Optional
 </s> add from typing import Dict, List, Tuple, TYPE_CHECKING, Optional </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 _extract_alignment(self, metadata: dict) -> Tuple[str, int, dict]:
 </s> add     def _extract_alignment(self, metadata: dict) -> Tuple[str, int, AlignmentFileDict]: </s> remove             logger.trace("Returning: '%s'", retval)
 </s> add             logger.trace("Returning: '%s'", retval)  # type:ignore </s> remove         self._saver = None
 </s> add         self._saver: Optional[ImagesSaver] = None
from lib.align.alignments import _VERSION, AlignmentFileDict
  from sklearn import decomposition
  from tqdm import tqdm
  
  from lib.align import DetectedFace, _EXTRACT_RATIOS
from lib.align.alignments import _VERSION, AlignmentFileDict
  from lib.image import (encode_image, generate_thumbnail, ImagesSaver,
                         read_image_meta_batch, update_existing_metadata)
  from plugins.extract.pipeline import Extractor, ExtractMedia
  from scripts.fsmedia import Alignments
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Alignments tool - don't error on from-faces job 
tools/alignments/jobs.py