mirror of
https://github.com/zulip/zulip.git
synced 2025-11-20 06:28:23 +00:00
mypy: Use Python 3 type syntax in zerver/webhooks/freshdesk/view.py.
This commit is contained in:
@@ -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 = [
|
||||||
|
|||||||
Reference in New Issue
Block a user