mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
zerver/webhooks: Use python 3 syntax for typing.
Tweaked by tabbott to fix various line-wrapping issues.
This commit is contained in:
@@ -6,8 +6,7 @@ from .github.view import api_github_landing
|
||||
# Since this dispatcher is an API-style endpoint, it needs to be
|
||||
# explicitly marked as CSRF-exempt
|
||||
@csrf_exempt
|
||||
def api_github_webhook_dispatch(request):
|
||||
# type: (HttpRequest) -> HttpResponse
|
||||
def api_github_webhook_dispatch(request: HttpRequest) -> HttpResponse:
|
||||
if request.META.get('HTTP_X_GITHUB_EVENT'):
|
||||
return api_github_webhook(request)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user