mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
zerver/lib: Use Python 3 syntax for typing for several files.
This adds a number of annotations that had been missed in previous passes.
This commit is contained in:
@@ -535,8 +535,7 @@ def handle_push_notification(user_profile_id, missed_message):
|
||||
apns_payload,
|
||||
gcm_payload)
|
||||
except requests.ConnectionError:
|
||||
def failure_processor(event):
|
||||
# type: (Dict[str, Any]) -> None
|
||||
def failure_processor(event: Dict[str, Any]) -> None:
|
||||
logging.warning(
|
||||
"Maximum retries exceeded for trigger:%s event:push_notification" % (
|
||||
event['user_profile_id']))
|
||||
|
||||
Reference in New Issue
Block a user