summary refs log tree commit diff
path: root/synapse/util/manhole.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-08-15 17:07:13 +0100
committerGitHub <noreply@github.com>2023-08-15 16:07:13 +0000
commit47c629bb27c0a479068ed5da184dffe7a6cb0fca (patch)
tree157f2e5a00828de56dbb8b9ea217367fd60b693b /synapse/util/manhole.py
parentRun pyupgrade for python 3.7 & 3.8. (#16110) (diff)
downloadsynapse-47c629bb27c0a479068ed5da184dffe7a6cb0fca.tar.xz
Attempt to fix twisted trunk (#16115)
Diffstat (limited to '')
-rw-r--r--synapse/util/manhole.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/util/manhole.py b/synapse/util/manhole.py
index 48b8195ca1..8cb766860e 100644
--- a/synapse/util/manhole.py
+++ b/synapse/util/manhole.py
@@ -98,7 +98,9 @@ def manhole(settings: ManholeConfig, globals: Dict[str, Any]) -> ServerFactory:
         SynapseManhole, dict(globals, __name__="__console__")
     )
 
-    factory = manhole_ssh.ConchFactory(portal.Portal(rlm, [checker]))
+    # type-ignore: This is an error in Twisted's annotations. See
+    # https://github.com/twisted/twisted/issues/11812 and /11813 .
+    factory = manhole_ssh.ConchFactory(portal.Portal(rlm, [checker]))  # type: ignore[arg-type]
 
     # conch has the wrong type on these dicts (says bytes to bytes,
     # should be bytes to Keys judging by how it's used).