              if len(filetypes[key]) > 2:
                  multi = [f"{key.title()} Files"]
                  multi.append(" ".join([ftype[1]
                                         for ftype in filetypes[key] if ftype[0] != "All files"]))
                  filetypes[key].insert(0, tuple(multi))
          return filetypes
  
      @property
      def _contexts(self):
          """dict: Mapping of commands, actions and their corresponding file dialog for context
 
</s> remove     def _contexts(self):
 </s> add     def _contexts(self) -> Dict[str, Dict[str, Union[str, Dict[str, str]]]]: </s> remove     handle_type: ['open', 'save', 'filename', 'filename_multi', 'save_filename', 'context', `dir`]
 </s> add     handle_type: ['open', 'save', 'filename', 'filename_multi', 'save_filename', 'context', 'dir'] </s> remove         variable: :class:`tkinter.StringVar`
 </s> add         variable: str </s> remove             self._previewcache["modified"] = max([os.path.getmtime(img) for img in retval])
 </s> add             self._previewcache["modified"] = max(os.path.getmtime(img) for img in retval) </s> remove                       if os.path.getmtime(fname) > self._previewcache["modified"]]
 </s> add                       if os.path.getmtime(fname) > cast(float, self._previewcache["modified"])]
                filetypes[key].insert(0, cast(Tuple[str, str], tuple(multi)))
              if len(filetypes[key]) > 2:
                  multi = [f"{key.title()} Files"]
                  multi.append(" ".join([ftype[1]
                                         for ftype in filetypes[key] if ftype[0] != "All files"]))
                filetypes[key].insert(0, cast(Tuple[str, str], tuple(multi)))
          return filetypes
  
      @property
      def _contexts(self):
          """dict: Mapping of commands, actions and their corresponding file dialog for context
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py