mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix pylib checks failing when aqt unavailable
This commit is contained in:
parent
0ad6e8b58e
commit
cc02e95049
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue