I think It should check base enums if any value is not present then the error should be raised. Here is the scenario I faced. I have two different Enum Type and the third one is the combination of two.
class Foo:
FOO1 = "FOO1"
FOO2 = "FOO2"
# I make the extended class an enum since it is not allowed to extend the enums that contain values by Python
@strawberry.enum
class FooEnum(Foo, Enum):
pass
class Bar:
BAR1 = "BAR1"
BAR2 = "BAR2"
@strawberry.enum
class BarEnum(Bar, Enum):
pass
@strawberry.enum
class FooBarEnum(Bar, Foo, Enum):
pass
I don't think the error should be raised on FooEnum, BarEnum, FooBarEnum
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too