From a06c426edc3bb33deab2e55c2dcd5f5c3b2f3504 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 3 Aug 2024 21:39:29 +0100 Subject: 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. --- pyblackbird_cc/resources/s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyblackbird_cc') 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"]: -- cgit v1.2.3