From eb6723a2eeec4dd3da3fee6477a0d078ee2313f5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 15 Jan 2020 15:30:40 +1000 Subject: [PATCH] fix stdmodels type hint --- pylib/anki/stdmodels.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ##########################################################################