summary refs log tree commit diff
path: root/synapse/app/_base.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-08-15 14:51:05 +0100
committerDavid Robertson <davidr@element.io>2022-08-15 14:51:05 +0100
commit19e5d44886c9f43e96c1c29377aad3ce89fa8868 (patch)
tree1eff3bd7485aba86450cea18a91d300dd76200e0 /synapse/app/_base.py
parentClarifications for event push action processing. (#13485) (diff)
downloadsynapse-19e5d44886c9f43e96c1c29377aad3ce89fa8868.tar.xz
Revert "Update locked versions of mypy and mypy-zope (#13521)"
This reverts commit f383b9b3eceaa082d5ae690550fe41460b711779. Other PRs
were seeing mypy failures that looked to be related to mypy-zope.
Confusingly, we didn't see this on #13521.

Revert this for now and investigate later.
Diffstat (limited to 'synapse/app/_base.py')
-rw-r--r--synapse/app/_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py
index 55d135fa03..923891ae0d 100644
--- a/synapse/app/_base.py
+++ b/synapse/app/_base.py
@@ -98,7 +98,9 @@ def register_sighup(func: Callable[P, None], *args: P.args, **kwargs: P.kwargs)
         func: Function to be called when sent a SIGHUP signal.
         *args, **kwargs: args and kwargs to be passed to the target function.
     """
-    _sighup_callbacks.append((func, args, kwargs))
+    # This type-ignore should be redundant once we use a mypy release with
+    # https://github.com/python/mypy/pull/12668.
+    _sighup_callbacks.append((func, args, kwargs))  # type: ignore[arg-type]
 
 
 def start_worker_reactor(