@@ -40,7 +40,7 @@ def _path_to_bucket_and_key(path: str) -> tuple[str, str]:
40
40
def add_task_state_labels (
41
41
path : str ,
42
42
task_params : dict [str , str ] | None = None ,
43
- custom_labels : dict [str , Any ] | None = None ,
43
+ custom_labels : dict [str , str ] | None = None ,
44
44
required_task_outputs : FlattenableItems [RequiredTaskOutput ] | None = None ,
45
45
) -> None :
46
46
if GCSObjectMetadataClient ._is_log_related_path (path ):
@@ -90,7 +90,7 @@ def _normalize_labels(labels: dict[str, Any] | None) -> dict[str, str]:
90
90
def _get_patched_obj_metadata (
91
91
metadata : Any ,
92
92
task_params : dict [str , str ] | None = None ,
93
- custom_labels : dict [str , Any ] | None = None ,
93
+ custom_labels : dict [str , str ] | None = None ,
94
94
required_task_outputs : FlattenableItems [RequiredTaskOutput ] | None = None ,
95
95
) -> dict | Any :
96
96
# If metadata from response when getting bucket and object information is not dictionary,
@@ -134,7 +134,7 @@ def _iterable_flatten(nested_list: Iterable) -> Iterable[str]:
134
134
def _merge_custom_labels_and_task_params_labels (
135
135
normalized_labels_list : list [dict [str , str ]],
136
136
) -> dict [str , str ]:
137
- def __merge_two_dicts_helper (merged : dict [str , str ], current_labels : dict [str , Any ]) -> dict [str , str ]:
137
+ def __merge_two_dicts_helper (merged : dict [str , str ], current_labels : dict [str , str ]) -> dict [str , str ]:
138
138
next_merged = copy .deepcopy (merged )
139
139
for label_name , label_value in current_labels .items ():
140
140
if len (label_value ) == 0 :
0 commit comments