mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
mypy fixes
This commit is contained in:
parent
19b3a15146
commit
fd95336933
2 changed files with 4 additions and 1 deletions
|
@ -198,7 +198,7 @@ class WindowsVoice(TTSVoice):
|
|||
|
||||
|
||||
if isWin:
|
||||
import win32com.client
|
||||
import win32com.client # pylint: disable=import-error
|
||||
|
||||
# language ID map from https://github.com/sindresorhus/lcid/blob/master/lcid.json
|
||||
LCIDS = {
|
||||
|
@ -424,6 +424,7 @@ if isWin:
|
|||
)
|
||||
|
||||
def _play(self, tag: AVTag) -> None:
|
||||
assert isinstance(tag, TTSTag)
|
||||
match = self.voice_for_tag(tag)
|
||||
assert match
|
||||
voice = cast(WindowsVoice, match.voice)
|
||||
|
|
|
@ -38,3 +38,5 @@ ignore_missing_imports = True
|
|||
ignore_missing_imports = True
|
||||
[mypy-PyQt5.sip]
|
||||
ignore_missing_imports = True
|
||||
[mypy-win32com.client]
|
||||
ignore_missing_imports = True
|
||||
|
|
Loading…
Reference in a new issue