mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
mypy: Use Python 3 type syntax in zerver/webhooks/zendesk/view.py.
This commit is contained in:
@@ -16,9 +16,9 @@ def truncate(string: Text, length: int) -> Text:
|
|||||||
|
|
||||||
@authenticated_rest_api_view(is_webhook=True)
|
@authenticated_rest_api_view(is_webhook=True)
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_zendesk_webhook(request, user_profile, ticket_title=REQ(), ticket_id=REQ(),
|
def api_zendesk_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||||
message=REQ(), stream=REQ(default="zendesk")):
|
ticket_title: str=REQ(), ticket_id: str=REQ(),
|
||||||
# type: (HttpRequest, UserProfile, str, str, str, str) -> HttpResponse
|
message: str=REQ(), stream: str=REQ(default="zendesk")) -> HttpResponse:
|
||||||
"""
|
"""
|
||||||
Zendesk uses trigers with message templates. This webhook uses the
|
Zendesk uses trigers with message templates. This webhook uses the
|
||||||
ticket_id and ticket_title to create a subject. And passes with zendesk
|
ticket_id and ticket_title to create a subject. And passes with zendesk
|
||||||
|
|||||||
Reference in New Issue
Block a user