summary refs log tree commit diff
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-11-01 10:30:43 +0000
committerGitHub <noreply@github.com>2022-11-01 10:30:43 +0000
commitb922b54b6143f13c0786a18fcbb5f55724ea72fc (patch)
tree69b67b240e14396b715bc528046841b73e25e831
parentFix dehydrated device REST checks (#14336) (diff)
downloadsynapse-b922b54b6143f13c0786a18fcbb5f55724ea72fc.tar.xz
Fix type annotation causing import time error in the Complement forking launcher. (#14084)
Co-authored-by: David Robertson <davidr@element.io>
-rw-r--r--changelog.d/14084.misc1
-rw-r--r--synapse/app/complement_fork_starter.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/changelog.d/14084.misc b/changelog.d/14084.misc
new file mode 100644
index 0000000000..988e55f437
--- /dev/null
+++ b/changelog.d/14084.misc
@@ -0,0 +1 @@
+Fix type annotation causing import time error in the Complement forking launcher.
\ No newline at end of file
diff --git a/synapse/app/complement_fork_starter.py b/synapse/app/complement_fork_starter.py
index b22f315453..8c0f4a57e7 100644
--- a/synapse/app/complement_fork_starter.py
+++ b/synapse/app/complement_fork_starter.py
@@ -55,13 +55,13 @@ import os
 import signal
 import sys
 from types import FrameType
-from typing import Any, Callable, List, Optional
+from typing import Any, Callable, Dict, List, Optional
 
 from twisted.internet.main import installReactor
 
 # a list of the original signal handlers, before we installed our custom ones.
 # We restore these in our child processes.
-_original_signal_handlers: dict[int, Any] = {}
+_original_signal_handlers: Dict[int, Any] = {}
 
 
 class ProxiedReactor: