From e5c05f128ab752aa256e6a46742ef7f224871e50 Mon Sep 17 00:00:00 2001 From: Arseny Chekanov Date: Sun, 10 Dec 2017 00:55:15 +0300 Subject: [PATCH] mypy: Use Python 3 type syntax in zerver/views/realm_filters.py. --- zerver/views/realm_filters.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zerver/views/realm_filters.py b/zerver/views/realm_filters.py index e8641679a8..f396d61b50 100644 --- a/zerver/views/realm_filters.py +++ b/zerver/views/realm_filters.py @@ -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,