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

This commit is contained in:
picapi_
2017-12-05 17:41:55 +00:00
committed by showell
parent 21e629f351
commit c2ef7e7ce5

View File

@@ -105,9 +105,9 @@ def format_freshdesk_ticket_creation_message(ticket: TicketDict) -> str:
@authenticated_rest_api_view(is_webhook=True) @authenticated_rest_api_view(is_webhook=True)
@has_request_variables @has_request_variables
def api_freshdesk_webhook(request, user_profile, payload=REQ(argument_type='body'), def api_freshdesk_webhook(request: HttpRequest, user_profile: UserProfile,
stream=REQ(default='freshdesk')): payload: Dict[str, Any]=REQ(argument_type='body'),
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse stream: Text=REQ(default='freshdesk')) -> HttpResponse:
ticket_data = payload["freshdesk_webhook"] ticket_data = payload["freshdesk_webhook"]
required_keys = [ required_keys = [