From c3b5a44c9565955b1bd1fd41b2bd6bc57bcc5da8 Mon Sep 17 00:00:00 2001 From: nikolas Date: Mon, 13 Jan 2025 14:26:16 -0500 Subject: [PATCH] Update upload_file return type to dict I just realized `object` is a bit general here: this includes like, any type in python. We expect this method to return a data dictionary - what i'd call an "object" in JavaScript, but python calls a dictionary, so I think we can change this to `dict`. --- s3sign/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3sign/utils.py b/s3sign/utils.py index 6fa2bdd..7b2c011 100644 --- a/s3sign/utils.py +++ b/s3sign/utils.py @@ -106,7 +106,7 @@ def create_presigned_post(s3_client, bucket_name, object_name, def upload_file( s3_client, bucket, mime_type, object_name, max_file_size, acl, expiration_time, private -) -> object: +) -> dict: S3_BUCKET = bucket mime_type = mime_type object_name = object_name