mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
mypy: Use Python 3 type syntax in zerver/views.
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user