diff --git a/pylib/anki/stdmodels.py b/pylib/anki/stdmodels.py index a767d802e..0da5fe2b2 100644 --- a/pylib/anki/stdmodels.py +++ b/pylib/anki/stdmodels.py @@ -1,12 +1,13 @@ # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -from typing import Any, Callable, List, Tuple + +from typing import Any, Callable, List, Tuple, Union from anki.consts import MODEL_CLOZE from anki.lang import _ from anki.types import NoteType -models: List[Tuple[Callable[[], str], Callable[[Any], NoteType]]] = [] +models: List[Tuple[Union[Callable[[], str], str], Callable[[Any], NoteType]]] = [] # Basic ##########################################################################