Skip to content

Commit 23291e7

Browse files
authored
Fix circular import (ankitects#3007)
1 parent a2301c5 commit 23291e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylib/anki/importing/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from typing import Any, Callable, Sequence, Type, Union
55

6-
from anki import hooks
6+
import anki
77
from anki.collection import Collection
88
from anki.importing.anki2 import Anki2Importer
99
from anki.importing.apkg import AnkiPackageImporter
@@ -26,5 +26,5 @@ def importers(col: Collection) -> Sequence[tuple[str, type[Importer]]]:
2626
(col.tr.importing_supermemo_xml_export_xml(), SupermemoXmlImporter),
2727
(col.tr.importing_pauker_18_lesson_paugz(), PaukerImporter),
2828
]
29-
hooks.importing_importers(importers)
29+
anki.hooks.importing_importers(importers)
3030
return importers

0 commit comments

Comments
 (0)