Skip to content

Commit

Permalink
refactor: auth view 클래스들에 타입 힌트 추가 #92
Browse files Browse the repository at this point in the history
  • Loading branch information
TGoddessana committed Oct 2, 2023
1 parent 6ab42b0 commit 582ca15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/accounts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from apps.accounts.models import User


class JWTSerializer(serializers.Serializer):
class JWTSerializer(serializers.Serializer): # type: ignore
access = serializers.CharField()
refresh = serializers.CharField()


class ProfileSerializer(serializers.ModelSerializer):
class ProfileSerializer(serializers.ModelSerializer[User]):
class Meta:
model = User
fields = [
Expand All @@ -27,7 +27,7 @@ class Meta:
}


class GoogleLoginSerializer(SocialLoginSerializer):
class GoogleLoginSerializer(SocialLoginSerializer): # type: ignore
code = None
id_token = None
access_token = None
Expand Down

0 comments on commit 582ca15

Please sign in to comment.