diff --git a/minio/api.py b/minio/api.py index 1d9f04ed3..148e004fb 100644 --- a/minio/api.py +++ b/minio/api.py @@ -30,6 +30,7 @@ import itertools import os import tarfile +from collections.abc import Iterable from datetime import datetime, timedelta from io import BytesIO from random import random @@ -2139,7 +2140,7 @@ def _delete_objects( def remove_objects( self, bucket_name: str, - delete_object_list: Iterator[DeleteObject], + delete_object_list: Iterable[DeleteObject], bypass_governance_mode: bool = False, ) -> Iterator[DeleteError]: """ @@ -2946,7 +2947,7 @@ def set_object_retention( def upload_snowball_objects( self, bucket_name: str, - object_list: Iterator[SnowballObject], + object_list: Iterable[SnowballObject], metadata: DictType | None = None, sse: Sse | None = None, tags: Tags | None = None,