mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
mypy: Use Python 3 type syntax in zerver/webhooks/circleci/view.py
This commit is contained in:
@@ -18,9 +18,9 @@ FAILED_STATUS = 'failed'
|
|||||||
|
|
||||||
@api_key_only_webhook_view('CircleCI')
|
@api_key_only_webhook_view('CircleCI')
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_circleci_webhook(request, user_profile, payload=REQ(argument_type='body'),
|
def api_circleci_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||||
stream=REQ(default='circleci')):
|
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||||
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse
|
stream: Text=REQ(default='circleci')) -> HttpResponse:
|
||||||
payload = payload['payload']
|
payload = payload['payload']
|
||||||
subject = get_subject(payload)
|
subject = get_subject(payload)
|
||||||
body = get_body(payload)
|
body = get_body(payload)
|
||||||
|
|||||||
Reference in New Issue
Block a user