From 7dbbbad914a70620f83ed3d6b72dd64f95988e53 Mon Sep 17 00:00:00 2001 From: Abdo Date: Wed, 28 May 2025 11:43:48 +0300 Subject: [PATCH] Fix lint errors --- qt/aqt/mediasrv.py | 3 ++- ts/routes/editor/editor-toolbar/EditorToolbar.svelte | 1 + ts/routes/editor/editor-toolbar/InlineButtons.svelte | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 70b9673a4..bf7f4d94a 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -33,7 +33,6 @@ import aqt.operations from anki import frontend_pb2, generic_pb2, hooks from anki.collection import OpChanges, OpChangesOnly, Progress, SearchNode from anki.decks import UpdateDeckConfigs -from anki.errors import NotFoundError from anki.scheduler.v3 import SchedulingStatesWithContext, SetSchedulingStatesRequest from anki.utils import dev_mode from aqt.changenotetype import ChangeNotetypeDialog @@ -640,10 +639,12 @@ def set_setting_json(setter: Callable[[str, Any], Any]) -> bytes: def get_profile_config_json() -> bytes: + assert aqt.mw.pm.profile is not None return get_setting_json(aqt.mw.pm.profile.get) def set_profile_config_json() -> bytes: + assert aqt.mw.pm.profile is not None return set_setting_json(aqt.mw.pm.profile.__setitem__) diff --git a/ts/routes/editor/editor-toolbar/EditorToolbar.svelte b/ts/routes/editor/editor-toolbar/EditorToolbar.svelte index 1ea545f8f..10d11b28e 100644 --- a/ts/routes/editor/editor-toolbar/EditorToolbar.svelte +++ b/ts/routes/editor/editor-toolbar/EditorToolbar.svelte @@ -63,6 +63,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import RichTextClozeButtons from "./RichTextClozeButtons.svelte"; import TemplateButtons from "./TemplateButtons.svelte"; import type { InlineButtonsAPI } from "./InlineButtons.svelte"; + export let size: number; export let wrap: boolean; diff --git a/ts/routes/editor/editor-toolbar/InlineButtons.svelte b/ts/routes/editor/editor-toolbar/InlineButtons.svelte index 71da1e2f8..586137909 100644 --- a/ts/routes/editor/editor-toolbar/InlineButtons.svelte +++ b/ts/routes/editor/editor-toolbar/InlineButtons.svelte @@ -5,6 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html