              kwargs["mode"] = "r"
          logger.debug("Set Kwargs: %s", kwargs)
          return kwargs
  
      def _set_context_handletype(self, command, action, variable):
          """ Sets the correct handle type  based on context.
  
          Parameters
          ----------
          command: str
 
</s> remove     def _set_kwargs(self, title, initial_folder, initial_file, file_type, command, action,
                    variable=None):
 </s> add     def _set_kwargs(self,
                    title: Optional[str],
                    initial_folder: Optional[str],
                    initial_file: Optional[str],
                    file_type: _FileType,
                    command: Optional[str],
                    action: Optional[str],
                    variable: Optional[str] = None
                    ) -> Dict[str, Union[None, tk.Frame, str, List[Tuple[str, str]]]]: </s> remove     def set_active_tab_by_name(self, name):
 </s> add     def set_active_tab_by_name(self, name: str) -> None: </s> remove         kwargs = dict(master=self._dummy_master)
 </s> add         kwargs: Dict[str, Union[None, tk.Frame, str,
                                List[Tuple[str, str]]]] = dict(master=self._dummy_master) </s> remove         self._gui_objects["command_notebook"] = notebook
 </s> add         self._gui_objects.command_notebook = notebook </s> remove     def set_modified_true(self, command):
 </s> add     def set_modified_true(self, command: str) -> None:
    def _set_context_handletype(self, command: str, action: str, variable: str) -> None:
              kwargs["mode"] = "r"
          logger.debug("Set Kwargs: %s", kwargs)
          return kwargs
  
    def _set_context_handletype(self, command: str, action: str, variable: str) -> None:
          """ Sets the correct handle type  based on context.
  
          Parameters
          ----------
          command: str
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py