Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcli committed Mar 27, 2024
1 parent 94b6b7e commit c387009
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/core/loop_parameter/loop_parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from kfp import compiler, dsl
from typing import List


@dsl.component
Expand All @@ -14,7 +15,7 @@ def concat_op(a: str, b: str) -> str:


@dsl.component
def generate_op() -> str:
def generate_op() -> List[str]:
import json
return json.dumps([{'a': i, 'b': i * 10} for i in range(1, 5)])

Expand Down

0 comments on commit c387009

Please sign in to comment.