From 9bacfb23a0cb2a0256f42fe32af545fdc0063deb Mon Sep 17 00:00:00 2001 From: Lon Blauvelt Date: Thu, 12 Sep 2024 16:04:55 -0700 Subject: [PATCH] Fix linting. (#5089) * Fix linting. * Cruft. --- src/toil/lib/aws/s3.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/toil/lib/aws/s3.py b/src/toil/lib/aws/s3.py index 9cd2ffb49f..77cb94d56e 100644 --- a/src/toil/lib/aws/s3.py +++ b/src/toil/lib/aws/s3.py @@ -13,6 +13,9 @@ # limitations under the License. import logging from typing import List + +from mypy_boto3_s3.type_defs import ListMultipartUploadsOutputTypeDef + from toil.lib.aws import session, AWSServerErrors from toil.lib.retry import retry @@ -20,6 +23,6 @@ @retry(errors=[AWSServerErrors]) -def list_multipart_uploads(bucket: str, region: str, prefix: str, max_uploads: int = 1) -> List[str]: +def list_multipart_uploads(bucket: str, region: str, prefix: str, max_uploads: int = 1) -> ListMultipartUploadsOutputTypeDef: s3_client = session.client("s3", region_name=region) return s3_client.list_multipart_uploads(Bucket=bucket, MaxUploads=max_uploads, Prefix=prefix)