      """ Parent class for scaling adjustments """
      def __init__(self, output_folder, configfile=None):
          logger.debug("Initializing %s: (output_folder: '%s')",
                       self.__class__.__name__, output_folder)
          self.config = get_config(".".join(self.__module__.split(".")[-2:]), configfile=configfile)
          logger.debug("config: %s", self.config)
          self.output_folder = output_folder
          self.output_dimensions = None
  
          # Methods for making sure frames are written out in frame order
 
</s> remove         self.output_folder = output_folder
        self.output_dimensions = None
 </s> add         self.output_folder: str = output_folder </s> remove     """ Parent class for scaling adjustments """
    def __init__(self, output_folder, configfile=None):
 </s> add     """ Parent class for writer plugins.

    Parameters
    ----------
    output_folder: str
        The full path to the output folder where the converted media should be saved
    configfile: str, optional
        The full path to a custom configuration ini file. If ``None`` is passed
        then the file is loaded from the default location. Default: ``None``.
    """
    def __init__(self, output_folder: str, configfile: Optional[str] = None) -> None: </s> remove         self.re_search = re.compile(r"(\d+)(?=\.\w+$)")  # Identify frame numbers
        self.cache = dict()  # Cache for when frames must be written in correct order
 </s> add         self.re_search: re.Pattern = re.compile(r"(\d+)(?=\.\w+$)")  # Identify frame numbers
        self.cache: dict = {}  # Cache for when frames must be written in correct order </s> remove def get_config(plugin_name, configfile=None):
    """ Return the config for the requested model """
 </s> add def get_config(plugin_name: str, configfile: Optional[str] = None) -> dict:
    """ Obtain the configuration settings for the writer plugin.

    Parameters
    ----------
    plugin_name: str
        The name of the convert plugin to return configuration settings for
    configfile: str, optional
        The full path to a custom configuration ini file. If ``None`` is passed
        then the file is loaded from the default location. Default: ``None``.

    Returns
    -------
    dict
        The requested configuration dictionary
    """ </s> remove         self.source_video = source_video
        self.frame_ranges = frame_ranges
        self.frame_order = self.set_frame_order(total_count)
        self.output_dimensions = None  # Fix dims of 1st frame in case of different sized images
        self.writer = None  # Need to know dimensions of first frame, so set writer then

    @property
    def video_file(self):
        """ Return full path to video output """
        filename = os.path.basename(self.source_video)
        filename = os.path.splitext(filename)[0]
        filename = "{}_converted.{}".format(filename, self.config["container"])
        retval = os.path.join(self.output_folder, filename)
        logger.debug(retval)
        return retval
 </s> add         self._source_video: str = source_video
        self._output_filename: str = self._get_output_filename()
        self._frame_ranges: Optional[List[int]] = frame_ranges
        self._frame_order: List[int] = self._set_frame_order(total_count)
        self._output_dimensions: Optional[str] = None  # Fix dims on 1st received frame
        # Need to know dimensions of first frame, so set writer then
        self._writer: Optional[imageio.plugins.ffmpeg.FfmpegFormat.Writer] = None
        self.config: dict = get_config(".".join(self.__module__.split(".")[-2:]),
                                       configfile=configfile)
      """ Parent class for scaling adjustments """
      def __init__(self, output_folder, configfile=None):
          logger.debug("Initializing %s: (output_folder: '%s')",
                       self.__class__.__name__, output_folder)
        self.config: dict = get_config(".".join(self.__module__.split(".")[-2:]),
                                       configfile=configfile)
          logger.debug("config: %s", self.config)
          self.output_folder = output_folder
          self.output_dimensions = None
  
          # Methods for making sure frames are written out in frame order
keep keep keep keep replace keep keep keep keep keep
 ffmpeg writer: Create new filename if output pre-exists 
plugins/convert/writer/_base.py