          variable: :class:`tkinter.StringVar`
              The variable associated with this file dialog
          """
          if self._contexts[command].get(variable, None) is not None:
              handletype = self._contexts[command][variable][action]
          else:
              handletype = self._contexts[command][action]
          logger.debug(handletype)
          self._handletype = handletype
  
 
</s> remove             handletype = self._contexts[command][action]
 </s> add             handletype = cast(Dict[str, Dict[str, str]],
                              self._contexts)[command][action] </s> remove         variable: :class:`tkinter.StringVar`
 </s> add         variable: str </s> remove         self._handletype = handletype
 </s> add         self._handletype = cast(_HandleType, handletype) </s> remove     def _open(self):
 </s> add     def _open(self) -> Optional[IO]: </s> remove         variable: :class:`tkinter.StringVar`, optional
 </s> add         variable: str, optional
            handletype = cast(Dict[str, Dict[str, Dict[str, str]]],
                              self._contexts)[command][variable][action]
          variable: :class:`tkinter.StringVar`
              The variable associated with this file dialog
          """
          if self._contexts[command].get(variable, None) is not None:
            handletype = cast(Dict[str, Dict[str, Dict[str, str]]],
                              self._contexts)[command][variable][action]
          else:
              handletype = self._contexts[command][action]
          logger.debug(handletype)
          self._handletype = handletype
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py