summary refs log tree commit diff
path: root/synapse/module_api
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-03-13 17:05:57 +0000
committerGitHub <noreply@github.com>2024-03-13 17:05:57 +0000
commite161103b46e9e85b95575ad12b34eb7ec570e0a4 (patch)
tree968de33935c76f2d2e0c560819684e7859a067f6 /synapse/module_api
parentBump dawidd6/action-download-artifact from 3.1.1 to 3.1.2 (#16960) (diff)
downloadsynapse-e161103b46e9e85b95575ad12b34eb7ec570e0a4.tar.xz
Bump mypy from 1.5.1 to 1.8.0 (#16901)
Diffstat (limited to 'synapse/module_api')
-rw-r--r--synapse/module_api/callbacks/spamchecker_callbacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/module_api/callbacks/spamchecker_callbacks.py b/synapse/module_api/callbacks/spamchecker_callbacks.py
index 6ec56a7f14..17079ff781 100644
--- a/synapse/module_api/callbacks/spamchecker_callbacks.py
+++ b/synapse/module_api/callbacks/spamchecker_callbacks.py
@@ -455,7 +455,7 @@ class SpamCheckerModuleApiCallbacks:
                     # mypy complains that we can't reach this code because of the
                     # return type in CHECK_EVENT_FOR_SPAM_CALLBACK, but we don't know
                     # for sure that the module actually returns it.
-                    logger.warning(
+                    logger.warning(  # type: ignore[unreachable]
                         "Module returned invalid value, rejecting message as spam"
                     )
                     res = "This message has been rejected as probable spam"