                                 color_green=SortColor,
                                 color_orange=SortColor)
  
          self._args = self._parse_arguments(arguments)
          self._changes = {}
          self.serializer: Optional[Serializer] = None
  
          if arguments.log_changes:
              self.serializer = get_serializer_from_filename(arguments.log_file_path)
  
 
</s> remove         seen: dict[str, list[int]] = {}
 </s> add         seen: Dict[str, List[int]] = {} </s> remove             meta = dict(alignments=face.to_png_meta(),
                        source=dict(alignments_version=self._alignments.version,
                                    original_filename=output,
                                    face_index=idx,
                                    source_filename=filename,
                                    source_is_video=self._frames.is_video,
                                    source_frame_dims=image.shape[:2]))
 </s> add             meta: PNGHeaderDict = dict(
                alignments=face.to_png_meta(),
                source=dict(alignments_version=self._alignments.version,
                            original_filename=output,
                            face_index=idx,
                            source_filename=filename,
                            source_is_video=self._frames.is_video,
                            source_frame_dims=cast(Tuple[int, int], image.shape[:2])))
            assert face.aligned.face is not None </s> remove     def __init__(self):
        logger.debug("Initializing: %s", __class__.__name__)
 </s> add     def __init__(self) -> None:
        logger.debug("Initializing: %s", self.__class__.__name__) </s> remove         logger.debug("Initialized: %s", __class__.__name__)
 </s> add         logger.debug("Initialized: %s", self.__class__.__name__)
        self._changes: Dict[str, str] = {}
                                 color_green=SortColor,
                                 color_orange=SortColor)
  
          self._args = self._parse_arguments(arguments)
        self._changes: Dict[str, str] = {}
          self.serializer: Optional[Serializer] = None
  
          if arguments.log_changes:
              self.serializer = get_serializer_from_filename(arguments.log_file_path)
  
keep keep keep keep replace keep keep keep keep keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
tools/sort/sort.py