diff --git a/rest_framework_simplejwt/tokens.py b/rest_framework_simplejwt/tokens.py index 8dff4e01f..1eeadcf25 100644 --- a/rest_framework_simplejwt/tokens.py +++ b/rest_framework_simplejwt/tokens.py @@ -197,7 +197,7 @@ def check_exp( raise TokenError(format_lazy(_("Token '{}' claim has expired"), claim)) @classmethod - def for_user(cls, user: AuthUser) -> "Token": + def for_user(cls: Type[T], user: AuthUser) -> T: """ Returns an authorization token for the given user that will be provided after authenticating the user's credentials.