diff --git a/authentik/core/api/providers.py b/authentik/core/api/providers.py index 19e9b7f09..90a27437d 100644 --- a/authentik/core/api/providers.py +++ b/authentik/core/api/providers.py @@ -1,5 +1,4 @@ """Provider API Views""" -from rest_framework.fields import ReadOnlyField from rest_framework.serializers import ModelSerializer, SerializerMethodField from rest_framework.viewsets import ModelViewSet diff --git a/authentik/providers/proxy/api.py b/authentik/providers/proxy/api.py index b91451881..e01f55e1f 100644 --- a/authentik/providers/proxy/api.py +++ b/authentik/providers/proxy/api.py @@ -1,6 +1,11 @@ """ProxyProvider API Views""" from drf_yasg2.utils import swagger_serializer_method -from rest_framework.fields import CharField, ListField, ReadOnlyField, SerializerMethodField +from rest_framework.fields import ( + CharField, + ListField, + ReadOnlyField, + SerializerMethodField, +) from rest_framework.request import Request from rest_framework.response import Response from rest_framework.serializers import ModelSerializer, Serializer diff --git a/authentik/providers/saml/api.py b/authentik/providers/saml/api.py index 11ca9a051..d8272bdbd 100644 --- a/authentik/providers/saml/api.py +++ b/authentik/providers/saml/api.py @@ -1,8 +1,6 @@ """SAMLProvider API Views""" -from typing import Optional -from authentik.core.models import Application -from rest_framework.fields import ReadOnlyField, SerializerMethodField -from rest_framework.serializers import ModelSerializer, Serializer, CharField +from rest_framework.fields import ReadOnlyField +from rest_framework.serializers import ModelSerializer from rest_framework.viewsets import ModelViewSet from authentik.core.api.utils import MetaNameSerializer