avoid noreturn for now, as it's not supported on python <3.6.5
This commit is contained in:
parent
343e616b2d
commit
bfcc837939
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user