Fix type checking breakage (#865)
This commit is contained in:
parent
a82adcc933
commit
43ec09c3cb
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user