From 41b5d4c31baea476dcc13e1e8c39411b20e14e4c Mon Sep 17 00:00:00 2001 From: yonigozlan Date: Fri, 13 Sep 2024 15:35:22 +0000 Subject: [PATCH] rebase on main, fix imports in test_processing_common --- tests/test_processing_common.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/test_processing_common.py b/tests/test_processing_common.py index 518feee0ce5af1..878dae051a6800 100644 --- a/tests/test_processing_common.py +++ b/tests/test_processing_common.py @@ -20,6 +20,13 @@ import numpy as np + +try: + from typing import Unpack +except ImportError: + from typing_extensions import Unpack + + from transformers.models.auto.processing_auto import processor_class_from_name from transformers.testing_utils import ( check_json_file_has_correct_format, @@ -29,12 +36,6 @@ from transformers.utils import is_vision_available -try: - from typing import Unpack -except ImportError: - from typing_extensions import Unpack - - if is_vision_available(): from PIL import Image