graphene icon indicating copy to clipboard operation
graphene copied to clipboard

Fix enum value equality comparison

Open cc-jj opened this issue 2 years ago • 0 comments

Fix for https://github.com/graphql-python/graphene/issues/1524

This change takes care to preserve the current behavior where different enums with identical values are non-equal.

However it fixes inconsistent behavior when comparing enums to non-enum values. These comparisons would sometimes identify the non-enum values as equal and other times as non-equal due to is comparison.

cc-jj avatar Sep 01 '23 19:09 cc-jj