Skip to content

Commit

Permalink
Fix linting. (#5089)
Browse files Browse the repository at this point in the history
* Fix linting.

* Cruft.
  • Loading branch information
DailyDreaming authored Sep 12, 2024
1 parent 82c787c commit 9bacfb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/toil/lib/aws/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@
# 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

logger = logging.getLogger(__name__)


@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)

0 comments on commit 9bacfb2

Please sign in to comment.