Skip to content

Check enum members are compared by identity #5356

Open
@scop

Description

@scop

Current problem

Enum members should be compared by identity rather than equality: https://docs.python.org/3/library/enum.html#comparisons

Enumeration members are compared by identity:

Desired solution

Extending singleton-comparison to cover this would seem to be one possible implementation.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CheckersRelated to a checkerEnhancement ✨Improvement to a componentGood first issueFriendly and approachable by new contributorsHacktoberfestHelp wanted 🙏Outside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions