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

This commit is contained in:
picapi_ 2017-12-06 18:37:30 +00:00 committed by Greg Price
parent 0fa9a489d5
commit 3fb9803398
1 changed files with 3 additions and 3 deletions

View File

@ -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']