From 43ec09c3cbb089edd2e83ccc717fb95beef0c189 Mon Sep 17 00:00:00 2001 From: Florimond Manca Date: Sun, 15 Mar 2020 10:30:58 +0100 Subject: [PATCH] Fix type checking breakage (#865) --- httpx/_content_streams.py | 1 + 1 file changed, 1 insertion(+) diff --git a/httpx/_content_streams.py b/httpx/_content_streams.py index 1d351677..5f3237e1 100644 --- a/httpx/_content_streams.py +++ b/httpx/_content_streams.py @@ -263,6 +263,7 @@ class MultipartStream(ContentStream): return b"".join(parts) def render_data(self) -> bytes: + content: typing.Union[str, bytes] if isinstance(self.file, str): content = self.file else: -- 2.47.3