From 7fd3037a7d0e07a7ee0ab2630dfaa639946a2319 Mon Sep 17 00:00:00 2001 From: yonigozlan Date: Fri, 20 Sep 2024 16:46:43 +0000 Subject: [PATCH] cleanup Unpack --- src/transformers/models/udop/processing_udop.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/transformers/models/udop/processing_udop.py b/src/transformers/models/udop/processing_udop.py index 3d4cfc9ce4334e..1eae94ea4609ff 100644 --- a/src/transformers/models/udop/processing_udop.py +++ b/src/transformers/models/udop/processing_udop.py @@ -16,23 +16,16 @@ Processor class for UDOP. """ -import sys from typing import List, Optional, Union from transformers import logging from ...image_processing_utils import BatchFeature from ...image_utils import ImageInput -from ...processing_utils import ProcessingKwargs, ProcessorMixin, TextKwargs +from ...processing_utils import ProcessingKwargs, ProcessorMixin, TextKwargs, Unpack from ...tokenization_utils_base import PreTokenizedInput, TextInput -if sys.version_info >= (3, 11): - from typing import Unpack -else: - from typing_extensions import Unpack - - logger = logging.get_logger(__name__)