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:
Tim Abbott
2017-08-16 07:16:15 -07:00
parent 3afa8ad6a6
commit 5184c64a92

View File

@@ -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