disallow-untyped-defs for synapse.push (#11023)

This commit is contained in:
David Robertson 2021-10-11 17:42:10 +01:00 committed by GitHub
parent 5e29d417fc
commit e0f11ae4a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 10 deletions

View file

@ -403,10 +403,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 = {