From f07d39353a2e305cb85fabba704f6ddf54aff0cd Mon Sep 17 00:00:00 2001 From: picapi_ Date: Wed, 6 Dec 2017 18:38:47 +0000 Subject: [PATCH] mypy: Use Python 3 type syntax in zerver/webhooks/basecamp/view.py. --- zerver/webhooks/basecamp/view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/webhooks/basecamp/view.py b/zerver/webhooks/basecamp/view.py index 2336c29366..a77e876edd 100644 --- a/zerver/webhooks/basecamp/view.py +++ b/zerver/webhooks/basecamp/view.py @@ -24,9 +24,9 @@ TODO_TEMPLATE = "{user_name} {verb} the todo task [{title}]({url})" @api_key_only_webhook_view('Basecamp') @has_request_variables -def api_basecamp_webhook(request, user_profile, payload=REQ(argument_type='body'), - stream=REQ(default='basecamp')): - # type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse +def api_basecamp_webhook(request: HttpRequest, user_profile: UserProfile, + payload: Dict[str, Any]=REQ(argument_type='body'), + stream: Text=REQ(default='basecamp')) -> HttpResponse: event = get_event_type(payload) if event not in SUPPORT_EVENTS: