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

This commit is contained in:
nyan-salmon 2017-12-24 15:06:24 +00:00 committed by showell
parent 613856c33b
commit 0fd0332a2c
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ def list_realm_custom_profile_fields(request: HttpRequest, user_profile: UserPro
@require_realm_admin @require_realm_admin
@has_request_variables @has_request_variables
def create_realm_custom_profile_field(request, user_profile, name=REQ(), def create_realm_custom_profile_field(request: HttpRequest,
field_type=REQ(validator=check_int)): user_profile: UserProfile, name: Text=REQ(),
# type: (HttpRequest, UserProfile, Text, int) -> HttpResponse field_type: int=REQ(validator=check_int)) -> HttpResponse:
if not name.strip(): if not name.strip():
return json_error(_("Name cannot be blank.")) return json_error(_("Name cannot be blank."))