          -------
          dict:
              The default file extension for each file type
          """
          defaults: Dict[str, Optional[str]] = {
              key: next(ext for ext in val[0][1].split(" ")).replace("*", "")
              for key, val in self._filetypes.items()}
          defaults["default"] = None
          defaults["video"] = ".mp4"
          defaults["image"] = ".png"
 
</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     def _filetypes(self) -> Dict[str, List[Tuple[str, str]]]:
 </s> add     def _filetypes(self) -> dict[str, list[tuple[str, str]]]: </s> remove     def _set_defaults(self) -> Dict[str, Optional[str]]:
 </s> add     def _set_defaults(self) -> dict[str, str | None]: </s> remove     def available_masks(self) -> List[str]:
 </s> add     def available_masks(self) -> list[str]: </s> remove         frames: Dict[str, Tuple[str, str]] = {}
        for frame in cast(List[Dict[str, str]], self.file_list_sorted):
 </s> add         frames: dict[str, tuple[str, str]] = {}
        for frame in T.cast(list[dict[str, str]], self.file_list_sorted):
        defaults: dict[str, str | None] = {
          -------
          dict:
              The default file extension for each file type
          """
        defaults: dict[str, str | None] = {
              key: next(ext for ext in val[0][1].split(" ")).replace("*", "")
              for key, val in self._filetypes.items()}
          defaults["default"] = None
          defaults["video"] = ".mp4"
          defaults["image"] = ".png"
keep keep keep keep 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 
lib/gui/utils/file_handler.py