diff options
author | David Robertson <davidr@element.io> | 2021-10-07 11:57:17 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2021-10-07 11:57:17 +0100 |
commit | e3e87568ca777206e0bc961b51a8d4606fb0ad7c (patch) | |
tree | bef13340a126c232d54f8890167a280550f3c872 /synapse/push/mailer.py | |
parent | Make mypy happy by referring to struct_rusage (diff) | |
download | synapse-e3e87568ca777206e0bc961b51a8d4606fb0ad7c.tar.xz |
Workaround https://github.com/python/mypy/issues/6463
Diffstat (limited to '')
-rw-r--r-- | synapse/push/mailer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index e38e3c5d44..ce299ba3da 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -892,7 +892,7 @@ def safe_text(raw_text: str) -> jinja2.Markup: A Markup object ready to safely use in a Jinja template. """ return jinja2.Markup( - bleach.linkify(bleach.clean(raw_text, tags=[], attributes={}, strip=False)) + bleach.linkify(bleach.clean(raw_text, tags=[], attributes=[], strip=False)) ) |