mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Fix lint errors
This commit is contained in:
parent
2ee708f9d9
commit
7dbbbad914
3 changed files with 4 additions and 1 deletions
|
@ -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__)
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue