Skip to content

Commit

Permalink
Widen the response typing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pgjones committed Aug 19, 2023
1 parent 3f6b243 commit cc80a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flask/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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[
Expand Down

0 comments on commit cc80a47

Please sign in to comment.