avoid noreturn for now, as it's not supported on python <3.6.5

This commit is contained in:
Damien Elmes 2019-12-21 16:54:40 +10:00
parent 343e616b2d
commit bfcc837939

View File

@ -11,7 +11,7 @@ import subprocess
import sys
import threading
import time
from typing import Any, Callable, Dict, List, NoReturn, Optional, Tuple
from typing import Any, Callable, Dict, List, Optional, Tuple
from anki.hooks import addHook, runHook
from anki.lang import _
@ -197,7 +197,7 @@ class MplayerMonitor(threading.Thread):
mplayer: Optional[subprocess.Popen] = None
deadPlayers: List[subprocess.Popen] = []
def run(self) -> NoReturn:
def run(self) -> None:
global mplayerClear
self.mplayer = None
self.deadPlayers = []