providers/*: fix api linting issues

This commit is contained in:
Jens Langhammer 2021-02-04 10:24:46 +01:00
parent 7e2a471903
commit add20de8de
3 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,4 @@
"""Provider API Views""" """Provider API Views"""
from rest_framework.fields import ReadOnlyField
from rest_framework.serializers import ModelSerializer, SerializerMethodField from rest_framework.serializers import ModelSerializer, SerializerMethodField
from rest_framework.viewsets import ModelViewSet from rest_framework.viewsets import ModelViewSet

View File

@ -1,6 +1,11 @@
"""ProxyProvider API Views""" """ProxyProvider API Views"""
from drf_yasg2.utils import swagger_serializer_method 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.request import Request
from rest_framework.response import Response from rest_framework.response import Response
from rest_framework.serializers import ModelSerializer, Serializer from rest_framework.serializers import ModelSerializer, Serializer

View File

@ -1,8 +1,6 @@
"""SAMLProvider API Views""" """SAMLProvider API Views"""
from typing import Optional from rest_framework.fields import ReadOnlyField
from authentik.core.models import Application from rest_framework.serializers import ModelSerializer
from rest_framework.fields import ReadOnlyField, SerializerMethodField
from rest_framework.serializers import ModelSerializer, Serializer, CharField
from rest_framework.viewsets import ModelViewSet from rest_framework.viewsets import ModelViewSet
from authentik.core.api.utils import MetaNameSerializer from authentik.core.api.utils import MetaNameSerializer