mypy: Fix return value annotation for google_oauth2_csrf.

This commit is contained in:
Tim Abbott 2017-05-23 17:47:03 -07:00
parent 17f87cfc9e
commit 109c5c677a
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ def remote_user_jwt(request):
return login_or_register_remote_user(request, email, user_profile, remote_user)
def google_oauth2_csrf(request, value):
# type: (HttpRequest, str) -> HttpResponse
# type: (HttpRequest, str) -> str
# In Django 1.10, get_token returns a salted token which changes
# everytime get_token is called.
from django.middleware.csrf import _unsalt_cipher_token