From 0616a38faa38df82658eb85fe7fc30e6c6e32a2a Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Thu, 23 May 2024 13:47:11 -0700 Subject: [PATCH] lint fixes --- felt/core/s3_upload_parameters.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/felt/core/s3_upload_parameters.py b/felt/core/s3_upload_parameters.py index 15ef7c9..62c574f 100644 --- a/felt/core/s3_upload_parameters.py +++ b/felt/core/s3_upload_parameters.py @@ -50,15 +50,20 @@ def from_json(res: str) -> 'S3UploadParameters': """ return S3UploadParameters( type=res.get('data', {}).get('type'), - aws_access_key_id=res.get('presigned_attributes', {}).get('AWSAccessKeyId'), + aws_access_key_id=res.get('presigned_attributes', {}) + .get('AWSAccessKeyId'), acl=res.get('presigned_attributes', {}).get('acl'), key=res.get('presigned_attributes', {}).get('key'), policy=res.get('presigned_attributes', {}).get('policy'), signature=res.get('presigned_attributes', {}).get('signature'), - success_action_status=res.get('presigned_attributes', {}).get('success_action_status'), - x_amz_meta_features_flags=res.get('presigned_attributes', {}).get('x-amz-meta-feature-flags'), - x_amz_meta_file_count=res.get('presigned_attributes', {}).get('x-amz-meta-file-count'), - x_amz_security_token=res.get('presigned_attributes', {}).get('x-amz-security-token'), + success_action_status=res.get('presigned_attributes', {}) + .get('success_action_status'), + x_amz_meta_features_flags=res.get('presigned_attributes', {}) + .get('x-amz-meta-feature-flags'), + x_amz_meta_file_count=res.get('presigned_attributes', {}) + .get('x-amz-meta-file-count'), + x_amz_security_token=res.get('presigned_attributes', {}) + .get('x-amz-security-token'), url=res.get('url'), layer_id=res.get('layer_id'), )