Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
Signed-off-by: droctothorpe <[email protected]>
  • Loading branch information
droctothorpe committed Oct 30, 2024
1 parent 4d14cfe commit 17e0c5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/kfp/compiler/pipeline_spec_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,9 @@ def convert_pipeline_outputs_to_dict(
if pipeline_outputs is None:
return {}
elif isinstance(pipeline_outputs, dict):
# This condition is required to support pipelines that return NamedTuples.
# This condition is required to support the case where a nested pipeline
# returns a namedtuple but its output is converted into a dict by
# earlier invocations of this function (a few lines down).
return pipeline_outputs
elif isinstance(pipeline_outputs, pipeline_channel.PipelineChannel):
return {component_factory.SINGLE_OUTPUT_NAME: pipeline_outputs}
Expand Down

0 comments on commit 17e0c5d

Please sign in to comment.