diff options
author | David Robertson <davidr@element.io> | 2021-10-11 17:42:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 17:42:10 +0100 |
commit | e0f11ae4a5688a0521f20f36e440c87cfccfd69a (patch) | |
tree | 8b10d1d2c36fae9d12adba20e544164206c9adcc /synapse/push/clientformat.py | |
parent | Include the requirements for [mypy,lint] in [dev] (#11034) (diff) | |
download | synapse-e0f11ae4a5688a0521f20f36e440c87cfccfd69a.tar.xz |
disallow-untyped-defs for synapse.push (#11023)
Diffstat (limited to 'synapse/push/clientformat.py')
-rw-r--r-- | synapse/push/clientformat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/push/clientformat.py b/synapse/push/clientformat.py index 1fc9716a34..c5708cd888 100644 --- a/synapse/push/clientformat.py +++ b/synapse/push/clientformat.py @@ -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""" |