From 4ac60a17a5ec14d228b7d12846a4db497652d442 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 25 Mar 2020 15:46:28 +0000 Subject: [PATCH] Possibly appease mypy --- synapse/storage/engines/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synapse/storage/engines/__init__.py b/synapse/storage/engines/__init__.py index b3ab98c0fc..396143c66c 100644 --- a/synapse/storage/engines/__init__.py +++ b/synapse/storage/engines/__init__.py @@ -16,6 +16,11 @@ import platform from ._base import BaseDatabaseEngine, IncorrectDatabaseSetup +MYPY = False +if MYPY: + from .sqlite import Sqlite3Engine + from .postgres import PostgresEngine + def create_engine(database_config) -> BaseDatabaseEngine: name = database_config["name"]