diff --git a/mediapipe/python/packet_creator.py b/mediapipe/python/packet_creator.py
index 4fff44be4d..1ad6ac42e3 100644
--- a/mediapipe/python/packet_creator.py
+++ b/mediapipe/python/packet_creator.py
@@ -51,7 +51,7 @@
 create_matrix = _packet_creator.create_matrix
 
 
-def create_image_frame(data: Union[image_frame.ImageFrame, np.ndarray],
+def create_image_frame(data: Union[image_frame.ImageFrame, np.ndarray],  # pytype: disable=annotation-type-mismatch
                        *,
                        image_format: image_frame.ImageFormat = None,
                        copy: bool = None) -> packet.Packet:
@@ -149,7 +149,7 @@ def create_image_frame(data: Union[image_frame.ImageFrame, np.ndarray],
     # pylint:enable=protected-access
 
 
-def create_image(data: Union[image.Image, np.ndarray],
+def create_image(data: Union[image.Image, np.ndarray],  # pytype: disable=annotation-type-mismatch
                  *,
                  image_format: image_frame.ImageFormat = None,
                  copy: bool = None) -> packet.Packet: