We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da9f64 commit 3cbdfdeCopy full SHA for 3cbdfde
src/ot_orchestration/utils/path.py
@@ -113,9 +113,8 @@ class GCSPath(ProtoPath):
113
client (storage.Client, optional): Google Cloud Storage client. Defaults to storage.Client().
114
"""
115
116
- def __init__(
117
- self, gcs_path: str, chunk_size: int = 1024 * 256, client=storage.Client()
118
- ):
+ def __init__(self, gcs_path: str, chunk_size: int = 1024 * 256, client=None):
+ client = client or storage.Client()
119
self.gcs_path = gcs_path
120
self.path_pattern = re.compile("^(gs://)?(?P<bucket_name>[(\\w)-]+)")
121
self.chunk_size = chunk_size
0 commit comments