Remove MYPY=False hack

pull/7185/head
Erik Johnston 2020-04-01 16:58:06 +01:00
parent 23de3af9af
commit 0d6e7531fd
1 changed files with 2 additions and 3 deletions

View File

@ -16,15 +16,14 @@
""" """
import logging import logging
from typing import Dict from typing import TYPE_CHECKING, Dict
from twisted.internet.protocol import ReconnectingClientFactory from twisted.internet.protocol import ReconnectingClientFactory
from synapse.replication.slave.storage._base import BaseSlavedStore from synapse.replication.slave.storage._base import BaseSlavedStore
from synapse.replication.tcp.protocol import ClientReplicationStreamProtocol from synapse.replication.tcp.protocol import ClientReplicationStreamProtocol
MYPY = False if TYPE_CHECKING:
if MYPY:
from synapse.server import HomeServer from synapse.server import HomeServer
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)