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

This commit is contained in:
Callum Fraser 2017-12-18 14:09:16 +00:00 committed by showell
parent 52f0c4472e
commit 4508264f25
1 changed files with 3 additions and 4 deletions

View File

@ -12,10 +12,9 @@ from zerver.models import UserProfile
@api_key_only_webhook_view('OpsGenie') @api_key_only_webhook_view('OpsGenie')
@has_request_variables @has_request_variables
def api_opsgenie_webhook(request, user_profile, def api_opsgenie_webhook(request: HttpRequest, user_profile: UserProfile,
payload=REQ(argument_type='body'), payload: Dict[str, Any]=REQ(argument_type='body'),
stream=REQ(default='opsgenie')): stream: Text=REQ(default='opsgenie')) -> HttpResponse:
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse
# construct the body of the message # construct the body of the message
info = {"additional_info": '', info = {"additional_info": '',