Accept AsyncIterable for responses
This commit is contained in:
parent
bfffe87d4c
commit
410e5ab7ed
2 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import collections.abc as cabc
|
||||
import typing as t
|
||||
|
||||
if t.TYPE_CHECKING: # pragma: no cover
|
||||
|
|
@ -17,6 +18,8 @@ ResponseValue = t.Union[
|
|||
t.Mapping[str, t.Any],
|
||||
t.Iterator[str],
|
||||
t.Iterator[bytes],
|
||||
cabc.AsyncIterable[str], # for Quart, until App is generic.
|
||||
cabc.AsyncIterable[bytes],
|
||||
]
|
||||
|
||||
# the possible types for an individual HTTP header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue