From 2fcc78f21820e98143f2604daa6f4dc5c6228229 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Dec 2019 19:07:22 +1000 Subject: [PATCH] avoid importing Collection from root module even with this change, sadly we can't use pytype on the GUI code for now - it does not support external .pyi files at the moment. --- aqt/main.py | 2 +- aqt/sync.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/main.py b/aqt/main.py index 133307bcb..9244ee33c 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -13,7 +13,7 @@ from threading import Thread from send2trash import send2trash from aqt.qt import * -from anki import Collection +from anki.storage import Collection from anki.utils import isWin, isMac, intTime, splitFields, ids2str, \ devMode from anki.hooks import runHook, addHook, runFilter diff --git a/aqt/sync.py b/aqt/sync.py index 6837e159c..c2a7e74c7 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -5,7 +5,7 @@ import time import gc from aqt.qt import * -from anki import Collection +from anki.storage import Collection from anki.sync import Syncer, RemoteServer, FullSyncer, MediaSyncer, \ RemoteMediaServer from anki.hooks import addHook, remHook