  
  .. toctree::
     :maxdepth: 1
  
     tools.preview
 
</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         list
 </s> add         list[str] </s> remove         logger.debug("Initialized: %s", __class__.__name__)
 </s> add         logger.debug("Initialized: %s", self.__class__.__name__) </s> remove     def _get_writer(self) -> "GIFFormat.Writer":
 </s> add     def _get_writer(self) -> "im_format.Format.Writer":
   tools.alignments
  
  .. toctree::
     :maxdepth: 1
  
   tools.alignments
     tools.preview
keep keep keep add keep
 tests:
  - unit test: tools.alignments.media
  - Add mypy test
  - Typing fixes 
docs/full/tests/tools.rst