aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xquiz.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/quiz.py b/quiz.py
index 4ee72e8..c3ffe6c 100755
--- a/quiz.py
+++ b/quiz.py
@@ -20,6 +20,7 @@ import random
import platform
import os
import tomllib
+from typing import NoReturn
import subprocess
import sys
@@ -36,7 +37,7 @@ SHOW_QUESTION_CMD = 'xdg-open'
sg.SetOptions(window_location=(0, -200))
-def err(msg: str, status=1):
+def err(msg: str, status=1) -> NoReturn:
"""Print the error message to stderr and exit with status"""
print(msg)
sys.exit(status)