From 64dc8f24e99604220d618132bd5fd57db4524cb5 Mon Sep 17 00:00:00 2001 From: Joey Ekstrom Date: Tue, 24 Jun 2025 09:03:55 -0700 Subject: [PATCH] Updated RequestContent to include bytearray in the Union --- httpx/_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_types.py b/httpx/_types.py index 704dfdff..76fa3057 100644 --- a/httpx/_types.py +++ b/httpx/_types.py @@ -65,7 +65,7 @@ AuthTypes = Union[ "Auth", ] -RequestContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]] +RequestContent = Union[str, bytes, bytearray, Iterable[bytes], AsyncIterable[bytes]] ResponseContent = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]] ResponseExtensions = Mapping[str, Any]