From 0d6e7531fd44473f6151760cdaab3a3dd59de610 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 1 Apr 2020 16:58:06 +0100 Subject: [PATCH] Remove MYPY=False hack --- synapse/replication/tcp/client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index 65e07c301b..904c0449d3 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -16,15 +16,14 @@ """ import logging -from typing import Dict +from typing import TYPE_CHECKING, Dict from twisted.internet.protocol import ReconnectingClientFactory from synapse.replication.slave.storage._base import BaseSlavedStore from synapse.replication.tcp.protocol import ClientReplicationStreamProtocol -MYPY = False -if MYPY: +if TYPE_CHECKING: from synapse.server import HomeServer logger = logging.getLogger(__name__)