aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-08-03 21:39:29 +0100
committerMatthew Lemon <y@yulqen.org>2024-08-03 21:39:29 +0100
commita06c426edc3bb33deab2e55c2dcd5f5c3b2f3504 (patch)
treef9c47c166377e4e2f98233a0ce7102f4e9355aca
parent82557e058b9c98424d612bf0eaa917e4fe222480 (diff)
Add return type hint to upload_snapshotted_pages_to_s3
This change explicitly specifies that the function upload_snapshotted_pages_to_s3 returns a boolean. Adding type hints helps improve code readability and maintainability by providing clear expectations on the function's return value.
-rw-r--r--pyblackbird_cc/resources/s3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/s3.py b/pyblackbird_cc/resources/s3.py
index da844ae..e9703ca 100644
--- a/pyblackbird_cc/resources/s3.py
+++ b/pyblackbird_cc/resources/s3.py
@@ -60,7 +60,7 @@ def upload_files_to_s3(files: Sequence, dir_name: str) -> None:
)
-def upload_snapshotted_pages_to_s3(snapshotted_pages):
+def upload_snapshotted_pages_to_s3(snapshotted_pages) -> bool:
s3_client = get_s3_client()
collection_type = _get_pdf_collection_type(snapshotted_pages)
if collection_type in ["SINGLE_PDF_SINGLE_PAGE", "SINGLE_PDF_MULTI_PAGE"]: