From: Florimond Manca Date: Sun, 15 Mar 2020 09:30:58 +0000 (+0100) Subject: Fix type checking breakage (#865) X-Git-Tag: 0.12.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43ec09c3cbb089edd2e83ccc717fb95beef0c189;p=thirdparty%2Fhttpx.git Fix type checking breakage (#865) --- 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: