Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrantLee committed Jun 10, 2024
1 parent 1b5123b commit 959fc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sdk/python/kfp/compiler/compiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import collections
import copy
from typing import Any, DefaultDict, Dict, List, Mapping, Set, Tuple, Union
from typing import DefaultDict, Dict, List, Mapping, Set, Tuple, Union

from kfp import dsl
from kfp.dsl import for_loop
Expand Down Expand Up @@ -775,8 +775,8 @@ def get_dependencies(


def recursive_replace(
data: Union[Dict, List[Any]], old_value: Union[int, float, bool, str],
new_value: Union[int, float, bool, str]) -> Union[Dict, List[Any]]:
data: Union[Dict, List], old_value: Union[int, float, bool, str],
new_value: Union[int, float, bool, str]) -> Union[Dict, List]:
"""Replaces values in a nested dict/list object.
Args:
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/kfp/compiler/pipeline_spec_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@


def replace_and_inject_placeholders(
input_value: Union[str, Dict, List[Any]],
input_value: Union[str, Dict, List],
pipeline_task_spec: pipeline_spec_pb2.PipelineTaskSpec,
task: pipeline_task.PipelineTask,
parent_component_inputs: pipeline_spec_pb2.ComponentInputsSpec,
tasks_in_current_dag: List[str]
) -> tuple[Union[str, Dict, List[Any]], pipeline_spec_pb2.PipelineTaskSpec]:
) -> Tuple[Union[str, Dict, List], pipeline_spec_pb2.PipelineTaskSpec]:
"""Replaces placeholders in task input and injects placeholders as
component inputs.
Expand Down

0 comments on commit 959fc6c

Please sign in to comment.