From 8e4473df8a452312814d497a1b045cc76e1dda75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Le=C3=A3o?= Date: Tue, 14 Jan 2025 07:02:58 -0300 Subject: [PATCH] change list typing to comply w/ python 3.8 --- test/integration/persistent_bucket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/persistent_bucket.py b/test/integration/persistent_bucket.py index 75cbedc7..d45d1b2f 100644 --- a/test/integration/persistent_bucket.py +++ b/test/integration/persistent_bucket.py @@ -11,6 +11,7 @@ import os from dataclasses import dataclass from functools import cached_property +from typing import List import backoff from b2sdk.v2 import Bucket @@ -63,5 +64,5 @@ def get_or_create_persistent_bucket(b2_api: Api) -> Bucket: b2_api.bucket_name_log.append(bucket_name) return bucket -def prune_used_files(b2_api: Api, bucket: Bucket, folders: list[str]): +def prune_used_files(b2_api: Api, bucket: Bucket, folders: List[str]): b2_api.clean_bucket(bucket_object=bucket, only_files=True, only_folders=folders,ignore_retentions=True)