Fix type checking breakage (#865)

This commit is contained in:
Florimond Manca 2020-03-15 10:30:58 +01:00 committed by GitHub
parent a82adcc933
commit 43ec09c3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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: