Skip to content
Myr

Widen the response typing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by pgjones · committed by pgjones · parent 3f6b243 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/flask/typing.py+1 added-1 removed
3 unmodified lines
45if t.TYPE_CHECKING: # pragma: no cover6 from _typeshed.wsgi import WSGIApplication # noqa: F4017 from werkzeug.datastructures import Headers # noqa: F4018 from werkzeug.wrappers import Response # noqa: F4018 from werkzeug.sansio.response import Response # noqa: F401910# The possible types that are directly convertible or are a Response object.11ResponseValue = t.Union[12 "Response",
73 unmodified lines