diff options
author | Erik Johnston <erik@matrix.org> | 2020-08-11 22:01:12 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-08-11 22:01:12 +0100 |
commit | c0669289156b4cfc0aea282377a181f73ff81e06 (patch) | |
tree | 2f9bf7201cb6bf26f85f6590383ca821281f2f89 | |
parent | Handle optional dependencies for Oidc and Saml (diff) | |
download | synapse-c0669289156b4cfc0aea282377a181f73ff81e06.tar.xz |
Add comment explaining cast
Diffstat (limited to '')
-rw-r--r-- | synapse/server.py | 2 |
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) |