From d038e7ea6b05c48373b60b117c71d9461e41d41f Mon Sep 17 00:00:00 2001 From: picapi_ Date: Wed, 6 Dec 2017 18:38:34 +0000 Subject: [PATCH] mypy: Use Python 3 type syntax in zerver/webhooks/bitbucket2/view.py. --- zerver/webhooks/bitbucket2/view.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zerver/webhooks/bitbucket2/view.py b/zerver/webhooks/bitbucket2/view.py index 1387d29399..3f415f6a24 100644 --- a/zerver/webhooks/bitbucket2/view.py +++ b/zerver/webhooks/bitbucket2/view.py @@ -44,9 +44,10 @@ class UnknownTriggerType(Exception): @api_key_only_webhook_view('Bitbucket2') @has_request_variables -def api_bitbucket2_webhook(request, user_profile, payload=REQ(argument_type='body'), - stream=REQ(default='bitbucket'), branches=REQ(default=None)): - # type: (HttpRequest, UserProfile, Dict[str, Any], str, Optional[Text]) -> HttpResponse +def api_bitbucket2_webhook(request: HttpRequest, user_profile: UserProfile, + payload: Dict[str, Any]=REQ(argument_type='body'), + stream: str=REQ(default='bitbucket'), + branches: Optional[Text]=REQ(default=None)) -> HttpResponse: type = get_type(request, payload) if type != 'push': subject = get_subject_based_on_type(payload, type)