  """ Converter for Faceswap """
  
  import logging
  
  import cv2
  import numpy as np
  
 
</s> remove from typing import Optional, List, Tuple, Generator
 </s> add from typing import cast, Generator, List, Optional, Tuple
import sys
from dataclasses import dataclass
from typing import Callable, cast, List, Optional, Tuple, TYPE_CHECKING, Union
  """ Converter for Faceswap """
  
  import logging
import sys
from dataclasses import dataclass
from typing import Callable, cast, List, Optional, Tuple, TYPE_CHECKING, Union
  
  import cv2
  import numpy as np
  
keep keep add keep keep keep keep
 Bugfix: convert - Gif Writer
  - Fix non-launch error on Gif Writer
  - convert plugins - linting
  - convert/fs_media/preview/queue_manager - typing
  - Change convert items from dict to Dataclass 
lib/convert.py