Skip to content

Support custom enum metaclasses #824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

UnknownPlatypus
Copy link

Fixes #822 (cc @Jonxslays)

This will have the side effect of easing adoption for Django projects because they tend to use TextChoices / IntChoices when they need enumerations and this makes them work.

This was my last blocker to adopt msgspec officially at work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Struct that contains an Enum property with a metaclass cant be decoded
1 participant