summary refs log tree commit diff
path: root/synapse/storage/databases
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-11 17:42:10 +0100
committerGitHub <noreply@github.com>2021-10-11 17:42:10 +0100
commite0f11ae4a5688a0521f20f36e440c87cfccfd69a (patch)
tree8b10d1d2c36fae9d12adba20e544164206c9adcc /synapse/storage/databases
parentInclude the requirements for [mypy,lint] in [dev] (#11034) (diff)
downloadsynapse-e0f11ae4a5688a0521f20f36e440c87cfccfd69a.tar.xz
disallow-untyped-defs for synapse.push (#11023)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r--synapse/storage/databases/main/push_rule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/push_rule.py b/synapse/storage/databases/main/push_rule.py
index b81e33964a..fc720f5947 100644
--- a/synapse/storage/databases/main/push_rule.py
+++ b/synapse/storage/databases/main/push_rule.py
@@ -14,7 +14,7 @@
 # limitations under the License.
 import abc
 import logging
-from typing import List, Tuple, Union
+from typing import Dict, List, Tuple, Union
 
 from synapse.api.errors import NotFoundError, StoreError
 from synapse.push.baserules import list_with_base_rules
@@ -139,7 +139,7 @@ class PushRulesWorkerStore(
         return _load_rules(rows, enabled_map, use_new_defaults)
 
     @cached(max_entries=5000)
-    async def get_push_rules_enabled_for_user(self, user_id):
+    async def get_push_rules_enabled_for_user(self, user_id) -> Dict[str, bool]:
         results = await self.db_pool.simple_select_list(
             table="push_rules_enable",
             keyvalues={"user_name": user_id},