You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is straightforward to make Enums serializable. It would be very similar to a serializer(Literal[...]) except that the data would get serialized into a proper member of the enum. I would always use the name of the enum as the serialized value, but others may want to use the enum value. For that reason, it may be better to add this feature as @enum_serializable so that a flag could be added in the future to use the enum values instead of the name as the serialized data.
The text was updated successfully, but these errors were encountered:
It is straightforward to make
Enum
s serializable. It would be very similar to aserializer(Literal[...])
except that the data would get serialized into a proper member of the enum. I would always use the name of the enum as the serialized value, but others may want to use the enum value. For that reason, it may be better to add this feature as@enum_serializable
so that a flag could be added in the future to use the enum values instead of the name as the serialized data.The text was updated successfully, but these errors were encountered: