]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix type checking breakage (#865)
authorFlorimond Manca <florimond.manca@gmail.com>
Sun, 15 Mar 2020 09:30:58 +0000 (10:30 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2020 09:30:58 +0000 (10:30 +0100)
httpx/_content_streams.py

index 1d351677762ef490dd663fb39f88f08ed111839f..5f3237e1bbad8313f8d29266041be964d846d707 100644 (file)
@@ -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: