mark autoreload as NoReturn

This commit is contained in:
Bastian Venthur
2022-09-01 11:11:53 +02:00
parent 875fd85d65
commit 7b6b219cdf

View File

@@ -8,6 +8,7 @@ site if necessary.
# remove when we don't support py38 anymore # remove when we don't support py38 anymore
from __future__ import annotations from __future__ import annotations
from typing import NoReturn
import os import os
import logging import logging
import time import time
@@ -51,7 +52,7 @@ def get_last_modified(dirs: list[str]) -> float:
return last_mtime return last_mtime
def autoreload(args: argparse.Namespace) -> None: def autoreload(args: argparse.Namespace) -> NoReturn:
"""Start the autoreloader. """Start the autoreloader.
This method monitors the given directories for changes (i.e. the This method monitors the given directories for changes (i.e. the