aqt.operations.notetype#

Functions#

selected_notetype_ids_to_remove(...)

Return selected note type IDs to remove, keeping at least one note type.

add_notetype_legacy(...)

update_notetype_legacy(...)

remove_notetype(...)

remove_notetypes(...)

change_notetype_of_notes(...)

restore_notetype_to_stock(...)

Module Contents#

aqt.operations.notetype.selected_notetype_ids_to_remove(notetypes: collections.abc.Sequence[anki.models.NotetypeNameIdUseCount], notetype_ids: collections.abc.Sequence[anki.models.NotetypeId], protected_notetype_id: anki.models.NotetypeId | None = None) list[anki.models.NotetypeId]#

Return selected note type IDs to remove, keeping at least one note type.

aqt.operations.notetype.add_notetype_legacy(*, parent: aqt.qt.QWidget, notetype: anki.models.NotetypeDict) aqt.operations.CollectionOp[anki.collection.OpChangesWithId]#
aqt.operations.notetype.update_notetype_legacy(*, parent: aqt.qt.QWidget, notetype: anki.models.NotetypeDict, skip_checks: bool = False) aqt.operations.CollectionOp[anki.collection.OpChanges]#
aqt.operations.notetype.remove_notetype(*, parent: aqt.qt.QWidget, notetype_id: anki.models.NotetypeId) aqt.operations.CollectionOp[anki.collection.OpChanges]#
aqt.operations.notetype.remove_notetypes(*, parent: aqt.qt.QWidget, notetype_ids: collections.abc.Sequence[anki.models.NotetypeId], protected_notetype_id: anki.models.NotetypeId | None = None) aqt.operations.CollectionOp[anki.collection.OpChangesWithCount]#
aqt.operations.notetype.change_notetype_of_notes(*, parent: aqt.qt.QWidget, input: anki.models.ChangeNotetypeRequest) aqt.operations.CollectionOp[anki.collection.OpChanges]#
aqt.operations.notetype.restore_notetype_to_stock(*, parent: aqt.qt.QWidget, notetype_id: anki.models.NotetypeId, force_kind: anki.stdmodels.StockNotetypeKind.V | None) aqt.operations.CollectionOp[anki.collection.OpChanges]#