Fix circular import (#3007)

This commit is contained in:
Abdo 2024-02-14 13:23:14 +03:00 committed by GitHub
parent a2301c58ee
commit 23291e7172
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
from typing import Any, Callable, Sequence, Type, Union from typing import Any, Callable, Sequence, Type, Union
from anki import hooks import anki
from anki.collection import Collection from anki.collection import Collection
from anki.importing.anki2 import Anki2Importer from anki.importing.anki2 import Anki2Importer
from anki.importing.apkg import AnkiPackageImporter 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_supermemo_xml_export_xml(), SupermemoXmlImporter),
(col.tr.importing_pauker_18_lesson_paugz(), PaukerImporter), (col.tr.importing_pauker_18_lesson_paugz(), PaukerImporter),
] ]
hooks.importing_importers(importers) anki.hooks.importing_importers(importers)
return importers return importers