Skip to content

Support new python union syntax #1360

Closed
@yorickvP

Description

@yorickvP

In cog 0.9.

This works:

        text: Union[str, List[str]] = Input(description="Text string to embed"),

this doesn't:

        text: str | list[str] = Input(description="Text string to embed"),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions