mypy: Use Python 3 type syntax in zerver/webhooks/basecamp/view.py.

This commit is contained in:
picapi_ 2017-12-06 18:38:47 +00:00 committed by Greg Price
parent d038e7ea6b
commit f07d39353a
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ TODO_TEMPLATE = "{user_name} {verb} the todo task [{title}]({url})"
@api_key_only_webhook_view('Basecamp') @api_key_only_webhook_view('Basecamp')
@has_request_variables @has_request_variables
def api_basecamp_webhook(request, user_profile, payload=REQ(argument_type='body'), def api_basecamp_webhook(request: HttpRequest, user_profile: UserProfile,
stream=REQ(default='basecamp')): payload: Dict[str, Any]=REQ(argument_type='body'),
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse stream: Text=REQ(default='basecamp')) -> HttpResponse:
event = get_event_type(payload) event = get_event_type(payload)
if event not in SUPPORT_EVENTS: if event not in SUPPORT_EVENTS: