Thread
#announcements
    Robin Kahlow

    Robin Kahlow

    3 months ago
    Is it not possible to have default arguments for lists on workflows? eg. when i try to
    pyflyte run
    on
    @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)
    Samhita Alla

    Samhita Alla

    3 months ago
    Hi, @Robin Kahlow! May I know the flytekit version?
    Robin Kahlow

    Robin Kahlow

    3 months ago
    1.0.2
    Samhita Alla

    Samhita Alla

    3 months ago
    Good catch. This is a bug. Working on the fix.
    Robin Kahlow

    Robin Kahlow

    3 months ago
    Awesome, thank you 🙂