Fix lint errors

This commit is contained in:
Abdo 2025-05-28 11:43:48 +03:00
parent 2ee708f9d9
commit 7dbbbad914
3 changed files with 4 additions and 1 deletions

View file

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

View file

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

View file

@ -5,6 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<script context="module" lang="ts">
import type { DefaultSlotInterface } from "$lib/sveltelib/dynamic-slotting";
export interface InlineButtonsAPI extends DefaultSlotInterface {
setColorButtons: (colors: [string, string]) => void;
}