From 9b93785c81ca6dcdceb22078a481a45e36a931ac Mon Sep 17 00:00:00 2001 From: Scott Mountenay Date: Thu, 12 Sep 2024 17:47:09 -0600 Subject: [PATCH] [GDrive] Fix mypy error for retrieve_file_texts return type --- gdrive/provider/provider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdrive/provider/provider.py b/gdrive/provider/provider.py index 5db6e973..29d29d72 100644 --- a/gdrive/provider/provider.py +++ b/gdrive/provider/provider.py @@ -29,7 +29,7 @@ def process_data_with_service(data, request_credentials: Credentials): - results = [] + results: list[dict] = [] files = data.get("files", []) if not files: logger.debug("No files found.") @@ -66,7 +66,7 @@ def process_data_with_service(data, request_credentials: Credentials): return results -def retrieve_file_texts(files, request_credentials: Credentials) -> [str, str]: +def retrieve_file_texts(files, request_credentials: Credentials) -> dict[str, str]: missing_ids_to_urls = {} id_to_texts = {}