forked from orbit-oss/flask
drop support for python 3.7
This commit is contained in:
parent
9659b11a45
commit
2e8fe7b2f2
14 changed files with 19 additions and 40 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue