https://flyte.org logo
r

Robin Kahlow

06/01/2022, 11:51 AM
Is it not possible to have default arguments for lists on workflows? eg. when i try to
pyflyte run
on
Copy code
@workflow
def wf(
    total_samples: List[int] = [16, 32, 64, 256],
):
I get
TypeError: the JSON object must be str, bytes or bytearray, not list
but without specifying a default it does work (and i can pass it to pyflyte as a string json list)
s

Samhita Alla

06/01/2022, 12:42 PM
Hi, @Robin Kahlow! May I know the flytekit version?
👋 1
r

Robin Kahlow

06/01/2022, 12:43 PM
1.0.2
s

Samhita Alla

06/01/2022, 12:58 PM
Good catch. This is a bug. Working on the fix.
👍 1
r

Robin Kahlow

06/01/2022, 1:01 PM
Awesome, thank you 🙂
8 Views