diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-08 07:26:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 07:26:05 -0500 |
commit | d8bab6793c75774db4bde8aeec6897b607e08799 (patch) | |
tree | 6c325df81913ef6374577c94ab81cac9279af2f6 /synapse/server.py | |
parent | Fix a bug in background updates wherein background updates are never run usin... (diff) | |
download | synapse-d8bab6793c75774db4bde8aeec6897b607e08799.tar.xz |
Fix incorrect type hints for txredis. (#12042)
Some properties were marked as RedisProtocol instead of ConnectionHandler, which wraps RedisProtocol instance(s).
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py index b5e2a319bc..46a64418ea 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -145,7 +145,7 @@ from synapse.util.stringutils import random_string logger = logging.getLogger(__name__) if TYPE_CHECKING: - from txredisapi import RedisProtocol + from txredisapi import ConnectionHandler from synapse.handlers.oidc import OidcHandler from synapse.handlers.saml import SamlHandler @@ -807,7 +807,7 @@ class HomeServer(metaclass=abc.ABCMeta): return AccountHandler(self) @cache_in_self - def get_outbound_redis_connection(self) -> "RedisProtocol": + def get_outbound_redis_connection(self) -> "ConnectionHandler": """ The Redis connection used for replication. |