mypy: Use Python 3 type syntax in zerver/views.

This commit is contained in:
rht
2017-12-29 13:34:49 +00:00
committed by showell
parent 2e8adbde12
commit 1324d9f000
6 changed files with 46 additions and 48 deletions

View File

@@ -24,9 +24,8 @@ kerberos_alter_egos = {
@authenticated_json_view
@has_request_variables
def webathena_kerberos_login(request, user_profile,
cred=REQ(default=None)):
# type: (HttpRequest, UserProfile, Text) -> HttpResponse
def webathena_kerberos_login(request: HttpRequest, user_profile: UserProfile,
cred: Text=REQ(default=None)) -> HttpResponse:
global kerberos_alter_egos
if cred is None:
return json_error(_("Could not find Kerberos credential"))