Commit 93586405 authored by John L. Villalovos's avatar John L. Villalovos Committed by Nejc Habjan
Browse files

chore: use correct type-hint for `die()`

parent 21569498
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ from typing import (
    Callable,
    cast,
    Dict,
    NoReturn,
    Optional,
    Tuple,
    Type,
@@ -97,7 +98,7 @@ def register_custom_action(
    return wrap


def die(msg: str, e: Optional[Exception] = None) -> None:
def die(msg: str, e: Optional[Exception] = None) -> NoReturn:
    if e:
        msg = f"{msg} ({e})"
    sys.stderr.write(f"{msg}\n")