mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 14:03:55 -05:00
Sort imports
This commit is contained in:
parent
88e62b063a
commit
2e9c126620
4 changed files with 4 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
os.environ["REPO_ROOT"] = os.path.abspath(".")
|
||||
subprocess.run(["out/pyenv/bin/sphinx-apidoc", "-o", "out/python/sphinx", "pylib", "qt"], check=True)
|
||||
subprocess.run(["out/pyenv/bin/sphinx-build", "out/python/sphinx", "out/python/sphinx/html"], check=True)
|
||||
|
|
|
|||
|
|
@ -134,9 +134,8 @@ IMPORTERS: list[type[Importer]] = [
|
|||
|
||||
|
||||
def legacy_file_endings(col: Collection) -> list[str]:
|
||||
from anki.importing import AnkiPackageImporter
|
||||
from anki.importing import AnkiPackageImporter, TextImporter, importers
|
||||
from anki.importing import MnemosyneImporter as LegacyMnemosyneImporter
|
||||
from anki.importing import TextImporter, importers
|
||||
|
||||
return [
|
||||
ext
|
||||
|
|
|
|||
|
|
@ -21,13 +21,11 @@ from anki.scheduler.base import ScheduleCardsAsNew
|
|||
from anki.scheduler.v3 import (
|
||||
CardAnswer,
|
||||
QueuedCards,
|
||||
)
|
||||
from anki.scheduler.v3 import Scheduler as V3Scheduler
|
||||
from anki.scheduler.v3 import (
|
||||
SchedulingContext,
|
||||
SchedulingStates,
|
||||
SetSchedulingStatesRequest,
|
||||
)
|
||||
from anki.scheduler.v3 import Scheduler as V3Scheduler
|
||||
from anki.tags import MARKED_TAG
|
||||
from anki.types import assert_exhaustive
|
||||
from anki.utils import is_mac
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ from anki.utils import (
|
|||
version_with_build,
|
||||
)
|
||||
from aqt.qt import *
|
||||
from aqt.qt import QT_VERSION_STR # noqa: F401
|
||||
from aqt.qt import (
|
||||
PYQT_VERSION_STR,
|
||||
QT_VERSION_STR, # noqa: F401
|
||||
QAction,
|
||||
QApplication,
|
||||
QCheckBox,
|
||||
|
|
|
|||
Loading…
Reference in a new issue