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