mirror of https://github.com/zulip/zulip.git
mypy: Use Python 3 type syntax in zerver/webhooks/basecamp/view.py.
This commit is contained in:
parent
d038e7ea6b
commit
f07d39353a
|
@ -24,9 +24,9 @@ TODO_TEMPLATE = "{user_name} {verb} the todo task [{title}]({url})"
|
||||||
|
|
||||||
@api_key_only_webhook_view('Basecamp')
|
@api_key_only_webhook_view('Basecamp')
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_basecamp_webhook(request, user_profile, payload=REQ(argument_type='body'),
|
def api_basecamp_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||||
stream=REQ(default='basecamp')):
|
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||||
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse
|
stream: Text=REQ(default='basecamp')) -> HttpResponse:
|
||||||
event = get_event_type(payload)
|
event = get_event_type(payload)
|
||||||
|
|
||||||
if event not in SUPPORT_EVENTS:
|
if event not in SUPPORT_EVENTS:
|
||||||
|
|
Loading…
Reference in New Issue