mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 07:54:08 -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
|
@ -19,7 +19,9 @@ from synapse.push.rulekinds import PRIORITY_CLASS_INVERSE_MAP, PRIORITY_CLASS_MA
|
|||
from synapse.types import UserID
|
||||
|
||||
|
||||
def format_push_rules_for_user(user: UserID, ruleslist) -> Dict[str, Dict[str, list]]:
|
||||
def format_push_rules_for_user(
|
||||
user: UserID, ruleslist: List
|
||||
) -> Dict[str, Dict[str, list]]:
|
||||
"""Converts a list of rawrules and a enabled map into nested dictionaries
|
||||
to match the Matrix client-server format for push rules"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue