mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
upload: Fix uploading files with Python 3.
Apparently there's a bug in typeshed's stubs for uploading files, which resulted in our S3 upload code being broken on Python 3.
This commit is contained in:
@@ -199,7 +199,7 @@ def upload_image_to_s3(
|
||||
else:
|
||||
headers = None
|
||||
|
||||
key.set_contents_from_string(force_str(contents), headers=headers)
|
||||
key.set_contents_from_string(contents, headers=headers) # type: ignore # https://github.com/python/typeshed/issues/1552
|
||||
|
||||
def get_total_uploads_size_for_user(user):
|
||||
# type: (UserProfile) -> int
|
||||
|
||||
Reference in New Issue
Block a user