]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Add `bytes` to `_RequestData` type (#2510)
authorMassaki <enzomassaki@hotmail.com>
Thu, 15 Feb 2024 08:27:20 +0000 (05:27 -0300)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 08:27:20 +0000 (09:27 +0100)
starlette/testclient.py

index 90eb53e3d43ec4ffd2a3fa5e84b1705dc29ece0a..e7291a2082fbdb3de8d2870934d1ee1148a33b43 100644 (file)
@@ -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]: