mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 11:24:59 -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
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue