              with open(trigger, "w", encoding="utf8"):
                  pass
              logger.debug("Set preview trigger: %s", trigger)
  
      def clear(self, trigger_type=None):
          """ Remove the trigger file from the cache folder.
  
          Parameters
          ----------
          trigger_type: ["update", "mask_toggle", ``None``], optional
 
</s> remove     def set(self, trigger_type):
 </s> add     def set(self, trigger_type: Literal["update", "mask_toggle"]): </s> remove def preview_trigger():
 </s> add def preview_trigger() -> PreviewTrigger: </s> remove     def set_cursor_busy(self, widget=None):
 </s> add     def set_cursor_busy(self, widget: Optional[tk.Widget] = None) -> None: </s> remove     def _place_previews(self, frame_dims):
 </s> add     def _place_previews(self, frame_dims: Tuple[int, int]) -> Image.Image: </s> remove     def _get_current_size(self, name):
 </s> add     def _get_current_size(self, name: str) -> Optional[Tuple[int, int]]:
    def clear(self, trigger_type: Optional[Literal["update", "mask_toggle"]] = None) -> None:
              with open(trigger, "w", encoding="utf8"):
                  pass
              logger.debug("Set preview trigger: %s", trigger)
  
    def clear(self, trigger_type: Optional[Literal["update", "mask_toggle"]] = None) -> None:
          """ Remove the trigger file from the cache folder.
  
          Parameters
          ----------
          trigger_type: ["update", "mask_toggle", ``None``], optional
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py