From: Massaki Date: Thu, 15 Feb 2024 08:27:20 +0000 (-0300) Subject: Add `bytes` to `_RequestData` type (#2510) X-Git-Tag: 0.37.2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7533b61a34f8b0dcb5fc35c717d458439f0baf18;p=thirdparty%2Fstarlette.git Add `bytes` to `_RequestData` type (#2510) --- diff --git a/starlette/testclient.py b/starlette/testclient.py index 90eb53e3..e7291a20 100644 --- a/starlette/testclient.py +++ b/starlette/testclient.py @@ -46,7 +46,7 @@ ASGI2App = typing.Callable[[Scope], ASGIInstance] ASGI3App = typing.Callable[[Scope, Receive, Send], typing.Awaitable[None]] -_RequestData = typing.Mapping[str, typing.Union[str, typing.Iterable[str]]] +_RequestData = typing.Mapping[str, typing.Union[str, typing.Iterable[str], bytes]] def _is_asgi3(app: ASGI2App | ASGI3App) -> TypeGuard[ASGI3App]: