From 2586f4f993980e8799d39127cea9c956d34edc81 Mon Sep 17 00:00:00 2001 From: joaocmd Date: Sat, 17 Jun 2023 19:04:58 +0100 Subject: [PATCH] Fix ruff problems --- src/transformers/models/swiftformer/__init__.py | 2 +- .../models/swiftformer/modeling_tf_swiftformer.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/transformers/models/swiftformer/__init__.py b/src/transformers/models/swiftformer/__init__.py index addb8b3b546c61..b324ea174d551b 100644 --- a/src/transformers/models/swiftformer/__init__.py +++ b/src/transformers/models/swiftformer/__init__.py @@ -16,8 +16,8 @@ from ...utils import ( OptionalDependencyNotAvailable, _LazyModule, - is_torch_available, is_tf_available, + is_torch_available, ) diff --git a/src/transformers/models/swiftformer/modeling_tf_swiftformer.py b/src/transformers/models/swiftformer/modeling_tf_swiftformer.py index 84f76cac70d471..d6a6b4917d061a 100644 --- a/src/transformers/models/swiftformer/modeling_tf_swiftformer.py +++ b/src/transformers/models/swiftformer/modeling_tf_swiftformer.py @@ -16,13 +16,11 @@ import collections.abc -from typing import Optional, Tuple, Union, Dict - +from typing import Dict, Optional, Tuple, Union import tensorflow as tf from ...activations_tf import get_tf_activation - from ...modeling_tf_outputs import ( TFBaseModelOutputWithNoAttention, TFImageClassifierOutputWithNoAttention,