mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
mypy: Use Python 3 type syntax in crashlytics/view.py
This commit is contained in:
committed by
Greg Price
parent
1fa5233923
commit
2db270be4b
@@ -21,9 +21,9 @@ VERIFICATION_EVENT = 'verification'
|
|||||||
|
|
||||||
@api_key_only_webhook_view('Crashlytics')
|
@api_key_only_webhook_view('Crashlytics')
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
def api_crashlytics_webhook(request, user_profile, payload=REQ(argument_type='body'),
|
def api_crashlytics_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||||
stream=REQ(default='crashlytics')):
|
payload: Dict[str, Any]=REQ(argument_type='body'),
|
||||||
# type: (HttpRequest, UserProfile, Dict[str, Any], Text) -> HttpResponse
|
stream: Text=REQ(default='crashlytics')) -> HttpResponse:
|
||||||
event = payload['event']
|
event = payload['event']
|
||||||
if event == VERIFICATION_EVENT:
|
if event == VERIFICATION_EVENT:
|
||||||
subject = CRASHLYTICS_SETUP_SUBJECT_TEMPLATE
|
subject = CRASHLYTICS_SETUP_SUBJECT_TEMPLATE
|
||||||
|
|||||||
Reference in New Issue
Block a user