From fbcfca1b96c8919a496f8420dba0be139091364b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 5 Jan 2024 01:08:08 +0200 Subject: [PATCH] fix typing in remove_objects/upload_snowball_objects APIs (#1389) --- minio/api.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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,