Skip to content

enablement/when typing strictly Expr ? #196

@lucyleeow

Description

@lucyleeow

Description

Is the typing for enablement and when strictly only Expr ?

enablement: Optional[expressions.Expr] = Field(

I thought the typing would be:

expr : str | bool | Expr

Indeed I see in app-model tests a string is used:

enablement="allow_undo_redo",

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