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

This commit is contained in:
Arseny Chekanov 2017-12-10 00:55:15 +03:00 committed by showell
parent c2c023f0cf
commit e5c05f128a
1 changed files with 2 additions and 3 deletions

View File

@ -22,9 +22,8 @@ def list_filters(request: HttpRequest, user_profile: UserProfile) -> HttpRespons
@require_realm_admin
@has_request_variables
def create_filter(request, user_profile, pattern=REQ(),
url_format_string=REQ()):
# type: (HttpRequest, UserProfile, Text, Text) -> HttpResponse
def create_filter(request: HttpRequest, user_profile: UserProfile, pattern: Text=REQ(),
url_format_string: Text=REQ()) -> HttpResponse:
try:
filter_id = do_add_realm_filter(
realm=user_profile.realm,