mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
views: Change use of typing.Text to str.
This is the first part of a general migration of our typing codebase to use the simpler `str` for strings.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, List, Dict, Optional, Callable, Tuple, Iterable, Sequence, Text
|
||||
from typing import Any, List, Dict, Optional, Callable, Tuple, Iterable, Sequence
|
||||
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse, HttpRequest
|
||||
@@ -25,7 +25,7 @@ kerberos_alter_egos = {
|
||||
@authenticated_json_view
|
||||
@has_request_variables
|
||||
def webathena_kerberos_login(request: HttpRequest, user_profile: UserProfile,
|
||||
cred: Text=REQ(default=None)) -> HttpResponse:
|
||||
cred: str=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