drop support for python 3.7

This commit is contained in:
David Lord 2023-04-20 11:07:30 -07:00
parent 9659b11a45
commit 2e8fe7b2f2
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
14 changed files with 19 additions and 40 deletions

View file

@ -25,7 +25,6 @@ from .signals import message_flashed
if t.TYPE_CHECKING: # pragma: no cover
from werkzeug.wrappers import Response as BaseResponse
from .wrappers import Response
import typing_extensions as te
def get_debug_flag() -> bool:
@ -257,7 +256,7 @@ def redirect(
return _wz_redirect(location, code=code, Response=Response)
def abort(code: int | BaseResponse, *args: t.Any, **kwargs: t.Any) -> te.NoReturn:
def abort(code: int | BaseResponse, *args: t.Any, **kwargs: t.Any) -> t.NoReturn:
"""Raise an :exc:`~werkzeug.exceptions.HTTPException` for the given
status code.