Skip to content

Change bool flags to str option. #170

@nstarman

Description

@nstarman

daft/src/daft/_core.py

Lines 570 to 572 in 7e859f2

observed=False,
fixed=False,
alternate=False,

can be more succinctly represented as

kind: Literal["observed", "fixed", "alternate"] | None = None

This makes it impossible to pass more than one option and still easy to check that the option is correct.

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