mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix circular import (#3007)
This commit is contained in:
parent
a2301c58ee
commit
23291e7172
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
from typing import Any, Callable, Sequence, Type, Union
|
||||
|
||||
from anki import hooks
|
||||
import anki
|
||||
from anki.collection import Collection
|
||||
from anki.importing.anki2 import Anki2Importer
|
||||
from anki.importing.apkg import AnkiPackageImporter
|
||||
|
@ -26,5 +26,5 @@ def importers(col: Collection) -> Sequence[tuple[str, type[Importer]]]:
|
|||
(col.tr.importing_supermemo_xml_export_xml(), SupermemoXmlImporter),
|
||||
(col.tr.importing_pauker_18_lesson_paugz(), PaukerImporter),
|
||||
]
|
||||
hooks.importing_importers(importers)
|
||||
anki.hooks.importing_importers(importers)
|
||||
return importers
|
||||
|
|
Loading…
Reference in a new issue