summary refs log tree commit diff
path: root/synapse/push/httppusher.py
diff options
context:
space:
mode:
authorMarcus <bubu@bubu1.eu>2021-11-30 12:49:20 +0100
committerGitHub <noreply@github.com>2021-11-30 11:49:20 +0000
commita9481223d1d5a8b3bf0d7ce2140dd3c919481f4f (patch)
tree828e25043432e717c0dc6d66ac20a7c6cf80b108 /synapse/push/httppusher.py
parentConvert status codes to `HTTPStatus` in `tests.rest.admin` (#11455) (diff)
downloadsynapse-a9481223d1d5a8b3bf0d7ce2140dd3c919481f4f.tar.xz
Improved push typing (#11409)
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Diffstat (limited to 'synapse/push/httppusher.py')
-rw-r--r--synapse/push/httppusher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index dbf4ad7f97..3fa603ccb7 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -26,6 +26,7 @@ from synapse.events import EventBase
 from synapse.logging import opentracing
 from synapse.metrics.background_process_metrics import run_as_background_process
 from synapse.push import Pusher, PusherConfig, PusherConfigException
+from synapse.storage.databases.main.event_push_actions import HttpPushAction
 
 from . import push_rule_evaluator, push_tools
 
@@ -273,7 +274,7 @@ class HttpPusher(Pusher):
                     )
                     break
 
-    async def _process_one(self, push_action: dict) -> bool:
+    async def _process_one(self, push_action: HttpPushAction) -> bool:
         if "notify" not in push_action["actions"]:
             return True