mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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.
This commit is contained in:
parent
86d6352047
commit
2fcc78f218
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ from threading import Thread
|
||||||
|
|
||||||
from send2trash import send2trash
|
from send2trash import send2trash
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from anki import Collection
|
from anki.storage import Collection
|
||||||
from anki.utils import isWin, isMac, intTime, splitFields, ids2str, \
|
from anki.utils import isWin, isMac, intTime, splitFields, ids2str, \
|
||||||
devMode
|
devMode
|
||||||
from anki.hooks import runHook, addHook, runFilter
|
from anki.hooks import runHook, addHook, runFilter
|
||||||
|
|
|
@ -5,7 +5,7 @@ import time
|
||||||
import gc
|
import gc
|
||||||
|
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from anki import Collection
|
from anki.storage import Collection
|
||||||
from anki.sync import Syncer, RemoteServer, FullSyncer, MediaSyncer, \
|
from anki.sync import Syncer, RemoteServer, FullSyncer, MediaSyncer, \
|
||||||
RemoteMediaServer
|
RemoteMediaServer
|
||||||
from anki.hooks import addHook, remHook
|
from anki.hooks import addHook, remHook
|
||||||
|
|
Loading…
Reference in a new issue