diff options
author | Marcus <bubu@bubu1.eu> | 2021-11-30 12:49:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 11:49:20 +0000 |
commit | a9481223d1d5a8b3bf0d7ce2140dd3c919481f4f (patch) | |
tree | 828e25043432e717c0dc6d66ac20a7c6cf80b108 /synapse/push/httppusher.py | |
parent | Convert status codes to `HTTPStatus` in `tests.rest.admin` (#11455) (diff) | |
download | synapse-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.py | 3 |
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 |