summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-08-11 22:01:12 +0100
committerErik Johnston <erik@matrix.org>2020-08-11 22:01:12 +0100
commitc0669289156b4cfc0aea282377a181f73ff81e06 (patch)
tree2f9bf7201cb6bf26f85f6590383ca821281f2f89 /synapse
parentHandle optional dependencies for Oidc and Saml (diff)
downloadsynapse-c0669289156b4cfc0aea282377a181f73ff81e06.tar.xz
Add comment explaining cast
Diffstat (limited to 'synapse')
-rw-r--r--synapse/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index c78eb2fe46..9055b97ac3 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -163,6 +163,8 @@ def cache_in_self(builder: T) -> T:
 
         return dep
 
+    # We cast here as we need to tell mypy that `_get` has the same signature as
+    # `builder`.
     return cast(T, _get)