Sort imports

This commit is contained in:
Abdo 2025-06-27 20:42:07 +03:00
parent 88e62b063a
commit 2e9c126620
4 changed files with 4 additions and 6 deletions

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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,