diff --git a/backend/src/hatchling/bridge/app.py b/backend/src/hatchling/bridge/app.py index b54d110d6..50d1f0087 100644 --- a/backend/src/hatchling/bridge/app.py +++ b/backend/src/hatchling/bridge/app.py @@ -2,7 +2,7 @@ import os import sys -from typing import Any +from typing import Any, NoReturn class Application: @@ -80,7 +80,7 @@ def display_mini_header(self, message: str = '', **kwargs: Any) -> None: # noqa if self.__verbosity >= 0: _display(f'[{message}]') - def abort(self, message: str = '', code: int = 1, **kwargs: Any) -> None: # noqa: ARG002 + def abort(self, message: str = '', code: int = 1, **kwargs: Any) -> NoReturn: # noqa: ARG002 """ Terminate the program with the given return code. """