Skip to content

Instantly share code, notes, and snippets.

Created May 6, 2021
What would you like to do?
import dataclasses
import enum
import jsonpickle
class Status(enum.Enum):
x =
y =
z =
class A:
name: str
age: int
status: Status
a = A(name="foo", age=0, status=Status.y)
print(jsonpickle.decode(jsonpickle.encode(a)) == a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment