Skip to content

Commit

Permalink
Update loop_output.py example for the new parallel loop type requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcli authored Mar 28, 2024
1 parent 14e9b7b commit 2d856ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/core/loop_output/loop_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
# limitations under the License.

from kfp import compiler, dsl
from typing import List


@dsl.component
def args_generator_op() -> str:
return '[1.1, 1.2, 1.3]'
def args_generator_op() -> List[str]:
return ['1.1', '1.2', '1.3']


# TODO(Bobgy): how can we make this component with type float?
Expand Down

0 comments on commit 2d856ca

Please sign in to comment.