  
  
  class _Sort():  # pylint:disable=too-few-public-methods
      """ Sorts folders of faces based on input criteria """
      def __init__(self, arguments):
          logger.debug("Initializing %s: arguments: %s", self.__class__.__name__, arguments)
          self._processes = dict(blur=SortBlur,
                                 blur_fft=SortBlur,
                                 distance=SortDistance,
                                 yaw=SortYaw,
 
</s> remove         frame = reader.get_next_data()[:, :, ::-1]
 </s> add         frame = reader.get_next_data()[:, :, ::-1]  # type:ignore[index] </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 def layer_test(layer_cls, kwargs={}, input_shape=None, input_dtype=None,
 </s> add def layer_test(layer_cls, kwargs={}, input_shape=None, input_dtype=None,  # noqa:C901 </s> remove         reader = imageio.get_reader(self._source_video, "ffmpeg")
 </s> add         reader = imageio.get_reader(self._source_video, "ffmpeg")  # type:ignore[arg-type]
    def __init__(self, arguments: Namespace) -> None:
  
  
  class _Sort():  # pylint:disable=too-few-public-methods
      """ Sorts folders of faces based on input criteria """
    def __init__(self, arguments: Namespace) -> None:
          logger.debug("Initializing %s: arguments: %s", self.__class__.__name__, arguments)
          self._processes = dict(blur=SortBlur,
                                 blur_fft=SortBlur,
                                 distance=SortDistance,
                                 yaw=SortYaw,
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