          self._erodes = [self._config.get(erode, 0) / 100 for erode in erode_types]
          self._do_erode = any(amount != 0 for amount in self._erodes)
  
      def _set_config(self,
                      configfile: Optional[str],
                      config: Optional[FaceswapConfig]) -> dict:
          """ Set the correct configuration for the plugin based on whether a config file
          or pre-loaded config has been passed in.
  
          Parameters
          ----------
 
</s> remove         self._writer: Optional[imageio.plugins.pillowmulti.GIFFormat.Writer] = None
        self._gif_file: Optional[str] = None  # Set filename based on first file seen
 </s> add         self._writer: imageio.plugins.pillowmulti.GIFFormat.Writer | None = None
        self._gif_file: str | None = None  # Set filename based on first file seen </s> remove                               config: Optional[ConfigParser] = None) -> None:
 </s> add                               config: ConfigParser | None = None) -> None: </s> remove     def __init__(self, config: dict, color_order: Literal["bgr", "rgb"]) -> None:
 </s> add     def __init__(self, config: dict, color_order: T.Literal["bgr", "rgb"]) -> None: </s> remove                    masker: Optional[str],
                   configfile: Optional[str]) -> Optional["Masker"]:
 </s> add                    masker: str | None,
                   configfile: str | None) -> Masker | 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:
                    configfile: str | None,
                    config: FaceswapConfig | None) -> dict:
          self._erodes = [self._config.get(erode, 0) / 100 for erode in erode_types]
          self._do_erode = any(amount != 0 for amount in self._erodes)
  
      def _set_config(self,
                    configfile: str | None,
                    config: FaceswapConfig | None) -> dict:
                    configfile: str | None,
                    config: FaceswapConfig | None) -> dict:
          """ Set the correct configuration for the plugin based on whether a config file
          or pre-loaded config has been passed in.
  
          Parameters
          ----------
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/mask/mask_blend.py