From 7fefe7ec43fe5edb56a5537a136dd80c2581657e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 22 Jan 2020 16:11:40 +1000 Subject: [PATCH] fix pylib checks failing when aqt unavailable --- pylib/anki/sound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/anki/sound.py b/pylib/anki/sound.py index 1671dc6ba..54f93a080 100644 --- a/pylib/anki/sound.py +++ b/pylib/anki/sound.py @@ -49,7 +49,7 @@ _soundReg = r"\[sound:(.*?)\]" def allSounds(text) -> List: - from aqt import mw + from aqt import mw # type: ignore # pylint: disable=import-error return [ x.filename @@ -59,6 +59,6 @@ def allSounds(text) -> List: def stripSounds(text) -> str: - from aqt import mw + from aqt import mw # type: ignore # pylint: disable=import-error return mw.col.backend.strip_av_tags(text)