From dbf1401a8ade6e9b78ab8d0a702fc8acaaf912c1 Mon Sep 17 00:00:00 2001 From: huangpixu Date: Mon, 9 Dec 2024 16:12:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9collections.abc?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=B7=AF=E5=BE=84=20#7625?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/core/apis/drf/viewsets/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcloud/core/apis/drf/viewsets/base.py b/gcloud/core/apis/drf/viewsets/base.py index 296a4bb344..435422f747 100644 --- a/gcloud/core/apis/drf/viewsets/base.py +++ b/gcloud/core/apis/drf/viewsets/base.py @@ -11,16 +11,16 @@ specific language governing permissions and limitations under the License. """ import logging -from collections import Iterable +from collections.abc import Iterable +from django_filters.rest_framework import DjangoFilterBackend from rest_framework import generics -from rest_framework.response import Response -from rest_framework.filters import SearchFilter, OrderingFilter +from rest_framework.filters import OrderingFilter, SearchFilter from rest_framework.pagination import LimitOffsetPagination +from rest_framework.response import Response -from django_filters.rest_framework import DjangoFilterBackend +from gcloud.core.apis.drf.viewsets import ApiMixin, IAMMixin from gcloud.iam_auth import get_iam_client -from gcloud.core.apis.drf.viewsets import IAMMixin, ApiMixin iam = get_iam_client() iam_logger = logging.getLogger("iam")