Skip to content

Commit

Permalink
Fix line length requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Oct 16, 2024
1 parent 1c42af5 commit 2714662
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions felt/core/s3_upload_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
@dataclass
class S3UploadParameters:
"""
Encapsulates parameters for uploading to S3, including all presigned attributes
Encapsulates parameters for uploading to S3, including all presigned
attributes
"""

url: str
Expand All @@ -18,14 +19,16 @@ class S3UploadParameters:

def to_form_fields(self) -> Dict:
"""
Returns all form fields including the presigned attributes required for the upload
Returns all form fields including the presigned attributes required
for the upload
"""
return {**self._presigned_attributes}

@staticmethod
def from_json(res: Dict[str, str]) -> 'S3UploadParameters':
"""
Creates upload parameters from a JSON response, capturing all presigned attributes
Creates upload parameters from a JSON response, capturing all
presigned attributes
"""
return S3UploadParameters(
url=res.get('url'),
Expand Down

0 comments on commit 2714662

Please sign in to comment.