mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
mypy: Use Python 3 type syntax in zerver/webhooks/ifttt/view.py.
This commit is contained in:
@@ -11,10 +11,9 @@ from zerver.models import UserProfile
|
||||
|
||||
@api_key_only_webhook_view('IFTTT')
|
||||
@has_request_variables
|
||||
def api_iftt_app_webhook(request, user_profile,
|
||||
payload=REQ(argument_type='body'),
|
||||
stream=REQ(default='ifttt')):
|
||||
# type: (HttpRequest, UserProfile, Dict[str, Any], str) -> HttpResponse
|
||||
def api_iftt_app_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||
stream: str=REQ(default='ifttt')) -> HttpResponse:
|
||||
subject = payload.get('subject')
|
||||
content = payload.get('content')
|
||||
if subject is None:
|
||||
|
||||
Reference in New Issue
Block a user