mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05:00
avoid noreturn for now, as it's not supported on python <3.6.5
This commit is contained in:
parent
343e616b2d
commit
bfcc837939
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
import time
|
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.hooks import addHook, runHook
|
||||||
from anki.lang import _
|
from anki.lang import _
|
||||||
|
|
@ -197,7 +197,7 @@ class MplayerMonitor(threading.Thread):
|
||||||
mplayer: Optional[subprocess.Popen] = None
|
mplayer: Optional[subprocess.Popen] = None
|
||||||
deadPlayers: List[subprocess.Popen] = []
|
deadPlayers: List[subprocess.Popen] = []
|
||||||
|
|
||||||
def run(self) -> NoReturn:
|
def run(self) -> None:
|
||||||
global mplayerClear
|
global mplayerClear
|
||||||
self.mplayer = None
|
self.mplayer = None
|
||||||
self.deadPlayers = []
|
self.deadPlayers = []
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue