Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a type hint for serializer_class #817

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions rest_framework_simplejwt/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from typing import Optional, Type

from django.utils.module_loading import import_string
from rest_framework import generics, status
from rest_framework import generics, serializers, status
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.serializers import Serializer
Expand All @@ -13,7 +15,7 @@ class TokenViewBase(generics.GenericAPIView):
permission_classes = ()
authentication_classes = ()

serializer_class = None
serializer_class: Optional[Type[serializers.Serializer]] = None
_serializer_class = ""

www_authenticate_realm = "api"
Expand Down
Loading