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')
|
||||
@has_request_variables
|
||||
def api_basecamp_webhook(request, user_profile, payload=REQ(argument_type='body'),
|
||||
stream=REQ(default='basecamp')):
|
||||
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse
|
||||
def api_basecamp_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||
stream: Text=REQ(default='basecamp')) -> HttpResponse:
|
||||
event = get_event_type(payload)
|
||||
|
||||
if event not in SUPPORT_EVENTS:
|
||||
|
|
Loading…
Reference in New Issue