Merge remote-tracking branch 'upstream/release-v1.45'

This commit is contained in:
Tulir Asokan 2021-10-12 13:54:46 +03:00
commit 80adb0a6ca
196 changed files with 4122 additions and 2177 deletions

View file

@ -396,10 +396,10 @@ class HttpPusher(Pusher):
rejected = resp["rejected"]
return rejected
async def _send_badge(self, badge):
async def _send_badge(self, badge: int) -> None:
"""
Args:
badge (int): number of unread messages
badge: number of unread messages
"""
logger.debug("Sending updated badge count %d to %s", badge, self.name)
d = {