mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:14:49 -04:00
disallow-untyped-defs for synapse.push (#11023)
This commit is contained in:
parent
5e29d417fc
commit
e0f11ae4a5
7 changed files with 28 additions and 10 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue