From 3fb98033983aa41f944d148a31fcb026ad6d652e Mon Sep 17 00:00:00 2001 From: picapi_ Date: Wed, 6 Dec 2017 18:37:30 +0000 Subject: [PATCH] mypy: Use Python 3 type syntax in zerver/webhooks/teamcity/view.py. --- zerver/webhooks/teamcity/view.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/webhooks/teamcity/view.py b/zerver/webhooks/teamcity/view.py index f7b7ae2d64..50c16d970f 100644 --- a/zerver/webhooks/teamcity/view.py +++ b/zerver/webhooks/teamcity/view.py @@ -37,9 +37,9 @@ def get_teamcity_property_value(property_list: List[Dict[str, str]], name: str) @api_key_only_webhook_view('Teamcity') @has_request_variables -def api_teamcity_webhook(request, user_profile, payload=REQ(argument_type='body'), - stream=REQ(default='teamcity')): - # type: (HttpRequest, UserProfile, Dict[str, Any], str) -> HttpResponse +def api_teamcity_webhook(request: HttpRequest, user_profile: UserProfile, + payload: Dict[str, Any]=REQ(argument_type='body'), + stream: str=REQ(default='teamcity')) -> HttpResponse: message = payload['build'] build_name = message['buildFullName']