Is it not possible to have default arguments for l...
# announcements
e
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)
t
Hi, @elegant-petabyte-32634! May I know the flytekit version?
👋 1
e
1.0.2
t
Good catch. This is a bug. Working on the fix.
👍 1
e
Awesome, thank you 🙂
200 Views