Set return type of `abort` to `typing.NoReturn`.
@@ -21,6 +21,7 @@ Example: ::
)
"""
from __future__ import annotations
+from typing import NoReturn
import flask
from werkzeug.exceptions import HTTPException
@@ -30,7 +31,7 @@ import marshmallow as ma
from webargs import core
-def abort(http_status_code, exc=None, **kwargs):
+def abort(http_status_code, exc=None, **kwargs) -> NoReturn:
"""Raise a HTTPException for the given http_status_code. Attach any keyword
arguments to the exception for later processing.
