这是indexloc提供的服务,不要输入任何密码
Skip to content

Allow users to pass literal strings instead of enum values everywhere #98

@TedTed

Description

@TedTed

See discussion here

A really easy thing to do first would be to just allow values in type Literal["DEFAULT", "LAPLACE", "GAUSSIAN"] in addition to CountMechanism in QueryBuilder.count (and same for other aggregations), and convert the string to the corresponding enum value behind the scenes. This would greatly simplify client code and tests.

Afterwards we might even consider deprecating enum values completely.

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