diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-05-17 16:29:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:29:06 +0100 |
commit | 6edefef60289cc54e17fd6af838eb66c4973f5f5 (patch) | |
tree | fd254e6d378e0f877c39826b89e8db47785abcdb /synapse/handlers/sync.py | |
parent | Add a new room version for MSC3787's knock+restricted join rule (#12623) (diff) | |
download | synapse-6edefef60289cc54e17fd6af838eb66c4973f5f5.tar.xz |
Add some type hints to datastore (#12717)
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 4be08fe7cb..59b5d497be 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -411,10 +411,10 @@ class SyncHandler: set_tag(SynapseTags.SYNC_RESULT, bool(sync_result)) return sync_result - async def push_rules_for_user(self, user: UserID) -> JsonDict: + async def push_rules_for_user(self, user: UserID) -> Dict[str, Dict[str, list]]: user_id = user.to_string() - rules = await self.store.get_push_rules_for_user(user_id) - rules = format_push_rules_for_user(user, rules) + rules_raw = await self.store.get_push_rules_for_user(user_id) + rules = format_push_rules_for_user(user, rules_raw) return rules async def ephemeral_by_room( |