Skip to content

Commit

Permalink
change list typing to comply w/ python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
João Leão committed Jan 14, 2025
1 parent b6a5899 commit 8e4473d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/persistent_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 8e4473d

Please sign in to comment.