mypy fixes

This commit is contained in:
Damien Elmes 2020-01-21 20:42:06 +10:00
parent 19b3a15146
commit fd95336933
2 changed files with 4 additions and 1 deletions

View file

@ -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)

View file

@ -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