Skip to content

Commit 3dcb244

Browse files
committed
Improve documentation for _IterableResponseWrapper
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 8fc7c68 commit 3dcb244

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/util.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,15 @@ async def _iter_to_async_iter(it: Iterable[Any]) -> AsyncIterator[Any]:
12431243
class _IterableResponseWrapper(AsyncIterator[Any]):
12441244
"""Wrap a response to make it an async iterator.
12451245
1246-
Supports
1246+
Supports the following types of `response`:
1247+
1248+
* Async generator function
1249+
* Generator function
1250+
* Async generator
1251+
* Generator
1252+
* Async iterable
1253+
* Iterable
1254+
* Single value (`str`, `bytes` and non-iterables)
12471255
"""
12481256

12491257
def __init__(self, response: Any) -> None:

0 commit comments

Comments
 (0)