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