From 8895c38202f5f9cd136501cd330185c5b66654f8 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 25 Mar 2020 15:31:44 +0000 Subject: Use MYPY variable instead --- synapse/storage/engines/sqlite.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/synapse/storage/engines/sqlite.py b/synapse/storage/engines/sqlite.py index 12ef92801c..f61a8fb13e 100644 --- a/synapse/storage/engines/sqlite.py +++ b/synapse/storage/engines/sqlite.py @@ -12,16 +12,13 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from __future__ import absolute_import - import struct import threading -from pip._internal.utils.typing import MYPY_CHECK_RUNNING - from synapse.storage.engines import BaseDatabaseEngine -if MYPY_CHECK_RUNNING: +MYPY = False +if MYPY: import sqlite3 -- cgit 1.4.1