Skip to content

Commit 24aad4f

Browse files
committed
Try disabling the SQLite thread check
1 parent 0f160f8 commit 24aad4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/metastore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def close(self) -> None:
157157
def connect_db(db_file: str, sync_off: bool = False) -> sqlite3.Connection:
158158
import sqlite3.dbapi2
159159

160-
db = sqlite3.dbapi2.connect(db_file)
160+
db = sqlite3.dbapi2.connect(db_file, check_same_thread=False)
161161
if sync_off:
162162
# This is a bit unfortunate (as we may get corrupt cache after e.g. Ctrl + C),
163163
# but without this flag, commits are *very* slow, especially when using HDDs,

0 commit comments

Comments
 (0)