forked from orbit-oss/flask
Widen the response typing
Whilst not strictly true for Flask, it is true for Flask and Quart and hence makes it much easier for Quart to extend Flask classes. The alternatives are generic usage in the sansio codebase or mixed usage within Flask. I think this is a good compromise.
This commit is contained in:
parent
3f6b243cec
commit
cc80a47f5b
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import typing as t
|
|||
if t.TYPE_CHECKING: # pragma: no cover
|
||||
from _typeshed.wsgi import WSGIApplication # noqa: F401
|
||||
from werkzeug.datastructures import Headers # noqa: F401
|
||||
from werkzeug.wrappers import Response # noqa: F401
|
||||
from werkzeug.sansio.response import Response # noqa: F401
|
||||
|
||||
# The possible types that are directly convertible or are a Response object.
|
||||
ResponseValue = t.Union[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue