          super().__init__(output_folder, **kwargs)
          self.frame_order: List[int] = self._set_frame_order(total_count, frame_ranges)
          self._output_dimensions: Optional[Tuple[int, int]] = None  # Fix dims on 1st received frame
          # Need to know dimensions of first frame, so set writer then
          self._writer: Optional[imageio.plugins.pillowmulti.GIFFormat.Writer] = None
          self._gif_file: Optional[str] = None  # Set filename based on first file seen
  
      @property
      def _gif_params(self) -> dict:
          """ dict: The selected gif plugin configuration options. """
          kwargs = {key: int(val) for key, val in self.config.items()}
 
</s> remove         self.frame_order: List[int] = self._set_frame_order(total_count, frame_ranges)
        self._output_dimensions: Optional[Tuple[int, int]] = None  # Fix dims on 1st received frame
 </s> add         self.frame_order: list[int] = self._set_frame_order(total_count, frame_ranges)
        # Fix dims on 1st received frame
        self._output_dimensions: tuple[int, int] | None = None </s> remove                  frame_ranges: Optional[List[Tuple[int, int]]],
 </s> add                  frame_ranges: list[tuple[int, int]] | None, </s> remove def get_config(plugin_name: str, configfile: Optional[str] = None) -> dict:
 </s> add def get_config(plugin_name: str, configfile: str | None = None) -> dict: </s> remove                     configfile: Optional[str],
                    config: Optional[FaceswapConfig]) -> dict:
 </s> add                     configfile: str | None,
                    config: FaceswapConfig | None) -> dict: </s> remove         self.cuda_path: Optional[str] = None
        self.cuda_version: Optional[str] = None
        self.cudnn_version: Optional[str] = None
 </s> add         self.cuda_path: str | None = None
        self.cuda_version: str | None = None
        self.cudnn_version: str | None = None
        self._writer: imageio.plugins.pillowmulti.GIFFormat.Writer | None = None
        self._gif_file: str | None = None  # Set filename based on first file seen
          super().__init__(output_folder, **kwargs)
          self.frame_order: List[int] = self._set_frame_order(total_count, frame_ranges)
          self._output_dimensions: Optional[Tuple[int, int]] = None  # Fix dims on 1st received frame
          # Need to know dimensions of first frame, so set writer then
        self._writer: imageio.plugins.pillowmulti.GIFFormat.Writer | None = None
        self._gif_file: str | None = None  # Set filename based on first file seen
        self._writer: imageio.plugins.pillowmulti.GIFFormat.Writer | None = None
        self._gif_file: str | None = None  # Set filename based on first file seen
  
      @property
      def _gif_params(self) -> dict:
          """ dict: The selected gif plugin configuration options. """
          kwargs = {key: int(val) for key, val in self.config.items()}
keep keep keep keep replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
plugins/convert/writer/gif.py