Skip to content

enum.IntFlag field error when the flag is zero or many field enabled. #1010

Open
@evan0greenup

Description

@evan0greenup

Privileged issue

  • I'm @tiangolo or he asked me directly to create an issue here.

Issue Content

For enum.Enum it works fine, but when the field is Flag or IntFlag, if the value is not single-only bit enabled (zero or many bits). Then it will raise error.

It just treat Flag as same as Enum. However, it should make all subset of bitwise-or be accepted.

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